/* Treść stron „O firmie” i „Kontakt” w module Strony WWW. */
#webpage-show:has(.am-page) {
  padding: 0;
}

#webpage-show:has(.am-page) > .title {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.am-page {
  --am-ink: #071e36;
  --am-copy: #243e4a;
  --am-link: #00616a;
  --am-rule: #c8dedd;
  --am-gutter: clamp(23px, 3.8cqi, 54px);
  container-type: inline-size;
  color: var(--am-copy);
  font: 400 16px/1.55 Roboto, Arial, sans-serif;
  background: #fff;
  text-align: left;
}

.am-page *, .am-page *::before, .am-page *::after {
  box-sizing: border-box;
}

.am-page h2,
.am-page .am-page__button,
.am-contact__channels a {
  font-family: 'Roboto Condensed', 'Arial Narrow', Roboto, Arial, sans-serif;
}

.am-page h2 {
  margin: 0 0 .48em;
  color: var(--am-ink);
  font-size: clamp(29px, 3.85cqi, 47px);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -.032em;
  text-transform: none;
  text-wrap: balance;
}

.am-page p {
  margin: 0 0 .85em;
}

.am-page p:last-child {
  margin-bottom: 0;
}

.am-page a {
  color: var(--am-link);
  text-decoration: underline;
  text-underline-offset: .17em;
  text-decoration-thickness: 1px;
}

.am-page a:hover {
  color: var(--am-ink);
  text-decoration-thickness: 2px;
}

.am-page a:focus-visible {
  outline: 3px solid #007b84;
  outline-offset: 4px;
}

.am-page svg {
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.am-page a.am-page__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 46px;
  padding: 10px 20px;
  border: 0;
  border-radius: 4px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
}

.am-page__button svg {
  width: 19px;
  height: 19px;
  stroke-width: 2.1;
}

.am-page .am-page__button--light {
  color: var(--am-ink);
  background: #fff;
}

.am-page .am-page__button--light:hover {
  color: var(--am-ink);
  background: #d3f6ee;
}

.am-page .am-page__button--light:focus-visible {
  outline-color: #8ff1d2;
}

.am-page .am-page__button--dark {
  width: 100%;
  color: #fff;
  background: #092d47;
}

.am-page .am-page__button--dark:hover {
  color: #fff;
  background: #075866;
}

.am-about__hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #02162d;
}

.am-about .am-about__cover {
  position: absolute;
  z-index: -1;
  inset: 0;
  display: block;
  width: 100%;
  height: 100% !important;
  object-fit: cover;
  object-position: 55% center;
}

.am-about__copy {
  width: 56%;
  padding: clamp(30px, 5.2cqi, 73px) 0 clamp(32px, 4.9cqi, 68px) clamp(26px, 5.2cqi, 73px);
}

.am-about .am-about__copy h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(51px, 7.85cqi, 98px);
  line-height: .92;
  letter-spacing: -.045em;
  text-wrap: initial;
}

.am-about__copy h2 span {
  display: block;
  margin-top: .12em;
  color: #91edcf;
  font-size: .78em;
  line-height: 1;
  letter-spacing: -.038em;
}

.am-about .am-about__copy p {
  max-width: 35ch;
  margin: 19px 0 23px;
  color: #f4fbfc;
  font-size: clamp(16px, 1.75cqi, 21px);
  font-weight: 500;
  line-height: 1.42;
}

.am-about__stories {
  padding: 0 var(--am-gutter);
}

.am-about__story {
  display: grid;
  grid-template-columns: minmax(0, .93fr) minmax(0, 1.07fr);
  align-items: center;
  gap: clamp(22px, 4cqi, 60px);
  padding: clamp(30px, 4.3cqi, 59px) 0;
}

.am-about__story + .am-about__story {
  border-top: 1px solid var(--am-rule);
}

.am-about__story--workshop {
  grid-template-columns: minmax(0, .97fr) minmax(0, 1.03fr);
}

.am-about__story--workshop .am-about__text {
  grid-column: 2;
  grid-row: 1;
}

.am-about .am-about__photo {
  display: block;
  width: 100%;
  height: auto !important;
  aspect-ratio: 1.58;
  object-fit: cover;
}

.am-about .am-about__photo--workshop {
  grid-area: 1 / 1;
  aspect-ratio: 1.45;
  object-position: center 49%;
}

.am-about__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 23px;
  margin-top: 10px;
}

.am-about__links a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  font-weight: 700;
}

.am-contact__hero {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  background: #e6f4f1;
}

.am-contact__intro {
  align-self: center;
  padding: clamp(29px, 5.4cqi, 72px) var(--am-gutter);
}

.am-contact .am-contact__intro h2 {
  margin: 0;
  font-size: clamp(37px, 5.75cqi, 72px);
  line-height: .99;
}

.am-contact__intro address {
  margin: 17px 0 15px;
  color: var(--am-ink);
  font-size: clamp(16px, 1.9cqi, 22px);
  font-style: normal;
  line-height: 1.45;
}

.am-contact__channels {
  display: grid;
  justify-items: start;
}

.am-contact__channels a {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  min-height: 44px;
  color: #07545e;
  font-size: clamp(21px, 2.65cqi, 33px);
  font-weight: 700;
  line-height: 1.2;
}

.am-contact__channels svg {
  width: 23px;
  height: 23px;
  color: #17374a;
  stroke-width: 1.6;
}

.am-contact .am-contact__front {
  display: block;
  width: 100%;
  height: 100% !important;
  min-height: 0;
  object-fit: cover;
  object-position: 46% center;
}

.am-contact__visit {
  display: grid;
  grid-template-columns: minmax(0, .94fr) minmax(0, 1.06fr);
  gap: clamp(28px, 5cqi, 72px);
  padding: clamp(31px, 4.5cqi, 62px) var(--am-gutter);
}

.am-contact__visit h2 {
  margin-bottom: .62em;
}

.am-contact table.am-contact__hours {
  width: 100%;
  margin: 0;
  border: 0;
  border-collapse: collapse;
  color: var(--am-ink);
  font: inherit;
  font-variant-numeric: tabular-nums;
}

.am-contact .am-contact__hours tr,
.am-contact .am-contact__hours th,
.am-contact .am-contact__hours td {
  background: transparent;
  border: 0;
}

.am-contact .am-contact__hours tr + tr {
  border-top: 1px solid var(--am-rule);
}

.am-contact .am-contact__hours th,
.am-contact .am-contact__hours td {
  padding: .44em 0;
  line-height: 1.4;
}

.am-contact .am-contact__hours th {
  font-weight: 500;
  text-align: left;
}

.am-contact .am-contact__hours td {
  padding-left: 10px;
  text-align: right;
  white-space: nowrap;
}

.am-contact .am-contact__saturdays {
  margin: 15px 0 0;
  font-size: 15px;
  line-height: 1.5;
}

.am-contact .am-contact__arrival iframe {
  display: block;
  width: 100%;
  height: clamp(195px, 24cqi, 310px);
  margin-bottom: 12px;
  background: #ebf0ec;
  border: 0;
}

.am-contact__business {
  padding: clamp(25px, 3.3cqi, 46px) var(--am-gutter);
  background: #edf3f5;
}

.am-contact__business-grid {
  display: grid;
  grid-template-columns: minmax(0, .94fr) minmax(0, 1.06fr);
  gap: clamp(14px, 5cqi, 72px);
}

.am-contact__business p {
  margin-bottom: .45em;
}

.am-contact__business strong {
  color: var(--am-ink);
}

.am-contact__account {
  max-width: 100%;
  font-variant-numeric: tabular-nums;
}

@container (max-width: 660px) {
  .am-about__story, .am-about__story--workshop, .am-contact__visit {
    grid-template-columns: minmax(0, 1fr);
  }

  .am-about__story {
    gap: 18px;
  }

  .am-about__story--workshop .am-about__text,
  .am-about .am-about__photo--workshop {
    grid-area: auto;
  }

  .am-about .am-about__photo {
    aspect-ratio: 1.82;
  }

  .am-contact__visit {
    gap: 30px;
  }

  .am-contact .am-contact__arrival iframe {
    height: clamp(210px, 58cqi, 280px);
  }
}

@container (max-width: 520px) {
  .am-about__copy {
    width: 100%;
    padding: 27px var(--am-gutter) clamp(120px, 33cqi, 155px);
  }

  .am-about .am-about__copy h2 {
    font-size: clamp(43px, 11.5cqi, 60px);
  }

  .am-about .am-about__copy p {
    max-width: 33ch;
    margin: 15px 0 17px;
  }

  .am-about .am-about__cover {
    inset: auto 0 0;
    height: 58% !important;
    object-position: 74% 54%;
    -webkit-mask-image: linear-gradient(180deg, transparent, #000 68%);
    mask-image: linear-gradient(180deg, transparent, #000 68%);
  }

  .am-contact__hero, .am-contact__business-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .am-contact__intro {
    padding: 27px var(--am-gutter) 21px;
  }

  .am-contact__intro address {
    margin: 11px 0 10px;
  }

  .am-contact .am-contact__front {
    height: auto !important;
    aspect-ratio: 2.45;
    object-position: center 55%;
  }

  .am-contact__business-grid {
    gap: 17px;
  }
}

/* Na wąskich ekranach uchwyt panelu sklepu zajmuje 40 px przy lewej krawędzi. */
@media (max-width: 991px) {
  .am-about__copy, .am-about__stories,
  .am-contact__intro, .am-contact__visit, .am-contact__business {
    padding-inline-start: max(42px, var(--am-gutter));
  }
}

@media (min-width: 768px) and (max-width: 839px) {
  body:has(#webpage-show .am-page) #navbar-buttons-top > .btn {
    padding-inline: 9px;
  }

  body:has(#webpage-show .am-page) #navbar-buttons-top > .btn + .btn {
    margin-left: 4px;
  }
}
