/* ==========================================================================
   DACHBUD - usługi dekarskie
   Mobile-first. Breakpoints: 640px, 1024px.
   ========================================================================== */

:root {
  --navy: #081c2c;
  --navy-2: #0c2740;
  --orange: #ea7102;
  --orange-dark: #cf6200;
  --white: #ffffff;
  --bg: #ffffff;
  --bg-muted: #f4f7fa;
  --text: #122433;
  --muted: #5c6e80;
  --line: #e4ebf1;
  --line-strong: #d5dee6;
  --danger: #b42318;
  --shadow: 0 8px 24px rgba(8, 28, 44, 0.06);
  --shadow-hover: 0 16px 34px rgba(8, 28, 44, 0.12);
  --radius: 16px;
  --radius-sm: 12px;
  --radius-pill: 999px;
  --header-h: 76px;
  --container: 1200px;
  --font: "Poppins", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: clip;
}

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

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
p {
  margin: 0;
}

:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 300;
  background: var(--orange);
  color: var(--white);
  padding: 0.6rem 1rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
}

.skip-link:focus {
  top: 0.75rem;
}

.container {
  --container-inline: 20px;
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--container-inline);
}

@media (min-width: 640px) {
  .container {
    --container-inline: 24px;
  }
}

@media (min-width: 1024px) {
  .container {
    --container-inline: 32px;
  }
}

.accent {
  color: var(--orange);
}

.eyebrow {
  margin: 0 0 0.55rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--orange);
}

.eyebrow--light {
  color: rgba(255, 255, 255, 0.78);
}

h2 {
  font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.45rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 700;
  color: var(--navy);
}

.section {
  padding: 4.25rem 0;
}

.section--muted {
  background: var(--bg-muted);
}

.section__lead {
  margin-top: 0.85rem;
  max-width: 48ch;
  color: var(--muted);
  font-size: 0.98rem;
}

section[id],
#kontakt-formularz {
  scroll-margin-top: calc(var(--header-h) + 0.75rem);
}

/* Buttons ----------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.4rem 0.45rem 0.4rem 1.15rem;
  border-radius: var(--radius-pill);
  border: 1.5px solid transparent;
  background: transparent;
  color: var(--white);
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s ease, box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.btn__icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: none;
}

.btn__icon svg,
.burger svg,
.slider__arrow svg,
.lightbox__close svg,
.lightbox__nav svg,
.to-top svg,
.service-card__icon svg,
.service-card__chevron svg,
.feature__icon svg,
.contact__ico svg,
.social svg,
.logo__mark {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

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

.btn--primary .btn__icon {
  background: var(--white);
  color: var(--orange);
}

.btn--primary:hover {
  background: var(--orange-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(234, 113, 2, 0.32);
}

.btn--ghost {
  border-color: rgba(255, 255, 255, 0.78);
  color: var(--white);
}

.btn--ghost .btn__icon {
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  color: var(--white);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.btn--outline {
  background: var(--white);
  color: var(--navy);
  border-color: var(--line-strong);
}

.btn--outline .btn__icon {
  background: var(--navy);
  color: var(--white);
}

.btn--outline:hover {
  border-color: var(--navy);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn--primary:focus-visible {
  outline-color: var(--white);
  box-shadow: 0 0 0 3px var(--navy);
}

/* Header ------------------------------------------------------------------ */

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: var(--navy);
  color: var(--white);
}

.header.is-stuck {
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
}

.header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--white);
  min-width: 0;
}

.logo__mark {
  width: 36px;
  height: 36px;
  flex: none;
}

.logo__text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.logo__name {
  font-weight: 700;
  letter-spacing: 0.06em;
  font-size: 1.05rem;
}

.logo__tag {
  margin-top: 0.18rem;
  font-size: 0.68rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.62);
}

.burger {
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: var(--white);
  display: grid;
  gap: 5px;
  align-content: center;
  justify-items: center;
  padding: 0;
  cursor: pointer;
  position: relative;
  z-index: 2;
}

.burger span {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transform-origin: center;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.burger.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.burger.is-open span:nth-child(2) {
  opacity: 0;
}

.burger.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav {
  position: fixed;
  inset: 0;
  z-index: 1;
  background: rgba(8, 28, 44, 0.98);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2rem;
  padding: 6rem 1.75rem 3rem;
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 0.35s var(--ease), visibility 0.35s;
}

.nav.is-open {
  transform: translateX(0);
  visibility: visible;
}

.nav__list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.nav-link {
  display: inline-flex;
  padding: 0.55rem 0;
  font-size: 1.55rem;
  font-weight: 600;
  color: var(--white);
}

.nav-link.is-active {
  color: var(--orange);
}

.nav__cta {
  align-self: flex-start;
}

body.nav-open {
  overflow: hidden;
}

/* Hero -------------------------------------------------------------------- */

.hero {
  position: relative;
  isolation: isolate;
  min-height: 640px;
  display: flex;
  align-items: center;
  color: var(--white);
  padding-block: 3.25rem 2.5rem;
  padding-inline: 0;
  overflow: hidden;
}

.hero__media,
.hero__overlay {
  position: absolute;
  inset: 0;
}

.hero__media {
  z-index: -2;
}

.hero__media img,
.cta__bg,
.reviews__bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__media img {
  object-position: center 56%;
}

.hero__overlay {
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(8, 28, 44, 0.78) 0%, rgba(8, 28, 44, 0.62) 48%, rgba(8, 28, 44, 0.78) 100%);
}

.hero__layout {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.hero__title {
  max-width: 14em;
  font-size: clamp(2.05rem, 1.15rem + 3.4vw, 3.65rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  font-weight: 700;
}

.hero__lead {
  margin-top: 1.05rem;
  max-width: 46ch;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.02rem;
}

.hero__actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  margin-top: 1.6rem;
}

.hero__badge {
  align-self: flex-end;
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding: 0.85rem 1.1rem 0.8rem;
  min-width: 148px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.hero__badge-num {
  font-size: 1.85rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}

.hero__badge-label {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.82);
}

/* Services ---------------------------------------------------------------- */

.services__layout {
  display: grid;
  gap: 1.75rem;
}

.services__grid {
  display: grid;
  gap: 0.8rem;
  margin-top: 1.5rem;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1rem 1.05rem;
}

.service-card__head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.service-card__head h3 {
  flex: 1;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
}

.service-card__icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex: none;
  color: var(--orange);
  background: rgba(234, 113, 2, 0.1);
}

.service-card__chevron {
  display: none;
  color: var(--muted);
  transition: transform 0.3s ease;
}

.service-card__chevron svg {
  width: 20px;
  height: 20px;
}

.service-card.is-open .service-card__chevron {
  transform: rotate(180deg);
}

.service-card__panel {
  display: grid;
  grid-template-rows: 1fr;
}

.js .service-card__panel {
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s var(--ease);
}

.js .service-card.is-open .service-card__panel {
  grid-template-rows: 1fr;
}

.service-card__panel-inner {
  overflow: hidden;
}

.service-card__panel p {
  padding-top: 0.7rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.services__visual {
  margin: 0;
  border-radius: 20px;
  overflow: hidden;
  min-height: 220px;
  border: 1px solid var(--line);
}

.services__visual img,
.about__photo img,
.contact__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 220px;
}

/* About ------------------------------------------------------------------- */

.about__grid {
  display: grid;
  gap: 1.4rem;
}

.about__photo,
.contact__photo {
  margin: 0;
  border-radius: 20px;
  overflow: hidden;
  min-height: 240px;
  border: 1px solid var(--line);
}

.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
}

.feature__icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: var(--orange);
  background: rgba(234, 113, 2, 0.1);
  margin-bottom: 0.45rem;
}

.feature h3 {
  font-size: 0.78rem;
  line-height: 1.3;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.feature p {
  font-size: 0.72rem;
  line-height: 1.4;
  color: var(--muted);
}

/* Gallery ----------------------------------------------------------------- */

.section-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.15rem;
  margin-bottom: 1.5rem;
}

.gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.gallery__btn {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: #d5dee6;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 14px;
  cursor: zoom-in;
}

.gallery__btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery__item--extra.is-in {
  animation: fadeUp 0.45s var(--ease) both;
}

/* Reviews ----------------------------------------------------------------- */

.reviews {
  position: relative;
  isolation: isolate;
  background: var(--navy);
  color: var(--white);
  padding: 4.25rem 0 4.5rem;
  overflow: hidden;
}

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

.reviews__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  opacity: 0.28;
}

.reviews__shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(8, 28, 44, 0.72), rgba(8, 28, 44, 0.88));
}

.reviews__head {
  margin-bottom: 1.5rem;
}

.slider {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas:
    "prev view next"
    "dots dots dots";
  align-items: center;
  gap: 0.55rem 0.45rem;
  min-width: 0;
}

.slider__viewport {
  grid-area: view;
  overflow: hidden;
  padding: 6px 2px 16px;
  min-width: 0;
}

.slider__viewport:focus-visible {
  outline-offset: 4px;
}

.slider__track {
  display: flex;
  gap: 16px;
  width: max-content;
  will-change: transform;
}

.slider__arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.slider__arrow[data-prev] {
  grid-area: prev;
}

.slider__arrow[data-next] {
  grid-area: next;
}

.slider__arrow:hover {
  background: var(--orange);
  border-color: var(--orange);
  transform: translateY(-2px);
}

.slider__dots {
  grid-area: dots;
  display: flex;
  justify-content: center;
  gap: 0.45rem;
  margin-top: 0.35rem;
}

.slider__dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
}

.slider__dot.is-active {
  width: 22px;
  background: var(--orange);
}

.review {
  background: var(--white);
  color: var(--text);
  border-radius: var(--radius);
  padding: 1.25rem 1.2rem 1.15rem;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16);
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.stars {
  display: flex;
  gap: 0.15rem;
  color: var(--orange);
  margin-bottom: 0.75rem;
}

.stars svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  stroke: none;
}

.review blockquote p {
  font-size: 0.92rem;
  line-height: 1.6;
  color: #2a3b4a;
}

.review__author {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-top: 1.1rem;
}

.avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--navy);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 600;
  flex: none;
}

.review__name,
.review__role {
  display: block;
}

.review__name {
  font-weight: 600;
  font-size: 0.92rem;
}

.review__role {
  font-size: 0.78rem;
  color: var(--muted);
}

/* CTA --------------------------------------------------------------------- */

.cta {
  position: relative;
  isolation: isolate;
  min-height: 340px;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--white);
  overflow: hidden;
  padding: 4rem 0;
}

.cta__bg,
.cta__overlay {
  position: absolute;
  inset: 0;
}

.cta__bg {
  z-index: -2;
}

.cta__overlay {
  z-index: -1;
  background: linear-gradient(180deg, rgba(8, 28, 44, 0.62), rgba(8, 28, 44, 0.72));
}

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

.cta p {
  margin: 0.85rem auto 0;
  max-width: 48ch;
  color: rgba(255, 255, 255, 0.88);
}

.cta__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.4rem;
}

/* Contact ----------------------------------------------------------------- */

.contact__grid {
  display: grid;
  gap: 1.5rem;
}

.contact__list {
  margin-top: 1.4rem;
  display: grid;
  gap: 1rem;
}

.contact__list li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.contact__ico {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex: none;
  color: var(--orange);
  background: rgba(234, 113, 2, 0.1);
}

.contact__list a,
.contact__list strong {
  display: block;
  font-weight: 600;
  color: var(--navy);
}

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

.contact__list small {
  display: block;
  color: var(--muted);
  font-size: 0.85rem;
}

.form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 1.25rem 1.15rem 1.35rem;
  display: grid;
  gap: 0.85rem;
}

.field label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.84rem;
  font-weight: 600;
}

.field label span {
  color: var(--orange);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  background: #fbfcfd;
  border-radius: 10px;
  padding: 0.75rem 0.85rem;
  font-size: 0.95rem;
  color: var(--text);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

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

.field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--navy) 50%),
    linear-gradient(135deg, var(--navy) 50%, transparent 50%);
  background-position: calc(100% - 18px) 55%, calc(100% - 12px) 55%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(234, 113, 2, 0.16);
}

.field.is-invalid input,
.field.is-invalid select,
.field.is-invalid textarea {
  border-color: var(--danger);
}

.field-error {
  display: block;
  margin-top: 0.3rem;
  color: var(--danger);
  font-size: 0.78rem;
}

.field-error[hidden] {
  display: none;
}

.form__success {
  margin: 0;
  padding: 0.85rem 0.95rem;
  border-radius: 12px;
  background: #e8f6ee;
  color: #0f6b3c;
  font-weight: 600;
  font-size: 0.92rem;
}

.form__success[hidden] {
  display: none;
}

.form__submit {
  justify-content: space-between;
  width: 100%;
}

/* Footer ------------------------------------------------------------------ */

.footer {
  background: var(--navy);
  color: var(--white);
  padding: 2.5rem 0 1.4rem;
}

.footer__top {
  display: grid;
  gap: 1.4rem;
  justify-items: start;
}

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1.1rem;
}

.footer__nav a {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.92rem;
  font-weight: 500;
}

.footer__nav a:hover,
.social a:hover {
  color: var(--orange);
}

.social {
  display: flex;
  gap: 0.55rem;
}

.social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.28);
  display: grid;
  place-items: center;
  color: var(--white);
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.social a:hover {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--white);
}

.social svg {
  width: 16px;
  height: 16px;
}

.footer__bottom {
  margin-top: 1.6rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.82rem;
}

.footer__credit {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.42);
}

/* Lightbox ---------------------------------------------------------------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(6, 16, 28, 0.88);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas: "prev figure next";
  align-items: center;
  gap: 0.5rem;
  padding: 4.2rem 0.75rem 1.5rem;
}

.lightbox[hidden] {
  display: none;
}

.lightbox__figure {
  grid-area: figure;
  margin: 0;
  min-width: 0;
  display: grid;
  justify-items: center;
  gap: 0.7rem;
}

.lightbox__figure img {
  max-width: min(1100px, 100%);
  max-height: calc(100vh - 9rem);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  background: #0b1c2b;
}

.lightbox figcaption {
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.9rem;
  text-align: center;
}

.lightbox__close,
.lightbox__nav {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  display: grid;
  place-items: center;
  cursor: pointer;
}

.lightbox__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
}

.lightbox__nav--prev {
  grid-area: prev;
}

.lightbox__nav--next {
  grid-area: next;
}

.lightbox__close:hover,
.lightbox__nav:hover {
  background: var(--orange);
  border-color: var(--orange);
}

body.lightbox-open {
  overflow: hidden;
}

/* Back to top ------------------------------------------------------------- */

.to-top {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 90;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: var(--orange);
  color: var(--white);
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(234, 113, 2, 0.35);
  transition: transform 0.2s ease, background 0.2s ease;
}

.to-top[hidden] {
  display: none;
}

.to-top:hover {
  background: var(--orange-dark);
  transform: translateY(-2px);
}

/* Motion ------------------------------------------------------------------ */

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.js .reveal {
  opacity: 0;
  transform: translateY(16px);
}

@media (prefers-reduced-motion: no-preference) {
  .js .reveal {
    transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
  }

  .gallery__btn img {
    transition: transform 0.5s var(--ease);
  }

  @media (hover: hover) {
    .gallery__btn:hover img {
      transform: scale(1.06);
    }
  }
}

.js .reveal.is-in {
  opacity: 1;
  transform: none;
}

/* Breakpoints ------------------------------------------------------------- */

@media (max-width: 1023px) {
  .js .service-card__chevron {
    display: block;
  }

  .js .service-card__head {
    cursor: pointer;
  }
}

@media (min-width: 640px) {
  .hero__actions {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .feature h3 {
    font-size: 0.95rem;
  }

  .feature p {
    font-size: 0.84rem;
  }

  .features {
    gap: 1.15rem;
  }

  .gallery {
    gap: 1rem;
  }

  .form {
    padding: 1.5rem 1.4rem 1.6rem;
  }
}

@media (min-width: 1024px) {
  :root {
    --header-h: 80px;
  }

  .burger {
    display: none;
  }

  .nav {
    position: static;
    inset: auto;
    transform: none;
    visibility: visible;
    background: transparent;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 1.35rem;
    padding: 0;
    flex: 1;
  }

  .nav__list {
    flex-direction: row;
    align-items: center;
    gap: 1.15rem;
  }

  .nav-link {
    font-size: 0.92rem;
    font-weight: 500;
    padding: 0.35rem 0;
  }

  .nav-link.is-active {
    color: var(--orange);
  }

  .hero {
    min-height: 720px;
    padding-block: 4.5rem 4rem;
    padding-inline: 0;
  }

  .hero__overlay {
    background: linear-gradient(
      90deg,
      rgba(8, 28, 44, 0.9) 0%,
      rgba(8, 28, 44, 0.62) 42%,
      rgba(8, 28, 44, 0.28) 100%
    );
  }

  .hero__badge {
    position: absolute;
    right: var(--container-inline, 32px);
    bottom: 0;
    margin-top: 0;
  }

  .section {
    padding: 5.75rem 0;
  }

  .services__layout {
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.78fr);
    gap: 1.75rem;
    align-items: stretch;
  }

  .services__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
  }

  .js .service-card__panel {
    grid-template-rows: 1fr;
    transition: none;
  }

  .service-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }

  .service-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
  }

  .services__visual,
  .services__visual img {
    height: 100%;
    min-height: 100%;
  }

  .about__grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
    grid-template-areas:
      "intro photo"
      "features photo"
      "cta photo";
    column-gap: 3rem;
    row-gap: 1.35rem;
    align-items: center;
  }

  .about__intro {
    grid-area: intro;
  }

  .about__photo {
    grid-area: photo;
    height: 100%;
    min-height: 420px;
  }

  .about__photo img {
    min-height: 420px;
  }

  .features {
    grid-area: features;
  }

  .about__cta {
    grid-area: cta;
  }

  .section-head {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
    gap: 2rem;
  }

  .section-head .section__lead {
    margin-bottom: 0;
  }

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

  .reviews {
    padding: 5.5rem 0;
  }

  .reviews__shade {
    background: linear-gradient(90deg, rgba(8, 28, 44, 0.55) 0%, rgba(8, 28, 44, 0.88) 48%, var(--navy) 100%);
  }

  .reviews__bg {
    width: 48%;
    opacity: 0.45;
  }

  .slider {
    gap: 0.75rem 0.85rem;
  }

  .contact__grid {
    grid-template-columns: minmax(220px, 0.85fr) minmax(280px, 1.15fr) minmax(220px, 0.85fr);
    gap: 1.75rem;
    align-items: stretch;
  }

  .contact__photo,
  .contact__photo img {
    height: 100%;
    min-height: 100%;
  }

  .footer__top {
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 2rem;
  }

  .footer__nav {
    justify-content: center;
  }

  .footer__bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

@media (min-width: 1024px) and (max-width: 1180px) {
  .nav {
    gap: 0.75rem;
  }

  .nav__list {
    gap: 0.7rem;
  }

  .nav-link {
    font-size: 0.82rem;
  }

  .nav__cta {
    font-size: 0.82rem;
    padding-left: 0.85rem;
  }

  .nav__cta .btn__icon {
    width: 30px;
    height: 30px;
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }

  .nav {
    transform: none;
  }

  .nav:not(.is-open) {
    display: none;
  }
}

@media (min-width: 1024px) and (prefers-reduced-motion: reduce) {
  .nav,
  .nav:not(.is-open) {
    display: flex;
  }
}
