/* Readability changes stay scoped to the annotated elements. */
html {
  scroll-padding-top: 124px;
}

body {
  min-width: 0;
}

#start .hero__content > .eyebrow {
  font-size: 14px;
}

#start .hero__pitch {
  word-spacing: 0.045em;
  letter-spacing: 0;
}

#oferta .offer-card {
  transition: border-color 180ms ease, box-shadow 180ms ease, opacity 600ms ease, transform 600ms ease;
}

#oferta .offer-card:focus-within {
  border-color: rgba(255, 212, 61, 0.62);
  box-shadow: 0 0 0 1px rgba(255, 212, 61, 0.1), 0 0 24px rgba(255, 212, 61, 0.07);
  transform: none;
}

/* Native scrolling remains usable when JavaScript is unavailable. */
.project-carousel .project-carousel__track {
  grid-template-columns: none;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 40px) / 3);
  gap: 20px;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 2px;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 212, 61, 0.45) transparent;
  padding: 8px 2px 14px;
}

.project-carousel .project-card {
  min-width: 0;
  scroll-snap-align: start;
  transition-delay: 0s;
}

.project-carousel__controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  margin-top: 20px;
}

.project-carousel__controls[hidden] {
  display: none;
}

.project-carousel__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(255, 212, 61, 0.4);
  border-radius: 6px;
  background: #ffd43d;
  color: #050505;
  cursor: pointer;
}

.project-carousel__button:disabled {
  opacity: 0.35;
  cursor: default;
}

.project-carousel__button--previous .ui-icon {
  transform: rotate(180deg);
}

.project-carousel__status {
  min-width: 86px;
  text-align: center;
  font-size: 13px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.project-carousel__button:focus-visible,
.project-carousel__track:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 3px;
}

#oferta .offer-card > p,
#proces .timeline__item > p {
  font-weight: 500;
}

#kontakt .cta__inner > div > .eyebrow {
  color: var(--yellow);
}

#pakiety .price-card__label {
  max-width: 100%;
  font-size: 12px;
  line-height: 1.5;
  white-space: normal;
}

#pakiety .price-card {
  transition: border-color 200ms ease;
}

#pakiety .price-card:hover,
#pakiety .price-card:focus-within {
  border-color: rgba(255, 212, 61, 0.72);
  transform: none;
}

#pakiety .price-card--featured:hover,
#pakiety .price-card--featured:focus-within {
  border-color: rgba(255, 212, 61, 0.98);
}

/* The outline does not change card dimensions or move adjacent content. */
#proces .timeline__item {
  position: relative;
}

#proces .timeline__item::after {
  position: absolute;
  inset: -8px;
  border: 1px solid transparent;
  border-radius: 6px;
  content: "";
  pointer-events: none;
  transition: border-color 180ms ease;
}

#proces .timeline__item:hover::after,
#proces .timeline__item:focus-within::after {
  border-color: var(--yellow);
}

.site-header {
  min-height: 88px;
  padding: 14px 20px;
  background: rgba(5, 5, 5, 0.98);
  border-color: rgba(255, 212, 61, 0.22);
}

.site-header .brand {
  font-size: 17px;
}

.site-header .brand img {
  width: 64px;
  height: 50px;
  flex: 0 0 64px;
}

.site-header .nav a {
  min-height: 46px;
  padding-inline: 14px;
  font-size: 15px;
}

body.page main > .section:first-child,
body.single main > .section:first-child:not(.blog-post) {
  padding-top: 146px;
}

.footer .footer__logo-link {
  display: block;
  width: 264px;
  max-width: 100%;
  flex: 0 1 auto;
  border-radius: 8px;
}

.footer .footer__logo-link:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 6px;
}

.footer .footer__logo {
  width: 100%;
  max-width: 100%;
  flex: 0 0 auto;
  border-radius: 8px;
  /* Neutralize the dark raster backdrop without fading the white logo. */
  filter: contrast(1.35);
  mix-blend-mode: screen;
}

.footer .footer__brand {
  padding-block: 40px;
  gap: 24px;
  justify-items: center;
}

.footer .footer__identity {
  width: 100%;
  justify-content: center;
}

.footer .footer__brand > span {
  text-align: center;
}

.footer .footer__address {
  font-weight: 600;
}

/* About-page refinements preserve the editor's section and card structure. */
.about-page .about-hero h1 {
  font-size: 54px;
  margin-bottom: 24px;
}

.about-page .about-hero__title {
  font-size: 30px;
  line-height: 1.3;
}

.about-page .about-intro,
.about-page .about-note,
.about-page .about-project .about-prose,
.about-page .about-feature .about-prose,
.footer .footer__brand > span {
  font-weight: 500;
}

.about-page .about-hero {
  padding-bottom: 56px;
}

.about-page .about-intro {
  max-width: 800px;
}

.about-page .about-jump {
  margin-top: 32px;
}

.about-page .about-section {
  padding-block: 64px;
}

.about-page .about-section__head {
  margin-bottom: 32px;
}

.about-page .about-notes {
  gap: 28px;
}

.about-page .about-note {
  padding: 16px 18px 16px 22px;
  border-radius: 0 6px 6px 0;
  transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.about-page .about-note:focus-within {
  color: var(--text);
  background-color: rgba(255, 255, 255, 0.045);
  border-color: var(--yellow);
}

.about-page .about-feature-grid {
  gap: 24px;
}

.about-page .about-feature {
  position: relative;
  padding: 32px;
  border-radius: 8px;
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease, background-color 220ms ease;
}

.about-page .about-feature .about-prose {
  transition: color 180ms ease;
}

.about-page .about-feature:focus-within {
  transform: translateY(-4px);
  background-color: #151515;
  border-color: rgba(255, 212, 61, 0.72);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.32);
}

.about-page .about-feature:focus-within .about-prose {
  color: #ded9c9;
}

.about-projects .about-section__head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 32px;
}

.about-projects .about-section__head .eyebrow {
  padding: 0;
  font-size: 14px;
  line-height: 1.4;
}

.about-projects .about-section__head h2 {
  margin: 0;
}

.about-callout .eyebrow {
  font-size: 14px;
  line-height: 1.4;
}

.about-page .about-callout {
  padding-block: 64px;
  column-gap: 48px;
}

.footer .footer__back-to-top {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding-block: 3px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.6;
  animation: ao-back-float 3s ease-in-out infinite;
}

.footer__back-to-top .ui-icon {
  width: 16px;
  height: 16px;
  flex-basis: 16px;
  filter: invert(1);
  transform: rotate(-90deg);
}

.footer__back-to-top:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 4px;
}

@keyframes ao-back-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

/* Pointer effects remain supplemental; touch users see every description by default. */
@media (hover: hover) and (pointer: fine) {
  #oferta .offer-card:hover {
    border-color: rgba(255, 212, 61, 0.62);
    box-shadow: 0 0 0 1px rgba(255, 212, 61, 0.1), 0 0 24px rgba(255, 212, 61, 0.07);
    transform: none;
  }

  .about-page .about-note:hover {
    color: var(--text);
    background-color: rgba(255, 255, 255, 0.045);
    border-color: var(--yellow);
  }

  .about-page .about-feature:hover {
    transform: translateY(-4px);
    background-color: #151515;
    border-color: rgba(255, 212, 61, 0.72);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.32);
  }

  .about-page .about-feature:hover .about-prose {
    color: #ded9c9;
  }
}

@media (min-width: 941px) and (max-width: 1100px) {
  .site-header .nav a {
    padding-inline: 10px;
    font-size: 14px;
  }
}

@media (max-width: 940px) {
  .project-carousel .project-carousel__track {
    grid-auto-columns: calc((100% - 20px) / 2);
  }

  .footer .footer__logo-link {
    width: 248px;
  }

  .footer .footer__brand {
    padding-block: 36px;
  }

  .site-header .nav {
    background: #080808;
  }

  .site-header .nav:not(.is-open) {
    visibility: hidden;
  }

  .about-page .about-hero {
    padding-bottom: 48px;
  }

  .about-page .about-section,
  .about-page .about-callout {
    padding-block: 52px;
  }

  .about-page .about-notes {
    gap: 24px;
  }

  .about-page .about-feature-grid {
    gap: 20px;
  }

  .about-page .about-feature {
    padding: 28px;
  }
}

@media (max-width: 620px) {
  .project-carousel .project-carousel__track {
    grid-auto-columns: 100%;
  }

  .site-header {
    min-height: 82px;
    padding: 12px;
  }

  .site-header .brand img {
    width: 46px;
    height: 38px;
    flex-basis: 46px;
  }

  .site-header .brand span {
    font-size: 14px;
  }

  .footer__identity {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 18px;
  }

  .footer .footer__logo-link {
    width: 240px;
  }

  .footer .footer__brand {
    padding-block: 32px;
    gap: 22px;
  }

  .footer .footer__back-to-top {
    font-size: 13px;
  }

  .about-page .about-hero h1 {
    font-size: 40px;
    margin-bottom: 20px;
  }

  .about-page .about-hero__title {
    font-size: 23px;
  }

  .about-page .about-hero {
    padding-bottom: 40px;
  }

  .about-page .about-jump {
    margin-top: 28px;
  }

  .about-page .about-section,
  .about-page .about-callout {
    padding-block: 40px;
  }

  .about-page .about-section__head {
    margin-bottom: 28px;
  }

  .about-page .about-notes {
    gap: 22px;
  }

  .about-page .about-note {
    padding: 12px 14px 12px 18px;
  }

  .about-page .about-feature-grid {
    gap: 18px;
  }

  .about-page .about-feature {
    padding: 24px;
  }

  .about-page .about-projects .about-section__head {
    gap: 14px;
    margin-bottom: 26px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .footer .footer__back-to-top {
    animation: none;
  }

  #proces .timeline__item::after,
  #oferta .offer-card,
  #pakiety .price-card,
  .about-page .about-note,
  .about-page .about-feature,
  .about-page .about-feature .about-prose {
    transition: none;
  }

  .about-page .about-feature:hover,
  .about-page .about-feature:focus-within {
    transform: none;
  }

  .project-carousel .project-carousel__track {
    scroll-behavior: auto;
  }
}
