/* Theme-level fixes kept separate from the generated main stylesheet. */

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 2px solid #ff4800;
  outline-offset: 4px;
}

.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

.screen-reader-text:focus {
  background: #fcfdff;
  clip: auto !important;
  clip-path: none;
  color: #191819;
  display: block;
  height: auto;
  left: 0.5rem;
  padding: 1rem;
  top: 0.5rem;
  width: auto;
  z-index: 1000;
}

#loading_counter {
  color: #191819;
  font-family: "Lato", sans-serif;
  font-size: 18px;
  line-height: 1;
  text-align: center;
  text-transform: capitalize;
}

.p-top-news__card:focus-visible,
.p-archive__link:focus-visible,
.p-works__item:focus-visible {
  outline-offset: 6px;
}

.p-works-heading {
  display: contents;
}

.p-works__meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.p-works__date {
  color: rgba(25, 24, 25, 0.7);
  flex-shrink: 0;
  font-family: "Lato", sans-serif;
  font-size: 14px;
  letter-spacing: 0.05em;
  line-height: 1;
}

.p-works__empty {
  padding: 4rem 0;
}

.p-contact__notice {
  line-height: 1.8;
}

.p-top-team__wrap {
  grid-template-areas:
    "item"
    "lists";
  grid-template-columns: minmax(0, 1fr);
  row-gap: 3.5rem;
}

.p-top-team__lists {
  align-self: start;
  margin-left: auto;
  max-width: 30rem;
  width: 50%;
}

.p-entry__article,
.p-archive {
  color: #191819;
}

.p-entry__article {
  margin-inline: auto;
  max-width: 900px;
}

.p-entry__header,
.p-archive__header {
  border-bottom: 1px solid rgba(25, 24, 25, 0.25);
  padding-bottom: 2.5rem;
}

.p-entry__eyebrow {
  color: #ff4800;
  font-family: "Lato", sans-serif;
  font-size: 14px;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.p-entry__title,
.p-archive__title {
  font-size: clamp(2rem, 5vw, 4.5rem);
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.25;
}

.p-entry__date,
.p-archive__date {
  color: rgba(25, 24, 25, 0.65);
  display: block;
  font-family: "Lato", sans-serif;
  font-size: 14px;
  letter-spacing: 0.05em;
  margin-top: 1.5rem;
}

.p-entry__thumb {
  aspect-ratio: 16 / 9;
  margin-top: 3.5rem;
  overflow: hidden;
}

.p-entry__thumb img,
.p-archive__thumb img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.p-entry__content {
  font-size: 16px;
  line-height: 2;
  margin-top: 3.5rem;
}

.p-entry__content > * + * {
  margin-top: 1.5em;
}

.p-entry__content h2,
.p-entry__content h3 {
  font-weight: 700;
  line-height: 1.5;
  margin-top: 2.5em;
}

.p-entry__content h2 {
  font-size: 1.75rem;
}

.p-entry__content h3 {
  font-size: 1.35rem;
}

.p-entry__content a {
  color: #c93a00;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

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

.p-entry__back {
  margin-top: 5rem;
}

.p-archive__description {
  line-height: 1.8;
  margin-top: 1.5rem;
}

.p-archive__list {
  display: grid;
  gap: 4rem 2rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 4rem;
}

.p-archive__link {
  display: block;
}

.p-archive__thumb {
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.p-archive__body {
  margin-top: 1.25rem;
}

.p-archive__item-title {
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.5;
  margin-top: 0.75rem;
}

.p-archive__summary {
  color: rgba(25, 24, 25, 0.75);
  line-height: 1.8;
  margin-top: 0.75rem;
}

.p-archive__empty {
  margin-top: 4rem;
}

.navigation.pagination {
  margin-top: 5rem;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.page-numbers {
  align-items: center;
  border: 1px solid rgba(25, 24, 25, 0.25);
  display: inline-flex;
  justify-content: center;
  min-height: 2.75rem;
  min-width: 2.75rem;
  padding: 0.5rem;
}

.page-numbers.current {
  background: #191819;
  color: #fcfdff;
}

@media screen and (max-width: 767px) {
  .p-top-team__wrap {
    row-gap: 2.5rem;
  }

  .p-top-team__lists {
    width: 100%;
  }

  .p-works-heading {
    align-items: flex-end;
    display: flex;
    gap: 3.4375rem;
    margin-top: 4rem;
    padding-inline: 1.25rem;
  }

  .p-works-heading .p-works-tab {
    margin-top: 0;
    padding-inline: 0;
  }

  .p-works {
    width: 100%;
  }

  .p-works__list {
    align-items: stretch;
    gap: 4.5rem;
  }

  .p-works__item {
    display: block;
  }

  .p-works__meta {
    margin-top: 1rem;
  }

  .p-works__cat {
    margin-top: 0;
  }

  .p-works__item-title {
    margin-top: 1rem;
  }

  .p-works__client {
    margin-top: 0.5rem;
  }

  .p-works__end-space {
    display: none;
  }

  .p-entry__header,
  .p-archive__header {
    padding-bottom: 1.75rem;
  }

  .p-entry__content {
    font-size: 14px;
    margin-top: 2.5rem;
  }

  .p-entry__thumb {
    margin-top: 2.5rem;
  }

  .p-archive__list {
    display: block;
    margin-top: 3rem;
  }

  .p-archive__item + .p-archive__item {
    margin-top: 3rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
