/* ---------- Reset & base ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

/* Ciemny motyw: --ink/--paper zachowują swoje role (tekst/tło),
   ale wartości są odwrócone względem jasnej wersji. */
:root {
  color-scheme: dark;
  --ink: #f3f0e8;
  --ink-soft: #9a9fae;
  --paper: #101216;
  --paper-soft: #1a1d24;
  --accent: #7c89ff;
  --accent-soft: #1f2550;
  --mint: #8fe8c9;
  --line: #2a2e38;
  --radius: 18px;
  --maxw: 1080px;
}

html { scroll-behavior: smooth; scroll-padding-top: 6rem; overflow-x: hidden; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.9rem;
}

/* ---------- Layout helpers ---------- */
section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

/* ---------- Tło w kratkę ---------- */
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.14) 1px, transparent 1px);
  background-size: 24px 24px;
  animation: grid-drift 4s linear infinite;
}
@keyframes grid-drift {
  from { background-position: 0 0, 0 0; }
  to   { background-position: 0 24px, 0 0; }
}
@media (prefers-reduced-motion: reduce) {
  .bg-grid { animation: none; }
}

header, main, footer { position: relative; z-index: 2; }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: #161a3a; /* ciemniejszy granat, ten sam odcień co --accent-soft */
  border-bottom: 1px solid rgba(255,255,255,0.7);
}
.nav__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0.6rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav__logo {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 1.15rem;
}
.nav__right {
  display: flex;
  align-items: center;
  gap: 2.25rem;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav__links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255,255,255,0.65);
  transition: color 0.2s ease;
  text-underline-offset: 6px;
  text-decoration-thickness: 1.5px;
}
.nav__links a:hover,
.nav__links a.is-active {
  color: #ffffff;
  text-decoration: underline;
}
.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #ffffff;
  color: #14161a;
}
.nav__cta-icon {
  width: 15px;
  height: 15px;
  position: relative;
  top: 2.7px; /* wyrównuje środek ikony ze środkiem napisu */
  animation: phone-ring 3s ease-in-out infinite;
  transform-origin: 50% 30%;
}
@keyframes phone-ring {
  0%   { transform: rotate(0); }
  2%   { transform: rotate(-14deg); }
  4%   { transform: rotate(12deg); }
  6%   { transform: rotate(-10deg); }
  8%   { transform: rotate(8deg); }
  10%  { transform: rotate(-6deg); }
  12%  { transform: rotate(4deg); }
  14%, 100% { transform: rotate(0); }
}
@media (prefers-reduced-motion: reduce) {
  .nav__cta-icon { animation: none; }
}
.nav__cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.35);
}

/* ---------- Nav: menu mobilne (hamburger) ---------- */
.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
}
.nav__toggle-bar {
  width: 22px;
  height: 2px;
  background: #ffffff;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav__mobile {
  display: none;
  flex-direction: column;
  gap: 0.15rem;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0.25rem 1.5rem 1.5rem;
}
.nav__mobile a {
  padding: 0.9rem 0.2rem;
  font-size: 1.02rem;
  font-weight: 600;
  color: rgba(255,255,255,0.8);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.nav__mobile a.is-active { color: #ffffff; }
.nav__mobile a.nav__mobile-cta { margin-top: 1rem; text-align: center; border-bottom: none; color: var(--paper); }
.nav.is-open .nav__mobile { display: flex; }

@media (max-width: 860px) {
  .nav__links { display: none; }
  .nav .nav__cta { display: none; }
  .nav__toggle { display: flex; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  border: 1px solid transparent;
}
.btn--primary {
  background: var(--ink);
  color: var(--paper);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(124,137,255,0.25); }
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn--ghost:hover { border-color: var(--ink); }
.btn--small { padding: 0.6rem 1.2rem; font-size: 0.85rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: center;
  min-height: 100vh;
  min-height: 100dvh;
  padding-top: 4rem;
  padding-bottom: 4rem;
}
.hero h1 {
  font-size: clamp(2.2rem, 4.2vw, 3.4rem);
  margin-bottom: 1.3rem;
}
.hero__lead {
  font-size: 1.1rem;
  color: var(--ink-soft);
  max-width: 46ch;
  margin-bottom: 2rem;
}
.hero__cta { display: flex; gap: 0.9rem; flex-wrap: wrap; }

.hero__photo { display: flex; justify-content: center; }
.hero__photo-stack {
  position: relative;
  width: 100%;
  max-width: 320px;
}
.hero__photo-img {
  position: relative;
  z-index: 2;
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  background: var(--accent-soft);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  /* drugi cień: miękka poświata rzucana na "lewitujące" karty za zdjęciem */
  box-shadow: 0 24px 48px rgba(0,0,0,0.35), 0 0 34px 12px rgba(0,0,0,0.45);
}

/* Karty "lewitujące" za zdjęciem: arkusz matury i karta wzorów */
.hero__float {
  position: absolute;
  z-index: 1;
  width: 60%;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--line);
  box-shadow: 0 18px 36px rgba(0,0,0,0.5);
  animation: float-drift 6s ease-in-out infinite;
}
.hero__float--right {
  --tilt: 8deg;
  width: 72%;
  right: -34%;
  top: -6%;
  aspect-ratio: 360/509;
}
.hero__float--left {
  --tilt: -8deg;
  left: -21%;
  bottom: -2%;
  aspect-ratio: 360/510;
  animation-duration: 7.5s;
  animation-delay: -2.8s;
}
@keyframes float-drift {
  0%, 100% { transform: rotate(var(--tilt)) translateY(0); }
  50% { transform: rotate(var(--tilt)) translateY(-9px); }
}
@media (prefers-reduced-motion: reduce) {
  .hero__float { animation: none; }
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 2rem;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
  color: #ffffff;
  transition: opacity 0.2s ease;
}
.scroll-cue:hover { opacity: 0.75; }
.scroll-cue__text {
  font-size: 1.56rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.scroll-cue__arrow {
  width: 32px;
  height: 32px;
  animation: scroll-cue-bounce 2.2s ease-in-out infinite;
}
@keyframes scroll-cue-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(7px); }
}
@media (prefers-reduced-motion: reduce) {
  .scroll-cue__arrow { animation: none; }
}
@media (max-width: 860px) {
  .scroll-cue { display: none; }
}

/* ---------- Stats ---------- */
/* Pełnej szerokości, idealnie biały pasek na ciemnym tle */
.stats {
  max-width: none;
  background: #ffffff;
}
.stats__inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: var(--maxw);
  margin: 0 auto;
}
.stat { text-align: center; }
.stat__num {
  display: block;
  font-family: 'Fraunces', serif;
  font-size: clamp(2.2rem, 4vw, 3rem);
  color: #3b4bf0; /* ciemniejszy akcent — czytelny na bieli */
  font-weight: 600;
}
.stat__label {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.92rem;
  color: #4b4f58;
}

/* ---------- Story ---------- */
.story__card {
  background: #ffffff;
  border: 1px solid #e7e5e0;
  border-radius: var(--radius);
  padding: 3rem;
}
.story__card .eyebrow { color: #3b4bf0; }
.story h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 1rem; color: #14161a; }
.story p { color: #4b4f58; max-width: 65ch; }

/* ---------- CTA break (przycisk w co drugiej przerwie między sekcjami) ---------- */
.cta-break { text-align: center; }

/* ---------- Offer ---------- */
.offer h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); max-width: 24ch; margin-bottom: 2.5rem; }
#oferta { scroll-margin-top: -2.5rem; }
.offer__strike {
  text-decoration: line-through;
  text-decoration-color: #e5484d;
  text-decoration-thickness: 2px;
}
.offer__highlight {
  display: inline-block;
  font-size: 1.25em;
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}
.card {
  background: #ffffff;
  border: 1px solid #e7e5e0;
  border-radius: var(--radius);
  padding: 2.1rem 1.9rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  flex: 0 1 calc(33.333% - 1rem);
  min-width: 280px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(0,0,0,0.4); border-color: var(--accent); }
.card h3 { font-size: 1.15rem; margin: 0; color: #14161a; }
.card p { color: #4b4f58; font-size: 0.95rem; margin: 0; line-height: 1.6; }

.badge {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.25s ease;
}
.card:hover .badge { transform: scale(1.08) rotate(-4deg); }

.card__tags { display: flex; gap: 0.5rem; margin-top: auto; padding-top: 0.4rem; }
.tag {
  font-size: 0.72rem;
  font-weight: 600;
  color: #14161a;
  background: #f6f5f2;
  border: 1px solid #e7e5e0;
  border-radius: 999px;
  padding: 0.3rem 0.7rem;
}

.card__stat { display: flex; align-items: center; gap: 0.5rem; margin-top: auto; padding-top: 0.4rem; }
.card__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #0e9f6e;
  animation: badge-pulse 2.4s ease-in-out infinite;
}
.card__stat span:last-child { font-size: 0.8rem; color: #0e9f6e; font-weight: 600; }
@keyframes badge-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(124,137,255,0.35); }
  50% { box-shadow: 0 0 0 8px rgba(124,137,255,0); }
}

.card__progress { margin-top: auto; padding-top: 0.4rem; }
.card__progress-track {
  height: 5px;
  background: #e7e5e0;
  border-radius: 999px;
  overflow: hidden;
  width: 100%;
}
.card__progress-fill {
  height: 100%;
  width: 78%;
  background: linear-gradient(90deg, #4c56d6, #0e9f6e);
  border-radius: 999px;
  animation: progress-adapt 7s ease-in-out infinite;
}
@keyframes progress-adapt {
  0%, 100% { width: 45%; }
  30% { width: 88%; }
  60% { width: 62%; }
  80% { width: 95%; }
}
.card__progress span {
  font-size: 0.72rem;
  color: #4b4f58;
  display: block;
  margin-top: 0.4rem;
}
@media (prefers-reduced-motion: reduce) {
  .card__dot { animation: none; }
  .card__progress-fill { animation: none; width: 78%; }
}

/* ---------- Steps (wzorowane na withruiz.com) ---------- */
.steps__head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}
.steps__head h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); max-width: 22ch; margin: 0 auto; }
.steps__title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.steps__title-num {
  font-size: clamp(3.4rem, 8vw, 5.5rem);
  line-height: 1;
  color: var(--accent);
  transform: rotate(-6deg);
  display: inline-block;
}
.steps__title-underline {
  text-decoration: underline;
  text-decoration-color: var(--mint);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.steps__list {
  position: relative;
  margin-top: 4.5rem;
  display: flex;
  flex-direction: column;
  gap: 5rem;
}
.steps__line {
  position: absolute;
  left: 50%;
  top: 0.75rem;
  bottom: 0;
  width: 3px;
  transform: translateX(-50%);
  background: rgba(255,255,255,0.08);
  border-radius: 2px;
}
.steps__line-fill {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0%;
  background: linear-gradient(180deg, var(--accent), var(--mint));
  border-radius: 2px;
}
.steps__row {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 60px 1fr;
  align-items: start;
  gap: 2.5rem;
}
.steps__marker {
  grid-column: 2;
  grid-row: 1;
  justify-self: center;
  width: 15px;
  height: 15px;
  margin-top: 0.3rem;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid rgba(255,255,255,0.2);
  transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.steps__row.is-active .steps__marker {
  background: var(--mint);
  border-color: var(--mint);
  box-shadow: 0 0 12px rgba(143,232,201,0.6);
}
.steps__pair {
  grid-column: 1;
  grid-row: 1;
  justify-self: end;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 380px;
}
.steps__image {
  width: 100%;
  max-width: 330px;
  aspect-ratio: 3/4;
  border-radius: 12px;
  overflow: hidden;
  background: var(--paper-soft);
  color: var(--ink-soft);
  box-shadow: 0 18px 36px rgba(0,0,0,0.45);
  transform: rotate(-4deg);
}
.steps__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.steps__image span { font-size: 0.8rem; }
.steps__eyebrow {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 0.6rem;
}
.steps__eyebrow-num { font-family: 'Fraunces', serif; }
.steps__text h3 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin-bottom: 0.85rem; }
.steps__text p { color: var(--ink-soft); font-size: 1.05rem; }
.steps__text p.steps__eyebrow { color: var(--accent); font-size: 1.15rem; }

/* Co drugi krok — cała para (zdjęcie + tekst) po przeciwnej stronie linii */
.steps__row:nth-of-type(even) .steps__pair {
  grid-column: 3;
  justify-self: start;
}
.steps__row:nth-of-type(even) .steps__image {
  transform: rotate(4deg);
}

/* ---------- Opinie / galeria ---------- */
.testimonials__head {
  max-width: 640px;
  margin: 0 auto 3.5rem;
  text-align: center;
}
.testimonials__head h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 0.6rem; }

.gallery {
  column-width: 300px;
  column-gap: 22px;
  margin-bottom: 3.5rem;
}
.gallery__card {
  position: relative;
  max-width: 100%;
  margin: 0 0 22px;
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  page-break-inside: avoid;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.gallery__card img {
  width: 100%;
  display: block;
}

.testimonials__cta { text-align: center; }

/* ---------- Pricing ---------- */
.pricing__card {
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius);
  padding: 3.5rem;
  text-align: center;
}
.pricing__card .eyebrow { color: #3b4bf0; }
.pricing__card h2 {
  font-size: clamp(2.2rem, 4vw, 3rem);
  margin-bottom: 1rem;
}
.pricing__card h2 span {
  font-family: 'Inter', sans-serif;
  font-size: 1.1rem;
  font-weight: 400;
  color: #4b4f58;
}
.pricing__note { color: #4b4f58; max-width: 42ch; margin: 0 auto 2rem; }
.pricing__card .btn--primary { background: var(--paper); color: var(--ink); }

/* ---------- Contact ---------- */
.contact h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); max-width: 24ch; margin-bottom: 2.5rem; }

/* ---------- Strony prawne (Regulamin / Prywatność / Cookies) ---------- */
.legal-page { max-width: 720px; min-height: 45vh; padding-top: 8rem; }
.legal-page h1 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); max-width: 20ch; margin-bottom: 1.2rem; }
.legal-page__note { color: var(--ink-soft); font-size: 1.05rem; max-width: 55ch; }
.legal-page__meta { color: var(--ink-soft); font-size: 0.88rem; margin-bottom: 2.75rem; }
.legal-page__back { display: inline-block; margin-top: 2.5rem; color: var(--accent); font-weight: 600; }

.legal-page__body h2 {
  font-size: 1.25rem;
  margin: 2.25rem 0 0.9rem;
}
.legal-page__body p,
.legal-page__body li {
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.7;
}
.legal-page__body p { margin-bottom: 0.9rem; }
.legal-page__body ol,
.legal-page__body ul {
  padding-left: 1.3rem;
  margin-bottom: 0.9rem;
}
.legal-page__body ul { margin-top: 0.5rem; margin-bottom: 0; }
.legal-page__body li { margin-bottom: 0.55rem; }
.legal-page__body strong { color: var(--ink); }
.legal-page__body a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.legal-page__body table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.5rem 0 1.5rem;
  font-size: 0.92rem;
}
.legal-page__body th,
.legal-page__body td {
  border: 1px solid var(--line);
  padding: 0.7rem 0.85rem;
  text-align: left;
  color: var(--ink-soft);
  vertical-align: top;
}
.legal-page__body th { color: var(--ink); font-weight: 600; }
@media (max-width: 860px) {
  .legal-page__body table { font-size: 0.85rem; }
  .legal-page__body th, .legal-page__body td { padding: 0.55rem 0.6rem; }
}
.contact__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3rem;
}
.contact__info p { margin-bottom: 0.9rem; color: var(--ink-soft); }
.contact__info a { color: var(--accent); font-weight: 600; }

.contact__form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}
.contact__form label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-soft);
}
.contact__form input,
.contact__form textarea {
  font-family: inherit;
  font-size: 1rem; /* min. 16px, żeby iOS Safari nie zoomował po dotknięciu pola */
  padding: 0.8rem 1rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper-soft);
  color: var(--ink);
}
.contact__form input:focus,
.contact__form textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.contact__form .btn { align-self: flex-start; }
.form__note { font-size: 0.88rem; color: var(--accent); min-height: 1.2em; }

/* ---------- Footer ---------- */
.footer {
  padding: 3.5rem 1.5rem 2rem;
  color: var(--ink-soft);
  font-size: 0.85rem;
  border-top: 1px solid var(--line);
}
.footer__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  margin-bottom: 1.75rem;
  border-bottom: 1px solid var(--line);
}
.footer__name {
  font-family: 'Fraunces', serif;
  font-size: 1.1rem;
  color: var(--ink);
  margin-bottom: 0.4rem;
}
.footer__tagline { font-size: 0.88rem; margin-bottom: 1rem; }
.footer__brand a {
  display: block;
  color: var(--ink-soft);
  font-size: 0.88rem;
  margin-bottom: 0.35rem;
  transition: color 0.2s ease;
}
.footer__brand a:hover { color: var(--accent); }
.footer__col-title {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 1rem;
}
.footer__col a {
  display: block;
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin-bottom: 0.65rem;
  transition: color 0.2s ease;
}
.footer__col a:hover { color: var(--ink); }
.footer__copy {
  max-width: var(--maxw);
  margin: 0 auto;
  text-align: center;
}
@media (max-width: 860px) {
  .footer__inner { grid-template-columns: 1fr; gap: 2rem; text-align: center; }
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding-top: 3rem; }
  .hero__photo { order: -1; }
  .hero__photo-stack { max-width: 220px; }
  .hero__float--right { right: -26%; }
  .stats__inner { grid-template-columns: 1fr; gap: 2rem; }
  .card { flex-basis: 100%; }
  .contact__grid { grid-template-columns: 1fr; }
  section { padding: 4rem 1.25rem; }
  .story__card, .pricing__card { padding: 2rem; }
  .steps__line { display: none; }
  .steps__row, .steps__row:nth-of-type(even) { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 1.5rem; }
  .steps__marker { display: none; }
  .steps__pair, .steps__row:nth-of-type(even) .steps__pair { grid-column: 1; justify-self: center; align-items: center; max-width: 100%; }
  .steps__image, .steps__row:nth-of-type(even) .steps__image { max-width: 330px; transform: none; }
  .gallery { column-width: 220px; column-gap: 14px; }
  .gallery__card { margin-bottom: 14px; }
}
