:root {
  
  --c-ink:        #07023a;   
  --c-black:      #000000;   
  --c-gray:       #474747;   
  --c-yellow:     #fcc503;   
  --c-yellow-dk:  #e3b103;   
  --c-navy:       #022f7d;   
  --c-sky:        #eaf4ff;   
  --c-white:      #ffffff;

  --font-display: "Trebuchet MS", "Segoe UI", Arial, system-ui, sans-serif;
  --font-text:    "Segoe UI", "Helvetica Neue", Arial, system-ui, sans-serif;

  --container: 1400px;
  --gutter: clamp(20px, 3vw, 50px);

  
  --k: min(1px, calc(100vw / 1899));

  
  --about-bg: url("/img/nom-tlo-sekcji.png");
}

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

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

body {
  margin: 0;
  background: var(--c-sky);
  color: var(--c-ink);
  font: 400 20px/1.2 var(--font-text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, p, figure { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
address { font-style: normal; }

:focus-visible {
  outline: 3px solid var(--c-navy);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 12px 20px;
  background: var(--c-white);
  color: var(--c-ink);
  font: 700 16px/1 var(--font-text);
  text-decoration: none;
}
.skip-link:focus { left: 0; }

.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.btn {
  display: inline-block;
  padding: 22px 35px;
  border-radius: 32px;
  background: var(--c-yellow);
  color: var(--c-ink);
  font: 700 clamp(14px, 1.2vw, 17px)/1 var(--font-display);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform .3s ease, background-color .3s ease;
}
.btn:hover,
.btn:focus-visible { background: var(--c-yellow-dk); transform: scale(1.1); }

.hero {
  
  --stage: min(100%, 1899px);
  --edge: calc((100% - var(--stage)) / 2);

  position: relative;
  overflow: hidden;
  min-height: calc(933 * var(--k));
  display: flex;
  align-items: center;
  padding: calc(230 * var(--k)) calc(var(--edge) + 146 * var(--k)) calc(120 * var(--k));
}

.hero__decor {
  position: absolute;
  top: 0;
  left: var(--edge);
  width: var(--stage);
  height: 100%;
  pointer-events: none;
}

.hero__arc { position: absolute; overflow: hidden; }
.hero__arc::before {
  content: "";
  position: absolute;
  left: calc(var(--r) * -1);
  top: calc(var(--r) * -1);
  width: calc(var(--r) * 2);
  height: calc(var(--r) * 2);
  border-radius: 50%;
}

.hero__arc--light {
  --r: calc(638 * var(--k));
  top: 0;
  left: calc(385 * var(--k));
  width: var(--r);
  height: calc(616 * var(--k));
}
.hero__arc--light::before { border: calc(244 * var(--k)) solid var(--c-white); }

.hero__arc--navy {
  --r: calc(440 * var(--k));
  top: calc(497 * var(--k));
  left: calc(1342 * var(--k));
  width: var(--r);
  height: calc(436 * var(--k));
}
.hero__arc--navy::before { border: calc(195 * var(--k)) solid var(--c-navy); }

.hero__circle {
  position: absolute;
  top: calc(155 * var(--k));
  left: calc(1027 * var(--k));
  width: calc(629 * var(--k));
  height: calc(629 * var(--k));
  border: calc(9 * var(--k)) solid var(--c-yellow);
  border-radius: 50%;
  animation: rotate-in 1s ease both;
}

.hero__logo {
  position: absolute;
  z-index: 2;
  top: calc(38 * var(--k));
  left: calc(var(--edge) + 130 * var(--k));
  width: calc(200 * var(--k));
}

.hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: calc(40 * var(--k));
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(34px, calc(60 * var(--k)), 60px);
  font-weight: 700;
  line-height: 1.22;
}

.hero__lead {
  margin-top: calc(30 * var(--k));
  max-width: calc(640 * var(--k));
  font-size: clamp(17px, calc(22 * var(--k)), 22px);
  line-height: 1.4;
}

.hero__cta { margin-top: calc(40 * var(--k)); }

.hero__media { justify-self: center; }

.hero--error { min-height: calc(760 * var(--k)); }
.hero--error .hero__inner { grid-template-columns: 1fr; }

.hero__globe {
  width: calc(560 * var(--k));
  transition: transform .8s ease;
}
.hero__globe:hover { transform: rotate(1turn); }

.about {
  background-color: var(--c-white);
  background-image: var(--about-bg, none);
  background-repeat: no-repeat;
  background-position: center top;
  background-size: 100% auto;   
  padding: clamp(70px, 10vw, 155px) 0 clamp(90px, 13vw, 210px);
}

.about__text { max-width: 680px; }

.about__title {
  margin-bottom: 30px;
  font-family: var(--font-display);
  font-size: clamp(30px, 3.2vw, 45px);
  font-weight: 700;
  line-height: 1.2;
}

.about__text p + p { margin-top: 18px; }
.about__text a { text-decoration: underline; }

.services {
  padding: clamp(60px, 8vw, 110px) 0 clamp(80px, 11vw, 140px);
  text-align: center;
}

.services__title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.6vw, 54px);
  font-weight: 700;
  line-height: 1.2;
}

.services__cta { margin-top: clamp(30px, 3vw, 60px); }

.services__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 50px 0;
  margin-top: clamp(60px, 8vw, 105px);
  padding-inline: clamp(24px, 5.95vw, 113px);
}

.service__title {
  position: relative;
  display: inline-block;
  font-family: var(--font-display);
  font-size: clamp(19px, 1.5vw, 23px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: .6px;
}

.service__title::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: 50%;
  left: 50%;
  width: 67px;
  height: 67px;
  margin: -33px 0 0 -51px;
  border-radius: 50%;
  background: var(--c-white);
}
.service__title > span { position: relative; z-index: 1; }

.service__desc {
  max-width: 330px;
  margin: 28px auto 0;
  line-height: 1.4;
}

.site-footer { background: var(--c-white); }

.footer__grid {
  display: grid;
  
  grid-template-columns: 24% 29% 21% 26%;
  padding-top: 50px;
  padding-bottom: 60px;
}

.footer__brand { grid-column: 1; }
.footer__contact { grid-column: 3; }
.footer__address { grid-column: 4; }

.footer__brand img { width: 112px; }

.footer__rule {
  width: 175px;
  height: 1px;
  margin: 27px 0 0;
  border: 0;
  background: var(--c-gray);
}

.footer__legal {
  margin-top: 30px;
  max-width: 430px;
  color: var(--c-gray);
  font-size: 15px;
  line-height: 1.5;
}

.footer__title {
  color: var(--c-black);
  font-family: var(--font-text);
  font-size: 26px;
  font-weight: 700;
  line-height: 1.2;
}

.contact-list { margin-top: 22px; }
.contact-list li + li { margin-top: 12px; }

.contact-list a {
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--c-black);
  font-size: 19px;
  text-decoration: none;
}
.contact-list a:hover span,
.contact-list a:focus-visible span { text-decoration: underline; }

.icon { flex: none; color: var(--c-navy); }
.icon--box { width: 28px; height: 28px; }
.icon--pin { width: 26px; height: 34px; }

.address-box {
  display: flex;
  align-items: flex-start;
  gap: 22px;
  margin-top: 24px;
  color: var(--c-black);
  font-size: 19px;
  line-height: 1.55;
}

.copyright {
  padding: 17px 20px;
  background: var(--c-yellow);
  color: var(--c-ink);
  font-size: 17px;
  line-height: 1.2;
  text-align: center;
}

@keyframes rotate-in {
  from { opacity: 0; transform: rotate(-200deg); }
  to   { opacity: 1; transform: rotate(0); }
}

@keyframes zoom-in {
  from { opacity: 0; transform: scale(.3); }
  to   { opacity: 1; transform: scale(1); }
}

.js .reveal::before { opacity: 0; }
.js .reveal.is-visible::before { animation: zoom-in .8s ease both; }

.js .service:nth-child(2) .reveal.is-visible::before { animation-delay: .2s; }
.js .service:nth-child(3) .reveal.is-visible::before { animation-delay: .3s; }
.js .service:nth-child(4) .reveal.is-visible::before { animation-delay: .4s; }

@media (max-width: 1200px) {
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 50px 40px; }
  .footer__brand { grid-column: 1; }
  .footer__contact { grid-column: 1; }
  .footer__address { grid-column: 2; grid-row: 1 / span 2; }
}

@media (max-width: 1024px) {
  .hero {
    display: block;
    min-height: 0;
    padding: 150px var(--gutter) 80px;
  }

  .hero__logo {
    top: 30px;
    left: var(--gutter);
    width: 150px;
  }

  .hero__inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 60px;
  }

  .hero__text,
  .hero__media {
    min-width: 0;
  }

  .hero__title { font-size: clamp(34px, 5.4vw, 48px); }
  .hero__lead { max-width: 560px; font-size: 19px; }
  .hero__cta { margin-top: 34px; }

  .hero__arc,
  .hero__circle { display: none; }

  .hero__media {
    position: relative;
    width: min(420px, 78vw);
    margin-inline: auto;
  }

  .hero__media::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 112%;
    height: 112%;
    transform: translate(-50%, -50%);
    border: 5px solid var(--c-yellow);
    border-radius: 50%;
    pointer-events: none;
  }

  .hero__globe { width: 100%; }
  .services__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 60px 30px; }
}

@media (max-width: 767px) {
  :root { --gutter: clamp(18px, 5vw, 24px); }

  html,
  body { width: 100%; max-width: 100%; }

  body { font-size: 17px; line-height: 1.45; }

  .container { min-width: 0; }

  .hero {
    padding: 30px var(--gutter) 56px;
    text-align: center;
  }

  .hero__logo {
    position: static;
    width: 104px;
    margin: 0 auto 30px;
    transform: none;
  }

  .hero__inner { gap: 36px; }

  .hero__title {
    font-size: clamp(29px, 8vw, 34px);
    line-height: 1.08;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
  }

  .hero__title br { display: block; }

  .hero__lead {
    max-width: 350px;
    margin: 24px auto 0;
    font-size: 17px;
    line-height: 1.45;
  }

  .hero__cta { margin-top: 28px; }

  .hero__media {
    width: min(250px, 66vw);
    margin-top: 2px;
  }

  .hero__media::before {
    width: 108%;
    height: 108%;
    border-width: 4px;
  }

  .btn {
    width: min(100%, 330px);
    padding: 17px 18px;
    border-radius: 30px;
    font-size: 13px;
    line-height: 1.2;
    letter-spacing: 1.35px;
    white-space: normal;
  }

  .btn:hover,
  .btn:focus-visible { transform: none; }

  .about {
    padding: 56px 0 64px;
    background-image: none;
  }

  .about__title {
    margin-bottom: 22px;
    font-size: clamp(28px, 8vw, 36px);
  }

  .about__text { max-width: none; }
  .about__text p { overflow-wrap: anywhere; }

  .services { padding: 58px 0 72px; }

  .services__head { padding-inline: var(--gutter); }

  .services__title {
    font-size: clamp(28px, 8vw, 38px);
    line-height: 1.15;
  }

  .services__cta { margin-top: 28px; }

  .services__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 52px;
    width: 100%;
    margin-top: 64px;
    padding-inline: var(--gutter);
  }

  .service { min-width: 0; }

  .service__title {
    max-width: 100%;
    font-size: 21px;
  }

  .service__desc {
    max-width: 420px;
    margin-top: 24px;
    padding-inline: 4px;
    overflow-wrap: anywhere;
  }

  .footer__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 38px;
    padding-top: 44px;
    padding-bottom: 48px;
  }

  .footer__brand,
  .footer__contact,
  .footer__address {
    grid-column: 1;
    grid-row: auto;
    min-width: 0;
  }

  .footer__brand img { width: 104px; }
  .footer__rule { width: min(175px, 100%); }
  .footer__legal { max-width: none; margin-top: 24px; }
  .footer__title { font-size: 24px; }

  .contact-list { margin-top: 18px; }

  .contact-list a {
    gap: 14px;
    min-width: 0;
    font-size: 17px;
  }

  .contact-list a span {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .address-box {
    gap: 14px;
    margin-top: 18px;
    font-size: 17px;
    line-height: 1.5;
  }

  .address-box address {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .copyright {
    padding: 15px var(--gutter);
    font-size: 14px;
  }
}

@media (max-width: 390px) {
  .hero { padding-top: 24px; padding-bottom: 50px; }
  .hero__logo { width: 96px; margin-bottom: 26px; }
  .hero__title { font-size: clamp(28px, 8.1vw, 32px); }
  .hero__lead { max-width: 320px; font-size: 16px; }
  .hero__media { width: min(224px, 64vw); }
  .btn { max-width: 310px; font-size: 12.5px; }
  .services__grid { gap: 46px; margin-top: 56px; }
  .footer__grid { gap: 34px; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .hero__globe:hover { transform: none; }
  .btn:hover { transform: none; }
}
