/* Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

/* Tokens */
:root {
  --bg: #F4F6FA;
  --surface: #FFFFFF;
  --text: #111827;
  --muted: #4B5563;
  --accent: #2F5BEA;
  --accent-strong: #2448BC;
  --accent-text: #FFFFFF;
  --plate-bg: #111827;
  --plate-text: #FFFFFF;
  --line: #E3E8F2;
  --font-body: 'Avenir Next', Avenir, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  --font-heading: 'Avenir Next', Avenir, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  --radius-tile: 16px;
  --radius-btn: 10px;
  --shadow-soft: 0 1px 2px rgb(0 0 0 / .06), 0 12px 32px rgb(0 0 0 / .08);
  --pad-wrap: clamp(16px, 4vw, 40px);
}

/* Base */
body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  font-weight: 400;
  line-height: 1.65;
  overflow-x: hidden;
}

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

a {
  color: var(--accent-strong);
  text-decoration: none;
  text-underline-offset: 3px;
}

a:hover {
  text-decoration: underline;
}

ul {
  list-style: none;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2.2rem, 3.2vw + 1rem, 3.5rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.8rem, 2.6vw + 0.8rem, 3rem);
  margin-bottom: 16px;
}

h3 {
  font-size: clamp(1.2rem, 0.8vw + 0.9rem, 1.5rem);
  margin-bottom: 12px;
}

p + p {
  margin-top: 12px;
}

/* Background layer */
body {
  background-image: radial-gradient(rgb(47 91 234 / .3) 4px, transparent 4px);
  background-size: 48px 48px;
}

/* Layout */
.wrap {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--pad-wrap);
}

.wrap--narrow {
  max-width: 760px;
}

.seg {
  padding-block: clamp(64px, 9vw, 128px);
}

.seg__intro {
  color: var(--muted);
  max-width: 640px;
  margin-bottom: 40px;
}

/* Sections */
.seg__plate,
.slab {
  background-color: var(--surface);
  border-radius: var(--radius-tile);
  box-shadow: var(--shadow-soft);
}

.slab--dark,
.intro__plate {
  background-color: var(--plate-bg);
  color: var(--plate-text);
}

.seg--intro .wrap,
.seg--form .wrap,
.seg--faq .wrap,
.seg--dzialy .wrap,
.seg--prices .wrap,
.seg--zakres .wrap {
  background-color: var(--surface);
  border-radius: var(--radius-tile);
  box-shadow: var(--shadow-soft);
  padding: clamp(28px, 5vw, 56px);
}

/* Header */
.top {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: var(--surface);
  box-shadow: 0 1px 2px rgb(0 0 0 / .05);
}

.top__row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 24px;
  min-height: 72px;
}

.brand {
  margin-left: auto;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text);
  white-space: nowrap;
}

.brand:hover {
  text-decoration: none;
  color: var(--text);
}

.top__rule {
  height: 3px;
  width: 100%;
  background-color: var(--accent);
}

/* Nav */
.menu__trigger {
  display: none;
}

.menu__list {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.menu__link {
  display: block;
  position: relative;
  padding: 10px 14px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  border-radius: 6px 6px 0 0;
  background-image: linear-gradient(rgb(47 91 234 / .16), rgb(47 91 234 / .16));
  background-repeat: no-repeat;
  background-position: bottom left;
  background-size: 100% 0;
  transition: background-size .28s ease, color .2s ease;
}

.menu__link:hover {
  background-size: 100% 100%;
  color: var(--accent-strong);
  text-decoration: none;
}

.menu__link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.menu__link[aria-current="page"] {
  color: var(--accent-strong);
  font-weight: 600;
}

.menu__link[aria-current="page"]::after {
  content: "";
  position: absolute;
  bottom: 2px;
  left: calc(50% - 3px);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--accent);
  animation: menu-dot .35s ease-out;
}

@keyframes menu-dot {
  from {
    transform: scale(0);
  }

  60% {
    transform: scale(1.45);
  }

  to {
    transform: scale(1);
  }
}

/* Mobile nav */
@media (max-width: 767px) {
  .top__row {
    flex-wrap: wrap;
    gap: 12px;
    min-height: 64px;
    padding-block: 12px;
  }

  .menu {
    order: 2;
    width: 100%;
  }

  .brand {
    order: 1;
    margin-left: 0;
  }

  .menu__trigger {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 0;
    background: none;
    font: inherit;
    font-weight: 600;
    color: var(--text);
    padding: 8px 4px;
    cursor: pointer;
  }

  .menu__trigger:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
  }

  .menu__trigger-box {
    display: inline-flex;
    flex-direction: column;
    gap: 4px;
    width: 22px;
  }

  .menu__trigger-bar {
    height: 2px;
    background-color: var(--text);
    border-radius: 2px;
    transition: transform .25s ease, opacity .25s ease;
  }

  .menu__list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 8px 0 16px;
  }

  .menu--open .menu__list {
    display: flex;
  }

  .menu--open .menu__trigger-bar:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .menu--open .menu__trigger-bar:nth-child(2) {
    opacity: 0;
  }

  .menu--open .menu__trigger-bar:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  .menu__link {
    padding: 12px 40px 12px 8px;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
  }

  .menu__link[aria-current="page"]::after {
    left: auto;
    right: 10px;
    bottom: calc(50% - 3px);
  }
}

/* Skip link */
.skip {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 100;
  background-color: var(--accent);
  color: var(--accent-text);
  padding: 10px 18px;
  border-radius: var(--radius-btn);
  font-weight: 600;
}

.skip:focus {
  left: 8px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 28px;
  border: 0;
  border-radius: var(--radius-btn);
  background-image: linear-gradient(105deg, var(--accent) 0%, var(--accent-strong) 55%, var(--accent) 100%);
  background-color: var(--accent);
  background-size: 220% 100%;
  background-position: 100% 0;
  color: var(--accent-text);
  font: inherit;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: background-position .35s ease, transform .15s ease, box-shadow .2s ease;
}

.btn:hover {
  background-position: 0 0;
  box-shadow: 0 8px 20px rgb(47 91 234 / .28);
}

.btn:focus-visible {
  outline: 3px solid var(--plate-bg);
  outline-offset: 2px;
}

.btn:active {
  transform: translateY(1px);
}

.btn--text {
  background: none;
  border: 0;
  padding: 8px 2px;
  min-height: 48px;
  color: var(--accent-strong);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  transition: color .2s ease, transform .15s ease;
}

.btn--text:hover {
  color: var(--plate-bg);
  box-shadow: none;
  background: none;
}

.btn--text:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.btn--text:active {
  transform: translateY(1px);
}

/* Hero */
.seg--hero {
  padding-top: clamp(40px, 6vw, 72px);
  padding-bottom: clamp(64px, 9vw, 128px);
}

.hero__media {
  margin: 0 0 28px;
}

.hero__frame {
  display: block;
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-tile);
  overflow: hidden;
}

.hero__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  animation: hero-settle .8s ease-out forwards;
}

@keyframes hero-settle {
  to {
    transform: scale(1);
  }
}

.hero__cols {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: start;
}

.hero__title {
  margin-bottom: 24px;
  max-width: 22ch;
}

.hero__note {
  color: var(--muted);
  max-width: 44ch;
}

/* Intro */
.intro__plate {
  padding: clamp(32px, 5vw, 64px);
}

.intro__plate .read {
  color: #C7CDD9;
  max-width: 60ch;
}

.intro__plate .read + .read {
  margin-top: 20px;
}

.intro__accent {
  color: #AFC2FF;
}

/* Accent type */
.accent {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(1.6rem, 1.5vw + 1.15rem, 3.4rem);
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin-bottom: 20px;
}

/* Tiles */
.tile-grid,
.price-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-bottom: 32px;
}

.tile {
  position: relative;
  background-color: var(--bg);
  border-radius: var(--radius-tile);
  padding: 28px;
  transition: transform .25s ease, box-shadow .25s ease;
}

.tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
}

.tile--contrast {
  background-color: var(--plate-bg);
  color: var(--plate-text);
}

.tile--contrast .read {
  color: #C7CDD9;
}

.tile__tag {
  margin-top: 16px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent-strong);
}

.tile--contrast .tile__tag {
  color: #AFC2FF;
}

.tile__photo {
  position: relative;
  margin: 0;
}

.tile__photo img {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-tile);
  transition: transform .45s ease;
}

.tile__photo:hover img {
  transform: scale(1.06);
}

.tile__under {
  position: absolute;
  inset: 0;
  transform: translate(16px, 16px);
  border-radius: var(--radius-tile);
  z-index: 0;
}

.tile__under--blue {
  background-color: var(--accent);
}

.tile__under--dark {
  background-color: var(--plate-bg);
}

/* Form */
.lead {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  max-width: 640px;
}

.lead__field {
  display: grid;
  gap: 6px;
}

.lead__label {
  font-weight: 600;
  font-size: 1rem;
}

.lead__input {
  font: inherit;
  color: var(--text);
  background-color: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-btn);
  padding: 12px 16px;
  min-height: 48px;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.lead__area {
  min-height: 120px;
  resize: vertical;
}

.lead__input:focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgb(47 91 234 / .22);
}

.lead__input::placeholder {
  color: var(--muted);
  opacity: 1;
}

.lead__error {
  color: #A8232B;
  font-size: 0.9rem;
  font-weight: 600;
}

.lead__check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  max-width: 640px;
}

.lead__check input {
  width: 20px;
  height: 20px;
  margin-top: 3px;
  accent-color: var(--accent);
  flex: none;
}

.lead__check label {
  font-size: 0.95rem;
  color: var(--muted);
}

.lead__note {
  color: var(--muted);
  font-size: 0.9rem;
}

.lead__submit {
  justify-self: start;
}

.lead.is-sending .lead__submit {
  opacity: .65;
  pointer-events: none;
}

/* Prices */
.price__note {
  margin-top: 16px;
  font-weight: 600;
  color: var(--accent-strong);
  font-size: 0.95rem;
}

/* FAQ */
.faq {
  display: grid;
  gap: 12px;
  max-width: 860px;
}

.faq__item {
  background-color: var(--bg);
  border-radius: var(--radius-tile);
  padding: 4px 24px;
  border: 1px solid var(--line);
}

.faq__item summary {
  cursor: pointer;
  font-weight: 600;
  padding: 18px 0;
  list-style: none;
  position: relative;
  padding-right: 36px;
}

.faq__item summary::-webkit-details-marker {
  display: none;
}

.faq__item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent-strong);
  line-height: 1;
  transition: transform .25s ease;
}

.faq__item[open] summary::after {
  content: "−";
}

.faq__item[open] .read {
  animation: faq-open .3s ease-out;
}

@keyframes faq-open {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.faq__item .read {
  padding-bottom: 18px;
}

/* Scope */
.scope__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}

.scope__photo {
  position: relative;
  margin: 0;
}

.scope__photo img {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-tile);
  transition: transform .45s ease;
}

.scope__photo:hover img {
  transform: scale(1.03);
}

.scope__list {
  margin: 20px 0 28px;
  display: grid;
  gap: 10px;
}

.scope__list li {
  position: relative;
  padding-left: 26px;
}

.scope__list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: .55em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background-color: var(--accent);
}

/* Read */
.read {
  color: var(--text);
  max-width: 68ch;
}

.read h2 {
  margin-top: 40px;
}

.read h3 {
  margin-top: 32px;
}

.read ol,
.read ul {
  padding-left: 28px;
  margin: 16px 0;
  display: grid;
  gap: 8px;
}

.read ol {
  list-style: decimal;
}

.read ul {
  list-style: disc;
}

.read table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 0.95rem;
}

.read th,
.read td {
  text-align: left;
  padding: 10px 14px;
  border: 1px solid var(--line);
  background-color: var(--surface);
}

.read th {
  background-color: var(--plate-bg);
  color: var(--plate-text);
  font-weight: 600;
}

/* Key data */
.key-data {
  background-color: var(--plate-bg);
  color: var(--plate-text);
  border-radius: var(--radius-tile);
  padding: 28px;
  margin-bottom: 40px;
}

.key-data h2 {
  color: #AFC2FF;
}

.key-data p {
  color: #C7CDD9;
}

.key-data a,
.intro__plate a,
.tile--contrast a {
  color: #AFC2FF;
  text-decoration: underline;
}

.key-data a:hover,
.intro__plate a:hover,
.tile--contrast a:hover {
  color: #D6E0FF;
}

/* Page head */
.prose-head {
  padding-top: clamp(40px, 6vw, 72px);
}

.prose-head h1 {
  margin-bottom: 16px;
}

.prose-head .seg__intro {
  margin-bottom: 0;
}

/* Contact block */
.contact-list {
  display: grid;
  gap: 12px;
  margin-bottom: 32px;
}

.contact-list li {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.contact-list span {
  font-weight: 600;
  min-width: 90px;
  color: var(--muted);
}

/* Status pages */
.status {
  text-align: center;
  padding-block: clamp(64px, 10vw, 128px);
}

.status__code {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(3.5rem, 6vw + 1rem, 6rem);
  line-height: 1;
  color: var(--accent);
  margin-bottom: 16px;
}

.status .read {
  margin-inline: auto;
}

.status .btn {
  margin-top: 28px;
}

/* Call button */
.call {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 40;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  background-image: linear-gradient(105deg, var(--accent) 0%, var(--accent-strong) 55%, var(--accent) 100%);
  background-color: var(--accent);
  background-size: 220% 100%;
  background-position: 100% 0;
  color: var(--accent-text);
  font-weight: 600;
  box-shadow: 0 10px 24px rgb(17 24 39 / .28);
  transition: background-position .35s ease, transform .15s ease;
}

.call:hover {
  background-position: 0 0;
  text-decoration: none;
}

.call:focus-visible {
  outline: 3px solid var(--plate-bg);
  outline-offset: 2px;
}

.call:active {
  transform: translateY(1px);
}

.call__icon {
  width: 14px;
  height: 14px;
  border: 2px solid var(--accent-text);
  border-radius: 3px;
  position: relative;
}

.call__icon::before {
  content: "";
  position: absolute;
  inset: 2px;
  border: 2px solid var(--accent-text);
  border-radius: 50%;
}

/* Footer */
.foot {
  background-color: var(--surface);
  border-top: 3px solid var(--accent);
  margin-top: clamp(48px, 7vw, 96px);
  padding-top: clamp(40px, 6vw, 72px);
}

.foot__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  padding-bottom: 40px;
}

.foot__tag {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 38ch;
}

.foot__head {
  font-size: 1.05rem;
  margin-bottom: 14px;
}

.foot__links {
  display: grid;
  gap: 8px;
}

.foot__links a {
  color: var(--text);
}

.foot__links a:hover {
  color: var(--accent-strong);
}

.foot address {
  font-style: normal;
  display: grid;
  gap: 10px;
  color: var(--muted);
  font-size: 0.95rem;
}

.foot address p {
  max-width: 40ch;
}

.foot ul {
  display: grid;
  gap: 8px;
  font-size: 0.95rem;
}

.foot ul li span {
  font-weight: 600;
  color: var(--text);
}

.foot__bottom {
  border-top: 1px solid var(--line);
  padding-block: 20px;
}

.foot__copy {
  color: var(--muted);
  font-size: 0.9rem;
}

/* Reveal */
.fade-in {
  opacity: 1;
}

html.is-ready .fade-in {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s ease, transform .6s ease;
}

html.is-ready .fade-in.is-in {
  opacity: 1;
  transform: none;
}

/* Breakpoints */
@media (max-width: 480px) {
  .call__label {
    display: none;
  }

  .call {
    padding: 0;
    width: 56px;
    height: 56px;
    justify-content: center;
  }
}

@media (min-width: 480px) {
  .hero__cols {
    grid-template-columns: 1.2fr 1fr;
  }
}

@media (min-width: 640px) {
  .tile-grid,
  .price-list {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 1fr;
  }

  .tile {
    display: flex;
    flex-direction: column;
  }

  .tile__tag,
  .tile__photo,
  .price__note {
    margin-top: auto;
    padding-top: 16px;
  }

  .lead {
    grid-template-columns: 1fr 1fr;
  }

  .lead__field:has(.lead__input[type="tel"]),
  .lead__field:has(.lead__area),
  .lead__check,
  .lead__note,
  .lead__submit {
    grid-column: 1 / -1;
  }

  .scope__layout {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 768px) {
  .foot__row {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 1024px) {
  .price-list {
    grid-template-columns: repeat(3, 1fr);
  }

  .scope__photo {
    max-width: 55%;
  }

  .hero__note {
    padding-top: 8px;
  }
}

@media (min-width: 1280px) {
  .hero__cols {
    gap: 40px;
  }
}

/* Motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }

  html.is-ready .fade-in {
    opacity: 1;
    transform: none;
  }

  .hero__frame img {
    transform: scale(1);
  }
}
