@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap");

:root {
  --blue: #054c8c;
  --blue-light: #1fb1d3;
  --orange: #ff8200;
  --yellow: #f0af1b;
  --ink: #33343a;
  --muted: #64646b;
  --surface: #f7f7f7;
  --white: #fff;
  --shadow: 0 14px 40px rgba(5, 76, 140, 0.13);
  --content: 1300px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 112px;
}

body {
  margin: 0;
  color: var(--muted);
  background: var(--white);
  font-family: "Poppins", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.72;
}

body.menu-open {
  overflow: hidden;
}

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

a {
  color: var(--blue);
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.skip-link {
  position: fixed;
  z-index: 9999;
  top: 8px;
  left: 8px;
  transform: translateY(-150%);
  padding: 10px 16px;
  color: var(--white);
  background: var(--blue);
}

.skip-link:focus {
  transform: none;
}

.container {
  width: min(calc(100% - 40px), var(--content));
  margin-inline: auto;
}

.topbar {
  color: rgba(255, 255, 255, 0.94);
  background: var(--blue);
  font-size: 13px;
}

.topbar__inner {
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.topbar__group {
  display: flex;
  align-items: center;
  gap: 28px;
}

.topbar a {
  color: var(--white);
}

.topbar__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.topbar__icon {
  color: var(--orange);
  font-size: 16px;
}

.site-header {
  position: sticky;
  z-index: 1000;
  top: 0;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 2px 14px rgba(5, 76, 140, 0.08);
  backdrop-filter: blur(10px);
}

.header__inner {
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
}

.brand {
  flex: 0 0 auto;
}

.brand img {
  width: 82px;
  height: 82px;
  object-fit: contain;
}

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 13px;
  font-weight: 500;
}

.nav a {
  position: relative;
  color: #3a3a3a;
  white-space: nowrap;
}

.nav a::after {
  position: absolute;
  right: 0;
  bottom: -11px;
  left: 0;
  height: 2px;
  content: "";
  transform: scaleX(0);
  background: var(--orange);
  transition: transform 0.25s ease;
}

.nav a:hover,
.nav a:focus-visible,
.nav a.active {
  color: var(--orange);
}

.nav a:hover::after,
.nav a:focus-visible::after,
.nav a.active::after {
  transform: scaleX(1);
}

.nav__switch {
  padding: 9px 14px;
  color: var(--white) !important;
  border-radius: 2px;
  background: var(--blue);
}

.nav__switch::after {
  display: none;
}

.menu-toggle {
  width: 46px;
  height: 46px;
  display: none;
  align-items: center;
  justify-content: center;
  border: 0;
  color: var(--white);
  border-radius: 2px;
  background: var(--blue);
  cursor: pointer;
}

.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  width: 23px;
  height: 2px;
  display: block;
  background: currentColor;
  transition: 0.25s ease;
}

.menu-toggle span {
  position: relative;
}

.menu-toggle span::before,
.menu-toggle span::after {
  position: absolute;
  left: 0;
  content: "";
}

.menu-toggle span::before {
  top: -7px;
}

.menu-toggle span::after {
  top: 7px;
}

.menu-open .menu-toggle span {
  background: transparent;
}

.menu-open .menu-toggle span::before {
  top: 0;
  transform: rotate(45deg);
}

.menu-open .menu-toggle span::after {
  top: 0;
  transform: rotate(-45deg);
}

.hero {
  position: relative;
  min-height: clamp(520px, 42vw, 800px);
  overflow: hidden;
  color: var(--white);
  background: #111;
}

.hero__slides,
.hero__slide {
  position: absolute;
  inset: 0;
}

.hero__slide {
  visibility: hidden;
  opacity: 0;
  background-position: center;
  background-size: cover;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

.hero__slide.active {
  visibility: visible;
  opacity: 1;
}

.hero__slide::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.48) 0%, rgba(0, 0, 0, 0.12) 47%, transparent 70%);
}

.hero__slide--light::after {
  background: linear-gradient(90deg, rgba(5, 76, 140, 0.82), rgba(5, 76, 140, 0.36) 48%, rgba(5, 76, 140, 0.08));
}

.hero__content {
  position: relative;
  z-index: 2;
  width: min(620px, 54%);
  min-height: clamp(520px, 42vw, 800px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding-block: 70px;
}

.hero__eyebrow {
  margin: 0 0 7px;
  color: var(--orange);
  font-size: clamp(18px, 1.8vw, 27px);
  font-weight: 600;
  letter-spacing: 0.08em;
}

.hero h1 {
  max-width: 700px;
  margin: 0 0 20px;
  color: var(--white);
  font-size: clamp(36px, 4.4vw, 70px);
  font-weight: 600;
  line-height: 1.06;
}

.hero__subtitle {
  max-width: 610px;
  margin: 0 0 32px;
  color: rgba(255, 255, 255, 0.95);
  font-size: clamp(17px, 1.4vw, 22px);
  line-height: 1.55;
}

.hero__controls {
  position: absolute;
  z-index: 4;
  right: max(20px, calc((100vw - var(--content)) / 2));
  bottom: 28px;
  display: flex;
  gap: 8px;
}

.hero__dot {
  width: 12px;
  height: 12px;
  padding: 0;
  border: 2px solid var(--white);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.hero__dot.active {
  background: var(--orange);
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 12px 25px;
  border: 0;
  color: var(--white);
  border-radius: 2px;
  background: var(--orange);
  font-weight: 600;
  transition: transform 0.2s ease, background 0.2s ease;
  cursor: pointer;
}

.button:hover,
.button:focus-visible {
  color: var(--white);
  transform: translateY(-2px);
  background: var(--blue);
}

.button:disabled,
.button.is-loading {
  opacity: 0.72;
  cursor: wait;
  pointer-events: none;
}

.button--blue {
  background: var(--blue);
}

.button--blue:hover,
.button--blue:focus-visible {
  background: var(--orange);
}

.section {
  padding: 84px 0;
}

.section--soft {
  background: var(--surface);
}

.section--blue {
  color: rgba(255, 255, 255, 0.92);
  background: var(--blue);
}

.section--orange {
  color: var(--white);
  background: var(--orange);
}

.section__head {
  max-width: 820px;
  margin: 0 auto 46px;
  text-align: center;
}

.section__head--left {
  margin-inline: 0;
  text-align: left;
}

.section__head h2,
.content h2 {
  margin: 0;
  color: var(--blue);
  font-size: clamp(29px, 3vw, 42px);
  font-weight: 600;
  line-height: 1.2;
}

.section--blue .section__head h2,
.section--orange .section__head h2 {
  color: var(--white);
}

.section__line {
  width: 100px;
  height: 3px;
  display: block;
  margin: 18px auto 20px;
  background: var(--orange);
}

.section__head--left .section__line {
  margin-left: 0;
}

.section--orange .section__line {
  background: var(--blue);
}

.section__intro {
  margin: 0;
  font-size: 17px;
}

.split {
  display: grid;
  align-items: center;
  gap: clamp(38px, 5vw, 75px);
  grid-template-columns: 1fr 1fr;
}

.split--top {
  align-items: start;
}

.split__image {
  width: 100%;
  min-height: 390px;
  border-radius: 2px;
  box-shadow: var(--shadow);
  object-fit: cover;
}

.content p:first-of-type {
  margin-top: 0;
}

.content p:last-child {
  margin-bottom: 0;
}

.feature-grid,
.service-grid,
.gallery-grid {
  display: grid;
  gap: 24px;
}

.feature-grid {
  grid-template-columns: repeat(3, 1fr);
}

.service-grid {
  grid-template-columns: repeat(3, 1fr);
}

.feature-card,
.service-card {
  position: relative;
  overflow: hidden;
  padding: 32px;
  border-radius: 2px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.feature-card {
  color: rgba(255, 255, 255, 0.9);
  background: var(--blue);
}

.feature-card:nth-child(2) {
  background: var(--orange);
}

.feature-card:nth-child(3) {
  background: #1fafd1;
}

.feature-card h3,
.service-card h3 {
  margin: 0 0 14px;
  font-size: 20px;
  line-height: 1.35;
}

.feature-card h3 {
  color: var(--white);
}

.service-card h3 {
  color: var(--blue);
}

.feature-card p,
.service-card p {
  margin: 0;
}

.feature-card__number {
  position: absolute;
  right: 15px;
  bottom: -18px;
  color: rgba(255, 255, 255, 0.12);
  font-size: 96px;
  font-weight: 700;
  line-height: 1;
}

.check-list {
  display: grid;
  margin: 28px 0 0;
  padding: 0;
  gap: 13px;
  list-style: none;
}

.check-list--columns {
  grid-template-columns: repeat(2, 1fr);
  column-gap: 38px;
}

.check-list li {
  position: relative;
  padding-left: 28px;
}

.check-list li::before {
  position: absolute;
  top: 1px;
  left: 0;
  color: var(--orange);
  content: "✓";
  font-weight: 700;
}

.accordion {
  display: grid;
  gap: 12px;
}

.accordion__item {
  border: 1px solid #e0e4e8;
  border-radius: 2px;
  background: var(--white);
}

.accordion__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 22px;
  border: 0;
  color: var(--blue);
  background: transparent;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.accordion__trigger::after {
  content: "+";
  color: var(--orange);
  font-size: 26px;
  font-weight: 300;
}

.accordion__trigger[aria-expanded="true"]::after {
  content: "−";
}

.accordion__panel {
  display: none;
  padding: 0 22px 20px;
}

.accordion__panel.open {
  display: block;
}

.accordion__panel p,
.accordion__panel ul {
  margin-block: 0;
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.pill {
  padding: 9px 15px;
  color: var(--blue);
  border: 1px solid rgba(5, 76, 140, 0.16);
  border-radius: 999px;
  background: var(--white);
  font-size: 14px;
  font-weight: 500;
}

.gallery-grid {
  grid-template-columns: repeat(3, 1fr);
}

.album {
  position: relative;
  min-height: 390px;
  overflow: hidden;
  color: var(--white);
  border-radius: 2px;
  background: #111;
  box-shadow: var(--shadow);
  cursor: pointer;
}

.album img {
  width: 100%;
  height: 390px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.album:hover img,
.album:focus-within img {
  transform: scale(1.05);
}

.album__overlay {
  position: absolute;
  inset: auto 0 0;
  padding: 60px 25px 24px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.82));
}

.album h3 {
  margin: 0;
  color: var(--white);
  font-size: 21px;
}

.album p {
  margin: 3px 0 0;
  color: rgba(255, 255, 255, 0.75);
  font-size: 13px;
}

.album button {
  position: absolute;
  inset: 0;
  width: 100%;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.lightbox {
  position: fixed;
  z-index: 2000;
  inset: 0;
  visibility: hidden;
  display: grid;
  place-items: center;
  padding: 30px;
  opacity: 0;
  background: rgba(0, 0, 0, 0.9);
  transition: 0.25s ease;
}

.lightbox.open {
  visibility: visible;
  opacity: 1;
}

.lightbox img {
  max-width: min(1100px, 92vw);
  max-height: 86vh;
  object-fit: contain;
}

.lightbox__close {
  position: absolute;
  top: 18px;
  right: 22px;
  border: 0;
  color: var(--white);
  background: transparent;
  font-size: 42px;
  cursor: pointer;
}

.contact-grid {
  display: grid;
  align-items: start;
  gap: 50px;
  grid-template-columns: 0.8fr 1.2fr;
}

.contact-cards {
  display: grid;
  gap: 13px;
  margin-top: 30px;
}

.contact-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px;
  color: var(--muted);
  background: var(--white);
  box-shadow: var(--shadow);
}

.contact-card__icon {
  color: var(--orange);
  font-size: 25px;
  line-height: 1;
}

.contact-card strong {
  display: block;
  color: var(--blue);
}

.contact-card a {
  color: var(--muted);
}

.form {
  padding: clamp(26px, 4vw, 48px);
  border-radius: 2px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.form__grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, 1fr);
}

.form__field {
  display: grid;
  gap: 7px;
}

.form__field--full {
  grid-column: 1 / -1;
}

.form label,
.form legend {
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
}

.form input,
.form select,
.form textarea {
  width: 100%;
  min-height: 49px;
  padding: 12px 14px;
  border: 1px solid #dce1e5;
  border-radius: 2px;
  color: var(--ink);
  background: #fbfbfb;
  outline: none;
}

.form textarea {
  min-height: 125px;
  resize: vertical;
}

.form input:focus,
.form select:focus,
.form textarea:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(255, 130, 0, 0.1);
}

.form__radio {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  padding: 0;
  border: 0;
}

.form__radio label,
.form__consent {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-weight: 400;
}

.form__radio input,
.form__consent input {
  width: auto;
  min-height: 0;
  margin-top: 4px;
}

.form__notice {
  display: none;
  margin-bottom: 22px;
  padding: 14px 17px;
  border-left: 4px solid var(--blue);
  color: var(--blue);
  background: #edf7ff;
}

.form__notice.error {
  border-color: #b42318;
  color: #b42318;
  background: #fff1f0;
}

.form__notice.visible {
  display: block;
}

.honeypot {
  position: absolute !important;
  left: -9999px !important;
}

.site-footer {
  color: rgba(255, 255, 255, 0.85);
  background: var(--blue);
}

.footer__main {
  display: grid;
  padding-block: 45px;
  gap: 50px;
  grid-template-columns: 1.2fr 0.8fr 0.9fr;
}

.footer__title {
  margin: 0 0 14px;
  color: var(--white);
  font-size: 18px;
  font-weight: 600;
}

.footer__text {
  margin: 0;
  font-size: 14px;
}

.footer__links {
  display: grid;
  padding: 0;
  gap: 8px;
  list-style: none;
}

.footer__links a {
  color: rgba(255, 255, 255, 0.84);
}

.footer__links a:hover {
  color: var(--orange);
}

.footer__bottom {
  padding: 18px 0;
  color: var(--white);
  background: var(--orange);
  font-size: 13px;
}

.footer__bottom .container {
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

.footer__bottom a {
  color: var(--white);
}

.back-to-top {
  position: fixed;
  z-index: 900;
  right: 20px;
  bottom: 20px;
  width: 44px;
  height: 44px;
  visibility: hidden;
  display: grid;
  place-items: center;
  border: 0;
  color: var(--white);
  opacity: 0;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
  transition: 0.2s ease;
  cursor: pointer;
}

.back-to-top.visible {
  visibility: visible;
  opacity: 1;
}

.home-choice {
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 34px;
  background: var(--white) url("../images/home-bg.jpg") center / cover no-repeat;
}

.home-choice__inner {
  width: min(1180px, 100%);
  display: grid;
  align-items: center;
  gap: clamp(30px, 5vw, 80px);
  grid-template-columns: repeat(2, 1fr);
}

.home-choice__card {
  position: relative;
  display: grid;
  justify-items: center;
  color: var(--blue);
  text-align: center;
  transition: transform 0.35s ease;
}

.home-choice__card:hover {
  transform: translateY(-10px);
}

.home-choice__image {
  width: min(465px, 42vw);
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
  filter: drop-shadow(0 18px 28px rgba(5, 76, 140, 0.12));
}

.home-choice__logo {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 105px;
  transform: translate(-50%, -50%);
  border: 5px solid var(--white);
  border-radius: 50%;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.17);
}

.home-choice h1,
.home-choice h2 {
  margin: 22px 0 0;
  color: var(--blue);
  font-size: clamp(23px, 2.2vw, 36px);
  font-weight: 600;
  line-height: 1.25;
}

.home-choice__card--poradnia h2 {
  color: var(--orange);
}

.home-choice__badge {
  position: fixed;
  z-index: 2;
  top: 20px;
  left: 50%;
  width: 90px;
  transform: translateX(-50%);
}

@media (max-width: 1160px) {
  .nav {
    gap: 15px;
    font-size: 12px;
  }

  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 990px) {
  .topbar__inner {
    justify-content: center;
  }

  .topbar__group--right {
    display: none;
  }

  .header__inner {
    min-height: 70px;
  }

  .brand img {
    width: 58px;
    height: 64px;
  }

  .menu-toggle {
    display: flex;
  }

  .nav {
    position: absolute;
    z-index: 1200;
    top: 100%;
    right: 0;
    left: 0;
    width: 100%;
    height: calc(100vh - 70px);
    height: calc(100dvh - 70px);
    max-height: calc(100vh - 70px);
    max-height: calc(100dvh - 70px);
    display: flex;
    align-items: stretch;
    flex-direction: column;
    gap: 0;
    padding: 24px max(24px, calc((100vw - var(--content)) / 2));
    transform: translateY(-8px);
    visibility: hidden;
    opacity: 0;
    background: var(--blue);
    box-shadow: 0 24px 45px rgba(5, 76, 140, 0.25);
    transition: transform 0.25s ease, opacity 0.25s ease, visibility 0.25s ease;
    overflow-y: auto;
    overscroll-behavior: contain;
    pointer-events: none;
  }

  .menu-open .nav {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .nav a {
    padding: 12px 0;
    color: var(--white);
    font-size: 15px;
    white-space: normal;
  }

  .nav a::after {
    bottom: 6px;
  }

  .nav__switch {
    margin-top: 12px;
    padding-inline: 15px !important;
    background: var(--orange);
  }

  .hero,
  .hero__content {
    min-height: 620px;
  }

  .hero__content {
    width: 65%;
  }

  .feature-grid,
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-grid .album:last-child {
    grid-column: 1 / -1;
  }

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

@media (max-width: 760px) {
  html {
    scroll-padding-top: 76px;
  }

  body {
    font-size: 15px;
  }

  .container {
    width: min(calc(100% - 30px), var(--content));
  }

  .topbar {
    display: none;
  }

  .section {
    padding: 62px 0;
  }

  .hero,
  .hero__content {
    min-height: 650px;
  }

  .hero__slide {
    background-position: 64% center;
  }

  .hero__slide::after,
  .hero__slide--light::after {
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.76), rgba(0, 0, 0, 0.32));
  }

  .hero__content {
    width: min(calc(100% - 44px), var(--content));
    justify-content: flex-end;
    padding-bottom: 95px;
  }

  .split,
  .contact-grid,
  .footer__main {
    grid-template-columns: 1fr;
  }

  .feature-grid,
  .service-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid .album:last-child {
    grid-column: auto;
  }

  .check-list--columns {
    grid-template-columns: 1fr;
  }

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

  .form__field--full {
    grid-column: auto;
  }

  .footer__bottom .container {
    flex-direction: column;
    gap: 4px;
  }

  .home-choice {
    overflow: auto;
    padding: 115px 24px 45px;
  }

  .home-choice__inner {
    grid-template-columns: 1fr;
  }

  .home-choice__image {
    width: min(350px, 82vw);
  }

  .home-choice__badge {
    width: 76px;
  }
}

@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;
  }
}
