:root {
  --ink: #101827;
  --ink-soft: #263447;
  --ink-muted: #667085;
  --blue: #0077b6;
  --blue-deep: #075985;
  --blue-soft: #e7f7ff;
  --ice: #f5fbff;
  --line: #dbe5ee;
  --line-strong: #b9c8d6;
  --white: #ffffff;
  --amber: #f2a900;
  --green: #15a579;

  --font: Inter, "Plus Jakarta Sans", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, Arial, sans-serif;
  --container: 1180px;
  --gutter: clamp(18px, 4vw, 34px);
  --header: 76px;
  --radius: 8px;
  --shadow: 0 18px 50px rgb(16 24 39 / 0.12);
  --shadow-soft: 0 10px 28px rgb(16 24 39 / 0.08);
}

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

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header) + 18px);
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink-soft);
  background: var(--white);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

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

a {
  color: inherit;
}

h1,
h2,
h3,
p,
figure,
blockquote,
dl,
dd {
  margin-block-start: 0;
}

h1,
h2,
h3 {
  color: var(--ink);
  line-height: 1.05;
  letter-spacing: 0;
}

h1 {
  max-width: 820px;
  margin-block-end: 22px;
  color: var(--white);
  font-size: clamp(2.65rem, 6.8vw, 5.7rem);
  font-weight: 900;
}

h2 {
  margin: 0;
  font-size: clamp(2rem, 4.2vw, 3.6rem);
  font-weight: 850;
}

h3 {
  margin-block-end: 10px;
  font-size: 1.18rem;
  font-weight: 850;
}

p {
  margin-block-end: 18px;
}

:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 4px;
}

::selection {
  color: var(--ink);
  background: #bae6fd;
}

.site-header {
  position: sticky;
  inset-block-start: 0;
  z-index: 20;
  display: flex;
  min-height: var(--header);
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-inline: max(var(--gutter), calc((100vw - var(--container)) / 2));
  color: var(--white);
  background: rgb(16 24 39 / 0.94);
  border-block-end: 1px solid rgb(255 255 255 / 0.1);
}

@supports (backdrop-filter: blur(16px)) {
  .site-header {
    background: rgb(16 24 39 / 0.82);
    backdrop-filter: blur(16px);
  }
}

.brand {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
  color: var(--white);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  place-items: center;
  color: var(--ink);
  background: linear-gradient(135deg, #ffffff, #89dcff);
  border-radius: var(--radius);
  font-weight: 900;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 1.04rem;
  line-height: 1.2;
}

.brand small {
  overflow: hidden;
  color: rgb(255 255 255 / 0.68);
  font-size: 0.76rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-toggle {
  display: grid;
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  place-content: center;
  gap: 5px;
  padding: 0;
  color: var(--white);
  background: rgb(255 255 255 / 0.08);
  border: 1px solid rgb(255 255 255 / 0.24);
  border-radius: var(--radius);
}

.nav-toggle span {
  width: 21px;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
  transition: transform 180ms ease, opacity 180ms ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.site-nav {
  position: absolute;
  inset-block-start: calc(100% + 10px);
  inset-inline: var(--gutter);
  display: none;
  padding: 10px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.site-nav.is-open,
.nav-toggle[aria-expanded="true"] + .site-nav {
  display: grid;
}

.site-nav a {
  display: flex;
  min-height: 44px;
  align-items: center;
  padding-inline: 14px;
  color: var(--ink);
  border-radius: 6px;
  font-size: 0.94rem;
  font-weight: 760;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--blue-deep);
  background: var(--blue-soft);
}

.site-nav .nav-phone {
  justify-content: center;
  margin-block-start: 8px;
  color: var(--white);
  background: var(--blue);
}

.hero {
  position: relative;
  display: grid;
  min-height: calc(100svh - var(--header));
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
  overflow: hidden;
  background: var(--ink);
}

.hero::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(90deg, rgb(7 32 54 / 0.9) 0%, rgb(7 89 133 / 0.76) 48%, rgb(125 211 252 / 0.28) 100%),
    linear-gradient(180deg, rgb(255 255 255 / 0.08), rgb(16 24 39 / 0.12)),
    url("photos/klimatyzacja-mieszkanie-warszawa.png") center / cover no-repeat;
  content: "";
}

.hero::after {
  position: absolute;
  inset-inline: 0;
  inset-block-end: 0;
  height: 1px;
  background: rgb(255 255 255 / 0.16);
  content: "";
}

.hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: center;
  justify-items: center;
  max-width: var(--container);
  min-height: calc(100svh - var(--header));
  margin-inline: auto;
  padding-block: clamp(72px, 9vw, 126px);
  padding-inline: max(var(--gutter), calc((100vw - var(--container)) / 2));
  text-align: center;
}

.eyebrow {
  margin-block-end: 14px;
  color: var(--blue);
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.3;
  text-transform: uppercase;
}

.hero .eyebrow {
  width: fit-content;
  padding: 8px 12px;
  color: #dff6ff;
  background: rgb(0 119 182 / 0.22);
  border: 1px solid rgb(137 220 255 / 0.32);
  border-radius: 999px;
}

.hero-lead {
  max-width: 690px;
  margin-block-end: 0;
  color: rgb(255 255 255 / 0.8);
  font-size: clamp(1.05rem, 1.6vw, 1.28rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-block: 34px 0;
}

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 13px 20px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 850;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  color: var(--white);
  background: var(--blue);
  box-shadow: 0 16px 34px rgb(0 119 182 / 0.28);
}

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

.button.secondary {
  color: var(--white);
  background: rgb(255 255 255 / 0.1);
  border-color: rgb(255 255 255 / 0.28);
}

.button.secondary:hover {
  background: rgb(255 255 255 / 0.17);
}

.quick-contact {
  display: grid;
  width: min(calc(100% - (2 * var(--gutter))), var(--container));
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: -34px auto 0;
  overflow: hidden;
  position: relative;
  z-index: 2;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.quick-contact > * {
  min-width: 0;
  padding: 22px 24px;
  border-inline-end: 1px solid var(--line);
  text-decoration: none;
}

.quick-contact > *:last-child {
  border-inline-end: 0;
}

.quick-contact span {
  display: block;
  color: var(--ink-muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.quick-contact strong {
  display: block;
  margin-block-start: 4px;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 1.05rem;
}

.section {
  padding-block: clamp(72px, 8vw, 112px);
  padding-inline: max(var(--gutter), calc((100vw - var(--container)) / 2));
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  gap: clamp(24px, 5vw, 70px);
  align-items: end;
  margin-block-end: clamp(34px, 5vw, 58px);
}

.section-heading .eyebrow {
  margin-block-end: 0;
}

.proof-grid,
.service-list,
.project-grid,
.testimonial-grid,
.credential-panel {
  display: grid;
  gap: 18px;
}

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

.proof-grid article,
.credential-card,
.service-item,
.project-card,
.testimonial-grid figure,
.faq-list details {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.proof-grid article {
  padding: 26px;
}

.proof-grid img {
  width: 44px;
  height: 44px;
  margin-block-end: 22px;
}

.proof-grid p,
.credential-card p,
.service-item p,
.project-card span,
.testimonial-grid figcaption,
.faq-list details > p {
  color: var(--ink-muted);
}

.credentials {
  background: var(--ice);
}

.credential-panel {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.credential-card {
  position: relative;
  padding: 26px;
  overflow: hidden;
}

.credential-card::before {
  position: absolute;
  inset-inline: 0;
  inset-block-start: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--blue), var(--green), var(--amber));
  content: "";
}

.credential-card > span {
  display: inline-flex;
  width: fit-content;
  min-height: 32px;
  align-items: center;
  margin-block-end: 18px;
  padding-inline: 12px;
  color: var(--blue-deep);
  background: var(--blue-soft);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 900;
}

.services {
  background: var(--white);
}

.service-list {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.service-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  padding: 24px;
}

.service-item > span {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: var(--white);
  background: var(--ink);
  border-radius: var(--radius);
  font-size: 0.82rem;
  font-weight: 900;
}

.brand-line {
  margin: 22px 0 0;
  padding: 16px 18px;
  color: var(--ink);
  background: var(--blue-soft);
  border: 1px solid #bee8fb;
  border-radius: var(--radius);
  font-weight: 850;
}

.projects {
  background: var(--ice);
}

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

.project-card {
  overflow: hidden;
}

.project-card > img {
  width: 100%;
  aspect-ratio: 16 / 11;
  background: var(--ice);
  object-fit: cover;
}

.project-card > .project-image-exterior {
  object-position: center 10%;
}

.project-card > div {
  padding: 22px;
}

.project-card p {
  margin-block-end: 8px;
  color: var(--blue-deep);
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
}

.process {
  color: rgb(255 255 255 / 0.72);
  background: var(--ink);
}

.process h2,
.process .timeline strong {
  color: var(--white);
}

.process .eyebrow {
  color: #89dcff;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 0.14);
  border-radius: var(--radius);
  list-style: none;
  counter-reset: step;
}

.timeline li {
  min-width: 0;
  padding: 28px;
  background: rgb(255 255 255 / 0.06);
  counter-increment: step;
}

.timeline li::before {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  margin-block-end: 26px;
  color: var(--ink);
  background: #89dcff;
  border-radius: 50%;
  content: counter(step);
  font-weight: 900;
}

.timeline strong {
  display: block;
  margin-block-end: 10px;
  line-height: 1.25;
}

.timeline span {
  color: rgb(255 255 255 / 0.68);
  font-size: 0.94rem;
}

.testimonials {
  background: var(--white);
}

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

.testimonial-grid figure {
  margin: 0;
  padding: 28px;
}

.testimonial-grid blockquote {
  margin: 0 0 22px;
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 700;
}

.testimonial-grid figcaption {
  padding-block-start: 16px;
  border-block-start: 1px solid var(--line);
  font-size: 0.88rem;
  font-weight: 800;
}

.faq {
  background: var(--ice);
}

.guide {
  background: var(--white);
}

.guide .section-heading {
  display: block;
  text-align: center;
}

.guide .section-heading > div {
  max-width: 760px;
  margin-inline: auto;
}

.section-heading > p {
  max-width: 620px;
  margin: 0;
  color: var(--ink-muted);
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.article-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 26px;
  background: var(--ice);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.article-card h3 a {
  color: inherit;
  text-decoration: none;
}

.article-card h3 a:hover {
  color: var(--blue-deep);
}

.article-card > p:not(.article-label) {
  color: var(--ink-muted);
}

.article-label {
  margin-block-end: 14px;
  color: var(--blue-deep);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.text-link {
  margin-block-start: auto;
  color: var(--blue-deep);
  font-size: 0.92rem;
  font-weight: 850;
  text-decoration: none;
}

.text-link:hover {
  text-decoration: underline;
}

.article-page main {
  background: var(--ice);
}

.article-page .article-nav {
  position: static;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.article-page .article-nav a {
  color: rgb(255 255 255 / 0.78);
}

.article-page .article-nav .nav-phone {
  min-height: 44px;
  margin: 0 0 0 8px;
  color: var(--white);
  background: var(--blue);
}

.article-hero,
.article-content {
  width: min(calc(100% - (2 * var(--gutter))), 860px);
  margin-inline: auto;
}

.article-hero {
  padding-block: clamp(64px, 10vw, 120px) 44px;
}

.article-hero h1 {
  max-width: none;
  color: var(--ink);
  font-size: clamp(2.35rem, 6vw, 4.5rem);
}

.article-intro {
  max-width: 700px;
  color: var(--ink-muted);
  font-size: 1.18rem;
}

.article-content {
  padding-block-end: clamp(72px, 10vw, 120px);
}

.article-content > * {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.article-body {
  padding: clamp(26px, 5vw, 52px);
}

.article-body h2 {
  margin-block: 46px 18px;
  font-size: clamp(1.6rem, 4vw, 2.3rem);
}

.article-body h2:first-child {
  margin-block-start: 0;
}

.article-body h3 {
  margin-block: 30px 12px;
}

.article-body li {
  margin-block: 9px;
}

.article-callout {
  margin-block-start: 24px;
  padding: 24px 26px;
  color: var(--ink);
  background: var(--blue-soft);
  border-color: #bee8fb;
}

.article-callout p:last-child,
.article-body p:last-child {
  margin-block-end: 0;
}

.faq-list {
  display: grid;
  max-width: 860px;
  gap: 12px;
}

.faq-list summary {
  position: relative;
  display: flex;
  min-height: 60px;
  align-items: center;
  padding: 18px 56px 18px 22px;
  color: var(--ink);
  cursor: pointer;
  font-weight: 850;
  list-style: none;
}

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

.faq-list summary::after {
  position: absolute;
  inset-inline-end: 22px;
  color: var(--blue);
  content: "+";
  font-size: 1.4rem;
  font-weight: 900;
  line-height: 1;
}

.faq-list details[open] summary::after {
  content: "-";
}

.faq-list details > p {
  max-width: 720px;
  margin: 0;
  padding: 0 22px 22px;
}

.cta {
  display: grid;
  width: min(calc(100% - (2 * var(--gutter))), var(--container));
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  align-items: center;
  gap: clamp(24px, 5vw, 64px);
  margin: clamp(72px, 8vw, 112px) auto;
  padding: clamp(30px, 5vw, 58px);
  color: rgb(255 255 255 / 0.74);
  background: linear-gradient(135deg, #075985, #0077b6);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.cta h2 {
  color: var(--white);
}

.cta .eyebrow {
  color: #89dcff;
}

.cta p:not(.eyebrow) {
  max-width: 640px;
  margin-block: 18px 0;
}

.contact-form {
  display: grid;
  gap: 14px;
  padding: 24px;
  background: var(--white);
  border-radius: var(--radius);
}

.contact-form label {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.contact-form label > span {
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 900;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  min-width: 0;
  color: var(--ink);
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  outline: 0;
  transition: border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.contact-form input {
  min-height: 48px;
  padding: 11px 13px;
}

.contact-form textarea {
  min-height: 132px;
  padding: 12px 13px;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  background: var(--white);
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgb(0 119 182 / 0.13);
}

.contact-form .button {
  width: 100%;
  margin-block-start: 4px;
  border: 0;
  cursor: pointer;
}

.site-footer {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding-block: 32px;
  padding-inline: max(var(--gutter), calc((100vw - var(--container)) / 2));
  color: rgb(255 255 255 / 0.68);
  background: #0b1220;
}

.site-footer p {
  margin: 0;
  font-size: 0.88rem;
}

.site-footer p:last-child {
  text-align: end;
}

@media (min-width: 900px) {
  .nav-toggle {
    display: none;
  }

  .site-nav,
  .site-nav.is-open,
  .nav-toggle[aria-expanded="true"] + .site-nav {
    position: static;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .site-nav a {
    color: rgb(255 255 255 / 0.78);
  }

  .site-nav a:hover,
  .site-nav a:focus-visible {
    color: var(--white);
    background: rgb(255 255 255 / 0.08);
  }

  .site-nav .nav-phone {
    margin-block-start: 0;
    margin-inline-start: 8px;
    color: var(--white);
    background: var(--blue);
  }
}

@media (max-width: 1050px) {
  .hero-content {
    min-height: auto;
    padding-block-end: 98px;
  }

  .proof-grid,
  .credential-panel,
  .service-list,
  .project-grid,
  .testimonial-grid,
  .article-grid,
  .timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .quick-contact,
  .section-heading,
  .proof-grid,
  .credential-panel,
  .service-list,
  .project-grid,
  .testimonial-grid,
  .article-grid,
  .timeline,
  .cta,
  .site-footer {
    grid-template-columns: minmax(0, 1fr);
  }

  .quick-contact {
    margin-block-start: 0;
    width: 100%;
    border-inline: 0;
    border-radius: 0;
  }

  .quick-contact > * {
    border-inline-end: 0;
    border-block-end: 1px solid var(--line);
  }

  .hero-content {
    padding-block: 56px 42px;
  }

  .section {
    padding-block: 62px;
  }

  .service-item {
    grid-template-columns: minmax(0, 1fr);
  }

  .site-footer p:last-child {
    text-align: start;
  }

  .article-page .article-nav a:not(.nav-phone) {
    display: none;
  }
}

@media (max-width: 380px) {
  .brand small {
    display: none;
  }

  .hero-actions .button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms;
    animation-duration: 0.01ms;
    animation-iteration-count: 1;
  }

  .button:hover {
    transform: none;
  }
}

@media (forced-colors: active) {
  .brand-mark,
  .button,
  .nav-toggle,
  .site-nav .nav-phone {
    border: 1px solid ButtonText;
  }

  :focus-visible {
    outline: 3px solid Highlight;
  }
}
