/*
 * Statyczna wersja układu inspirowanego klasycznym motywem WordPress Twenty Ten.
 * Nie wymaga WordPressa, PHP, bazy danych ani procesu budowania.
 */

* {
  box-sizing: border-box;
}

html {
  background: #e8e8e8;
  font-size: 100%;
}

body {
  margin: 0;
  color: #666;
  background: #e8e8e8;
  font-family: Georgia, "Bitstream Charter", "Times New Roman", serif;
  font-size: 12px;
  line-height: 18px;
}

a {
  color: #0066cc;
}

a:visited {
  color: #743399;
}

a:hover,
a:focus-visible,
a:active {
  color: #ff4b33;
}

img {
  max-width: 100%;
  height: auto;
}

p {
  margin: 0 0 18px;
}

hr {
  height: 1px;
  margin: 0 0 18px;
  border: 0;
  background: #e7e7e7;
}

abbr[title] {
  cursor: help;
}

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-wrapper {
  width: 980px;
  margin: 20px auto;
  padding: 0 20px;
  background: #fff;
}

.site-header {
  padding-top: 30px;
}

.site-title {
  width: 700px;
  margin: 0 0 18px;
  font-family: "Helvetica Neue", Arial, Helvetica, sans-serif;
  font-size: 30px;
  font-weight: normal;
  line-height: 36px;
}

.site-title a {
  color: #000;
  font-weight: 700;
  text-decoration: none;
}

.header-image {
  display: block;
  width: 940px;
  height: 168px;
  object-fit: cover;
  border-top: 4px solid #000;
  border-bottom: 1px solid #000;
}

.site-nav {
  min-height: 38px;
  background: #000;
  font-family: "Helvetica Neue", Arial, Helvetica, sans-serif;
  font-size: 13px;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  margin: 0 0 0 12px;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: block;
  padding: 0 10px;
  color: #aaa;
  line-height: 38px;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: #fff;
  background: #333;
}

.site-nav a[aria-current="page"] {
  color: #fff;
}

.main-layout {
  display: grid;
  grid-template-columns: 660px 220px;
  column-gap: 60px;
  clear: both;
  padding-top: 40px;
}

.content {
  min-width: 0;
  margin-bottom: 36px;
  padding-left: 20px;
  color: #333;
  font-size: 16px;
  line-height: 24px;
}

.content p,
.content ul,
.content ol,
.content hr {
  margin-bottom: 24px;
}

.content ul,
.content ol {
  padding-left: 1.5em;
}

.content h1,
.content h2,
.content h3,
.content h4 {
  clear: both;
  margin: 0 0 12px;
  color: #000;
  font-family: "Helvetica Neue", Arial, Helvetica, sans-serif;
  font-weight: 700;
  line-height: 1.3;
}

.content h1 {
  font-size: 21px;
}

.content .intro-name {
  margin-bottom: 24px;
  color: #000;
  font-size: 24px;
  line-height: 30px;
}

.content .intro-titles {
  display: inline-block;
  margin-top: 3px;
  font-size: 16px;
  line-height: 22px;
}

.content .small-history {
  color: #000;
  font-size: 13px;
  line-height: 20px;
}

.content .justified {
  text-align: justify;
}

.content .notice {
  color: #000099;
  font-weight: 700;
}

.education-list {
  margin: 6px 0 30px;
}

.education-entry {
  margin: 0;
  padding: 13px 0 10px;
  border-bottom: 1px solid #e7e7e7;
}

.education-entry:first-child {
  padding-top: 4px;
}

.education-entry p {
  margin-bottom: 0;
}

.education-year {
  color: #777;
  font-size: 14px;
}

.certificate-list {
  margin-top: 6px;
}

.certificate-list p {
  margin-bottom: 18px;
}

.sidebar {
  min-width: 0;
  overflow-wrap: anywhere;
  hyphens: auto;
}

.sidebar-section {
  margin-bottom: 18px;
}

.sidebar strong {
  color: inherit;
}

.sidebar a {
  text-decoration: none;
}

.sidebar a:hover,
.sidebar a:focus-visible {
  text-decoration: underline;
}

.sidebar .contact-label > p:first-child {
  font-size: 14px;
  font-weight: 700;
}

.sidebar .phone {
  display: inline-block;
  color: blue;
  font-size: 27px;
  font-weight: 700;
  line-height: 34px;
  white-space: nowrap;
}

.sidebar .address {
  display: inline-block;
  margin-top: 2px;
  color: #222;
  font-size: 16px;
  font-weight: 700;
  line-height: 22px;
}

.sidebar .map-link {
  display: inline-block;
  margin-top: 4px;
}

.sidebar .centered {
  text-align: center;
}

.sidebar .ornament {
  margin-bottom: 18px;
  color: #000;
  font-size: 24px;
  text-align: center;
}

.sidebar .appointments {
  color: #000;
  font-family: Verdana, Arial, Helvetica, sans-serif;
  text-align: center;
}

.site-footer {
  clear: both;
  margin-bottom: 20px;
  border-top: 4px solid #000;
}

.footer-inner {
  display: grid;
  grid-template-columns: 700px 220px;
  column-gap: 20px;
  padding: 18px 0;
  overflow: hidden;
  font-family: "Helvetica Neue", Arial, Helvetica, sans-serif;
  font-size: 14px;
}

.footer-name {
  font-weight: 700;
}

.footer-name a {
  color: #000;
  text-decoration: none;
}

.footer-note {
  color: #666;
  font-style: italic;
}

.footer-note a {
  color: #666;
  text-decoration: none;
}

.footer-note a:hover,
.footer-note a:focus-visible {
  text-decoration: underline;
}

/* Zachowuje niemal identyczny wygląd na desktopie, a na telefonie
   przechodzi w bezpieczny układ jednokolumnowy. */
@media (max-width: 1020px) {
  .site-wrapper {
    width: calc(100% - 24px);
    margin: 12px auto;
  }

  .site-title {
    width: auto;
  }

  .header-image {
    width: 100%;
    height: auto;
    aspect-ratio: 940 / 168;
  }

  .main-layout {
    grid-template-columns: minmax(0, 1fr) 220px;
    gap: 36px;
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr) 220px;
  }
}

@media (max-width: 760px) {
  .site-wrapper {
    padding: 0 14px;
  }

  .site-header {
    padding-top: 20px;
  }

  .site-title {
    font-size: 25px;
    line-height: 31px;
  }

  .site-nav ul {
    margin-left: 4px;
  }

  .site-nav a {
    padding: 0 8px;
  }

  .main-layout {
    grid-template-columns: 1fr;
    gap: 12px;
    padding-top: 28px;
  }

  .content {
    margin-bottom: 12px;
    padding: 0 6px;
  }

  .content .justified {
    text-align: left;
  }

  .sidebar {
    padding: 0 6px 24px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

@media print {
  html,
  body {
    background: #fff;
  }

  .site-wrapper {
    width: 100%;
    margin: 0;
    padding: 0;
  }

  .site-nav,
  .sidebar,
  .header-image,
  .footer-note {
    display: none;
  }

  .main-layout {
    display: block;
    padding-top: 24px;
  }

  .content {
    padding: 0;
  }
}
