*, *::before, *::after { box-sizing: border-box; }
html { background: var(--paper) var(--paper-grain); }
body { margin: 0; color: var(--ink); font-family: var(--sans); }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; cursor: pointer; }
button:focus-visible, a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
svg {
  width: 1.5rem;
  height: 1.5rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.site-header {
  width: 100%;
  max-width: var(--screen-width);
  margin-inline: auto;
  min-height: calc(var(--header-height) + env(safe-area-inset-top));
  padding: env(safe-area-inset-top) var(--gutter) 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
}
.wordmark {
  min-height: 44px;
  display: grid;
  grid-column: 1 / 3;
  grid-template-columns: subgrid;
  align-items: center;
  color: inherit;
  text-decoration: none;
}
.wordmark img { height: auto; }
.wordmark-emblem { width: clamp(2.85rem, 15vw, 3.75rem); }
.wordmark-copy { display: grid; justify-items: center; gap: .25rem; }
.wordmark-name { width: clamp(6.25rem, 32vw, 8.25rem); }
.wordmark-tagline {
  font-size: clamp(.5rem, 2.15vw, .55rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: .07em;
  text-align: center;
  white-space: nowrap;
}
.wordmark-tagline::before {
  content: "";
  display: block;
  width: clamp(3.25rem, 19vw, 5rem);
  height: 1px;
  margin: 0 auto .25rem;
  background: var(--rule);
}
@media (max-width: 23rem) {
  .site-header { padding-inline: .75rem; }
  .wordmark-emblem { width: 2rem; }
  .wordmark-name, .wordmark-tagline { width: 5.25rem; }
  .wordmark-tagline { white-space: normal; }
}
.header-controls { display: flex; justify-self: end; align-items: center; gap: .25rem; }
.header-controls button {
  border: 0;
  background: transparent;
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: .75rem;
}
.language-button { gap: .25rem; font-size: .875rem; font-weight: 650; }
.language-button svg { width: .8rem; height: .8rem; }
.menu-button svg { width: 1.65rem; height: 1.65rem; }

.hero {
  margin-inline: auto;
  max-width: var(--screen-width);
  padding-bottom: 2rem;
  text-align: center;
}
.hero-image {
  position: relative;
  isolation: isolate;
  height: clamp(15.75rem, calc(100svh - 29rem - 21vw), min(106vw, 29rem));
  overflow: hidden;
  border-radius: 2rem 2rem 0 0;
}
.hero-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 84% center;
  mask-image: linear-gradient(to bottom,
    #000 67%, rgb(0 0 0 / .9) 75%, rgb(0 0 0 / .38) 88.5%, transparent);
}
.hero-content {
  position: relative;
  margin-top: -1.15rem;
  padding-inline: var(--gutter);
}
.hero-eyebrow {
  display: flex;
  justify-content: center;
  align-items: end;
  gap: .85rem;
  margin: 0 auto;
  width: fit-content;
  color: var(--accent);
  font-size: clamp(.85rem, 3.5vw, 1rem);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: .095em;
}
.hero-eyebrow::before, .hero-eyebrow::after {
  content: "";
  width: clamp(1.1rem, 7vw, 2.4rem);
  border-top: 1px solid var(--rule);
  margin-bottom: .44em;
}
.hero h1 {
  margin: clamp(.85rem, 2.6vh, 1.65rem) -.5rem 0;
  font-family: var(--serif);
  font-size: clamp(1.9rem, 10.4vw, 3rem);
  font-weight: 400;
  line-height: 1.015;
  letter-spacing: -.045em;
}
.hero-description {
  max-width: 32.5ch;
  margin: clamp(.85rem, 2.45vh, 1.55rem) auto 0;
  font-size: clamp(.875rem, 4.05vw, 1.095rem);
  line-height: 1.48;
  letter-spacing: -.016em;
}
.primary-button {
  position: relative;
  display: grid;
  place-items: center;
  width: calc(100% + 1rem);
  margin-inline: -.5rem;
  min-height: clamp(3.375rem, 7.7vh, 4.25rem);
  margin-block: clamp(1.125rem, 2.9vh, 1.95rem) 0;
  padding: .65rem 3rem;
  border: 0;
  border-radius: 2rem;
  color: var(--accent-ink);
  background: var(--accent-gradient);
  font-size: clamp(.9rem, 4vw, 1.08rem);
  font-weight: 620;
  line-height: 1.2;
}
.primary-button svg {
  position: absolute;
  right: 1.35rem;
  width: 1.35rem;
  height: 1.35rem;
  transition: transform var(--motion-short) ease;
}
.hero-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .65rem;
  width: fit-content;
  max-width: 100%;
  min-height: 3.125rem;
  padding: .65rem 1.35rem;
  margin: 1.25rem auto 0;
  font-size: 1rem;
}
.hero-button .hero-phone-icon {
  position: static;
  flex: none;
  width: 1.15rem;
  height: 1.15rem;
}

.no-script { padding: 1rem; text-align: center; }

@media (min-width: 375px) and (max-width: 399px) {
  .hero-image { height: clamp(15.75rem, calc(100svh - 27.75rem - 21vw), 24rem); }
}

@media (hover: hover) {
  .primary-button:not(.hero-button):hover svg { transform: translateX(.2rem); }
  .header-controls button:hover { background: color-mix(in srgb, var(--accent) 7%, transparent); }
}
@media (prefers-reduced-motion: no-preference) {
  .hero-content { animation: settle 540ms cubic-bezier(.2, .55, .35, 1) both; }
  body:not(:has(.action-dialog[open])) .hero-phone-icon {
    animation: phone-nudge 2.8s ease-in-out .2s infinite;
  }
  @keyframes phone-nudge {
    0%, 32%, 100% { transform: rotate(0); }
    8%, 24% { transform: rotate(-9deg); }
    16% { transform: rotate(6deg); }
  }
  @keyframes settle {
    from { opacity: .75; transform: translateY(.32rem); }
    to { opacity: 1; transform: translateY(0); }
  }
}
@media (prefers-reduced-motion: reduce) {
  .primary-button svg { transition: none; }
  .primary-button:hover svg { transform: none; }
}

html:not(:lang(pl, en)) .hero-eyebrow {
  max-width: 100%;
}

html:not(:lang(pl, en)) .hero-eyebrow > span,
html:not(:lang(pl, en)) .hero-button > span {
  min-width: 0;
  overflow-wrap: anywhere;
}
