/* Webselia - v13 (Home, Expertise, Qui sommes-nous, Contact)
   Marginesy V5, animacje V4 i poprawki po kolejnym feedbacku Pauliny. */

:root {
  --petrol: #1f6f78;
  --petrol-deep: #185a62;
  --sand: #c9a876;
  --sand-hover: #d6bb90;
  --sand-light: #efe6d5;
  --warm-white: #f1efe8;
  --paper: #f8f7f3;
  --charcoal: #2c2c2a;
  --muted: #5c5c57;
  --line: rgba(44, 44, 42, 0.16);
  --line-strong: rgba(44, 44, 42, 0.36);
  --font: "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --pad: clamp(21.6px, 2.7vw, 43.2px);
  --gap: clamp(20px, 2.2vw, 40px);
  --section-y: clamp(80px, 8vw, 132px);
  --max: 1680px;
  --header-h: 76px;
}

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

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

body {
  margin: 0;
  color: var(--charcoal);
  background: var(--warm-white);
  font-family: var(--font);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

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

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

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

a {
  color: inherit;
}

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

h1 {
  font-size: 48px;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: 0.02em;
}

h2 {
  font-size: 36px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.02em;
}

h3 {
  font-size: 28px;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: 0.01em;
}

.lead {
  font-size: 20px;
  font-weight: 300;
  line-height: 1.6;
}

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

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  color: var(--warm-white);
  background: var(--charcoal);
  transform: translateY(-200%);
}

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

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

.section {
  padding-block: var(--section-y);
}

.split {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(20px, 2vw, 32px);
  row-gap: 40px;
}

.split-head {
  grid-column: 1 / span 5;
}

.split-body {
  grid-column: 7 / -1;
}

.section-title {
  max-width: 30ch;
  margin: 0 auto clamp(44px, 5vw, 76px);
  text-align: center;
}

.section-intro {
  display: grid;
  justify-items: center;
  gap: 18px;
  margin-bottom: clamp(40px, 5vw, 68px);
  text-align: center;
}

.section-intro .section-title {
  margin-bottom: 0;
}

/* Buttons */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 14px 26px;
  border: 1px solid transparent;
  border-radius: 2px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: normal;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.button-primary {
  color: var(--charcoal);
  background: var(--sand);
}

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

.button-secondary {
  color: var(--charcoal);
  background: transparent;
  border-color: var(--charcoal);
}

.button-secondary:hover {
  color: var(--warm-white);
  background: var(--charcoal);
}

/* Header - V3 */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(241, 239, 232, 0.96);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  min-height: var(--header-h);
}

.brand {
  display: inline-block;
  padding-block: 8px;
}

.brand img {
  width: 168px;
}

.main-nav {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: clamp(20px, 2.6vw, 44px);
}

.nav-links a {
  position: relative;
  padding-block: 8px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.nav-links a::after {
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  height: 1px;
  background: currentColor;
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after {
  transform: scaleX(1);
}

.nav-links a[aria-current="page"] {
  color: var(--petrol);
}

.nav-cta {
  min-height: 44px;
  padding: 10px 22px;
}

.menu-toggle {
  display: none;
}

/* Hero - V3 without the three-image strip */

.hero {
  padding-block: clamp(32px, 4vw, 64px) clamp(64px, 7vw, 108px);
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gap);
  align-items: stretch;
}

.hero-copy {
  grid-column: 1 / span 5;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 36px;
  min-width: 0;
  padding-block: 28px;
}

.hero-copy h1 {
  max-width: 15ch;
}

.hero-copy h1 em {
  color: var(--petrol);
  font-style: normal;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 24px;
}

.microcopy {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

.price-link {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  width: fit-content;
  max-width: 100%;
  padding-top: 18px;
  border-top: 1px solid var(--line-strong);
  text-decoration: none;
}

.price-link-cta {
  color: var(--petrol);
  font-weight: 500;
  white-space: nowrap;
}

.price-link:hover .price-link-cta {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.hero-media {
  grid-column: 7 / -1;
  min-height: 560px;
  overflow: hidden;
  background: var(--paper);
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 100% 45%;
}

/* v23 - eye photo across the whole hero, text on the blurred left part.
   The photo is anchored to the right, so a narrower screen crops the blur, never the eye. */
@media (min-width: 1340px) {
  /* same 24 px above and below the photo; the whole frame fits the first screen */
  .hero {
    padding-block: 24px;
  }

  .hero-grid {
    position: relative;
    min-height: clamp(520px, min(40vw, 100svh - var(--header-h) - 48px), 660px);
  }

  .hero-copy {
    position: relative;
    z-index: 1;
    grid-column: 1 / span 5;
    padding: 32px 0 72px clamp(40px, 5.5vw, 104px);
  }

  .hero-copy h1 {
    max-width: 13ch;
  }

  .hero .microcopy {
    color: var(--charcoal);
  }

  .hero-media,
  .hero-grid .hero-media {
    position: absolute;
    inset: 0;
    grid-column: 1 / -1;
    min-height: 0;
  }
}

.services .section-intro .lead {
  max-width: 46ch;
  color: var(--muted);
}

/* Services - V1 reduced to a 2 x 2 grid */

.services {
  background: var(--paper);
  border-top: 1px solid var(--line);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  max-width: 1240px;
  margin-inline: auto;
}

.service-card {
  position: relative;
  display: grid;
  align-content: end;
  min-height: 310px;
  padding: clamp(28px, 3vw, 48px);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--paper);
  transition: background-color 0.18s ease;
}

.service-card-sand {
  background: #e3d5bb;
}

.service-card-petrol {
  color: var(--warm-white);
  background: var(--petrol);
}

.service-card-petrol .service-index,
.service-card-petrol p {
  color: rgba(241, 239, 232, 0.8);
}

.service-card:hover {
  background: #eeebe3;
}

.service-card-sand:hover {
  background: #ebdfc9;
}

/* v13, Paulina 28.10: Suivi des performances in warm white, like the tile on Expertise */
.service-card-white {
  background: var(--warm-white);
}

.service-card-white:hover {
  background: #e8e5dc;
}

.service-card-petrol:hover {
  background: #287e87;
}

.service-index {
  position: absolute;
  top: 26px;
  left: clamp(28px, 3vw, 48px);
  color: var(--petrol-deep);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.service-card h3 {
  position: relative;
  z-index: 1;
  max-width: 21ch;
  margin-bottom: 8px;
}

.service-card p {
  position: relative;
  z-index: 1;
  max-width: 38ch;
  color: var(--muted);
}

.service-card-petrol p {
  color: rgba(241, 239, 232, 0.82);
}

.service-motif {
  position: absolute;
  top: 34px;
  right: clamp(28px, 3vw, 48px);
  width: 120px;
  height: 120px;
  opacity: 0.28;
}

.motif-frame {
  border: 1px solid var(--petrol);
  border-radius: 50%;
}

.motif-frame::after {
  position: absolute;
  top: 28px;
  left: -30px;
  width: 74px;
  height: 74px;
  border: 1px solid var(--petrol);
  content: "";
}

.motif-layout {
  border: 1px solid var(--petrol);
  background:
    linear-gradient(var(--petrol), var(--petrol)) 0 34% / 100% 1px no-repeat,
    linear-gradient(var(--petrol), var(--petrol)) 42% 34% / 1px 66% no-repeat,
    linear-gradient(var(--petrol), var(--petrol)) 42% 68% / 58% 1px no-repeat;
}

.motif-radar {
  border: 1px solid currentColor;
  border-radius: 50%;
  color: var(--warm-white);
  box-shadow: inset 0 0 0 24px transparent, 0 0 0 25px currentColor, 0 0 0 50px transparent, 0 0 0 51px currentColor;
  transform: translate(8px, 8px) scale(0.58);
}

.motif-bars {
  background:
    linear-gradient(to top, var(--petrol) 0 100%) 0 100% / 18% 35% no-repeat,
    linear-gradient(to top, var(--petrol) 0 100%) 27% 100% / 18% 55% no-repeat,
    linear-gradient(to top, var(--petrol) 0 100%) 54% 100% / 18% 75% no-repeat,
    linear-gradient(to top, var(--petrol) 0 100%) 81% 100% / 18% 100% no-repeat;
}

/* Goals - dark emphasis requested by Paulina */

.goals {
  color: var(--warm-white);
  background: var(--petrol);
  border-block: 1px solid rgba(241, 239, 232, 0.22);
}

.goals-inner {
  display: grid;
  justify-items: center;
}

.goals .section-intro {
  max-width: 820px;
}

.goals .section-title.needs-choice {
  text-decoration: underline;
  text-decoration-color: var(--sand);
  text-underline-offset: 8px;
}

.goals .lead {
  color: rgba(241, 239, 232, 0.88);
}

.goal-picker {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  max-width: 1240px;
}

.goal {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 10px 20px;
  border: 1px solid rgba(241, 239, 232, 0.74);
  border-radius: 999px;
  color: var(--charcoal);
  background: var(--warm-white);
  font-size: 16px;
  line-height: 1.3;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.goal::before {
  display: inline-grid;
  place-items: center;
  width: 18px;
  content: "+";
  color: var(--petrol);
  font-size: 20px;
  font-weight: 300;
  line-height: 1;
}

.goal:hover {
  border-color: var(--warm-white);
  background: #fffef9;
}

.goal[aria-pressed="true"] {
  color: var(--charcoal);
  background: var(--sand);
  border-color: var(--sand);
}

.goal[aria-pressed="true"]::before {
  content: "✓";
  color: var(--charcoal);
  font-size: 14px;
  font-weight: 500;
}

.goals-action {
  margin-top: 40px;
}

.goals :focus-visible {
  outline-color: var(--warm-white);
}

/* Method - V1 */

.method {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  row-gap: 40px;
}

.method-content {
  grid-column: 1 / span 6;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.method-content h2 {
  max-width: none;
  margin-bottom: clamp(40px, 4vw, 56px);
}

.method-content .title-break {
  display: block;
}

.method-steps {
  width: 100%;
  margin: 0 0 clamp(40px, 4vw, 56px);
  padding: 0;
  list-style: none;
}

.method-steps li {
  position: relative;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  align-items: baseline;
  padding: 0 0 40px 40px;
}

.method-steps li:last-child {
  padding-bottom: 0;
}

.method-steps li::before {
  position: absolute;
  top: 9px;
  left: 0;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--sand);
  content: "";
}

.method-steps li:not(:last-child)::after {
  position: absolute;
  top: 26px;
  bottom: 6px;
  left: 5px;
  width: 1px;
  background: var(--line-strong);
  content: "";
}

.step-index {
  color: var(--petrol);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.4;
}

.method-steps p {
  max-width: 36ch;
  margin: 0;
  font-size: 20px;
  font-weight: 300;
  line-height: 1.5;
}

.method-visual {
  position: relative;
  grid-column: 8 / -1;
  min-height: 480px;
  overflow: hidden;
}

.method-visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* v30: zdjecie z tabletem (poziome) w pionowej ramce - tablet w calosci */
  object-position: 62% center;
}

/* Testimonials - editorial pair, without decorative quote marks */

.testimonial {
  background: var(--warm-white);
  border-block: 1px solid var(--line);
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(48px, 6vw, 96px);
}

.quote {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.quote blockquote p {
  max-width: 42ch;
  font-size: clamp(21px, 1.7vw, 27px);
  font-weight: 300;
  line-height: 1.5;
}

.quote figcaption {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 8px;
  max-width: 42ch;
  margin-top: auto;
  padding-top: 20px;
}

.quote-author {
  font-weight: 500;
}

.quote-author::after {
  content: ",";
}

.quote-role {
  color: var(--muted);
}

.quote-role a {
  color: var(--petrol-deep);
  text-underline-offset: 3px;
}

.quote-role a:hover {
  text-decoration-thickness: 2px;
}

/* Why - V1 */

.why {
  background: var(--paper);
}

.why .section {
  padding-block: clamp(80px, 9vw, 136px);
}

.why-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 40px;
}

.why-head h2 {
  max-width: 14ch;
}

.why-visual {
  width: 100%;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.why-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 55% center;
}

.why-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(40px, 4vw, 56px);
}

.why-cta {
  align-self: flex-end;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 56px clamp(20px, 2vw, 32px);
  width: 100%;
}

.why-grid article {
  padding-top: 24px;
  border-top: 1px solid var(--line-strong);
}

.why-grid h3 {
  margin-bottom: 14px;
  font-size: 28px;
  line-height: 1.25;
}

.why-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}

/* Footer - V3 */

.site-footer {
  padding-block: 64px 72px;
  color: var(--warm-white);
  background: var(--charcoal);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 40px var(--gap);
}

.footer-brand {
  grid-column: 1 / span 5;
  display: grid;
  gap: 18px;
  align-content: start;
}

.footer-brand img {
  width: 168px;
}

.footer-brand p {
  color: rgba(241, 239, 232, 0.78);
}

.footer-col {
  grid-column: span 3;
  display: grid;
  gap: 8px;
  align-content: start;
}

.footer-contact {
  grid-column: 7 / span 3;
}

.footer-heading {
  margin-bottom: 6px;
  color: var(--sand);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-col a,
.footer-col p {
  color: rgba(241, 239, 232, 0.86);
  font-size: 15px;
  text-decoration: none;
}

.footer-col a:hover {
  color: var(--warm-white);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.site-footer :focus-visible {
  outline-color: var(--sand);
}

/* Contact - page and dialog share the same card (makieta Pauliny) */

.contact-page {
  background: var(--warm-white);
}

.contact-hero {
  padding-block: clamp(56px, 6vw, 96px);
}

.contact-heading {
  display: grid;
  justify-items: center;
  gap: 12px;
  margin-bottom: clamp(28px, 3.5vw, 48px);
  text-align: center;
}

.contact-kicker {
  color: var(--petrol-deep);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.contact-heading :is(h1, h2) {
  margin: 0;
  color: var(--charcoal);
  font-size: 48px;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: 0.02em;
}

.contact-heading em {
  color: var(--petrol);
  font-style: normal;
}

.contact-card {
  display: grid;
  grid-template-columns: minmax(260px, 4fr) minmax(0, 7fr);
  column-gap: clamp(90px, 13.5vw, 216px);
  max-width: 1120px;
  margin-inline: auto;
  padding: clamp(28px, 3.5vw, 48px) clamp(28px, 3.5vw, 48px) clamp(28px, 3.5vw, 48px) clamp(24px, 2.5vw, 32px);
  border-radius: 4px;
  background: var(--paper);
}

.contact-profile {
  display: grid;
  align-content: start;
  gap: 24px;
}

/* Full 4:5 frame of the source photo, so both forearms and hands stay visible */
.contact-portrait {
  width: 100%;
  max-width: 320px;
  aspect-ratio: 1264 / 1600;
  overflow: hidden;
  border-radius: 2px;
  background: var(--warm-white);
}

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

.contact-profile-copy {
  display: grid;
  gap: 10px;
}

.contact-profile h2,
.contact-profile h3 {
  margin: 0;
  color: var(--charcoal);
  font-size: 22px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0.01em;
}

.contact-profile p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.contact-direct {
  display: grid;
  gap: 10px;
  margin-top: 8px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-style: normal;
}

.contact-direct a,
.contact-direct span {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  color: var(--charcoal);
  font-size: 16px;
  text-decoration: none;
}

.contact-direct a:hover {
  color: var(--petrol-deep);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.contact-direct svg {
  flex: none;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--petrol);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-form-panel {
  min-width: 0;
}

.contact-form {
  display: grid;
  gap: 20px;
}

.contact-form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.contact-field {
  display: grid;
  gap: 8px;
  color: var(--charcoal);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
}

.contact-field .required {
  color: var(--petrol);
}

.contact-field input,
.contact-field textarea {
  width: 100%;
  min-height: 50px;
  padding: 10px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  color: var(--charcoal);
  background: #fff;
  font: inherit;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.contact-field input::placeholder,
.contact-field textarea::placeholder {
  color: #85857f;
  opacity: 1;
}

.contact-field input:hover,
.contact-field textarea:hover {
  border-color: rgba(44, 44, 42, 0.55);
}

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

.contact-field input:focus,
.contact-field textarea:focus {
  border-color: var(--petrol);
  outline: none;
  box-shadow: 0 0 0 3px rgba(31, 111, 120, 0.16);
}

.contact-consent-group {
  display: grid;
  gap: 6px;
}

.contact-consent {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  color: var(--charcoal);
  font-size: 15px;
  line-height: 1.6;
  cursor: pointer;
}

.contact-consent input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--petrol);
}

.contact-consent a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-consent a:hover {
  color: var(--petrol-deep);
}

.privacy-details {
  margin-left: 32px;
}

.privacy-details summary {
  width: fit-content;
  cursor: pointer;
  color: var(--petrol-deep);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.privacy-details p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.privacy-details a {
  color: var(--petrol-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-file-drop {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 50px;
  padding: 10px 14px;
  border: 1px dashed var(--line-strong);
  border-radius: 2px;
  color: var(--petrol-deep);
  background: #fff;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.contact-file-drop:hover {
  border-color: rgba(44, 44, 42, 0.55);
}

.contact-file-drop:focus-within {
  border-color: var(--petrol);
  box-shadow: 0 0 0 3px rgba(31, 111, 120, 0.16);
}

.contact-file-drop input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.contact-file-drop svg {
  flex: none;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--petrol);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-file-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.contact-file small {
  color: var(--muted);
  font-size: 14px;
  font-weight: 400;
}

.contact-submit {
  display: grid;
  justify-items: start;
  gap: 14px;
  margin-top: 4px;
}

/* Same width as the main CTA buttons elsewhere on the site */
.contact-form .button {
  min-width: 220px;
}

.recaptcha-note {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.recaptcha-note a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Success pop-up after sending the contact form; sits on top of .dialog */

.dialog.contact-success {
  width: min(480px, calc(100vw - 32px));
  padding: 48px 40px 40px;
  border-top: 4px solid var(--petrol);
  text-align: center;
}

.contact-success-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 24px;
  border-radius: 50%;
  background: rgba(31, 111, 120, 0.1);
}

.contact-success-icon svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: var(--petrol);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dialog.contact-success h2 {
  margin-bottom: 12px;
  color: var(--charcoal);
  font-size: 28px;
  line-height: 1.25;
  letter-spacing: 0.01em;
}

.dialog.contact-success p {
  margin: 0 auto 32px;
  max-width: 32ch;
  color: var(--muted);
  font-size: 20px;
  font-weight: 300;
  line-height: 1.6;
}

.dialog.contact-success .button {
  min-width: 180px;
}

/* Local prototype dialogs */

.dialog {
  width: min(620px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  padding: 40px;
  overflow: auto;
  border: 0;
  border-radius: 2px;
  color: var(--charcoal);
  background: var(--warm-white);
  box-shadow: 0 24px 80px rgba(44, 44, 42, 0.28);
}

.dialog::backdrop {
  background: rgba(44, 44, 42, 0.55);
}

.dialog-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  font-size: 28px;
  cursor: pointer;
}

.prototype-label {
  margin-bottom: 12px;
  color: var(--petrol);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dialog h2 {
  margin-bottom: 18px;
}

.dialog > p:not(.prototype-label) {
  margin-bottom: 28px;
}

.selection-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.selection-summary li {
  padding: 6px 14px;
  border: 1px solid rgba(31, 111, 120, 0.35);
  border-radius: 999px;
  color: var(--petrol-deep);
  background: var(--paper);
  font-size: 15px;
  font-weight: 500;
}

.form {
  display: grid;
  gap: 20px;
}

.form label {
  display: grid;
  gap: 8px;
  font-weight: 500;
}

.form input[type="text"],
.form input[type="tel"],
.form input[type="email"] {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 0;
  background: var(--paper);
  font-weight: 400;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.consent {
  grid-template-columns: auto 1fr;
  align-items: start;
  font-size: 15px;
  font-weight: 400 !important;
}

.consent input {
  width: 20px;
  height: 20px;
  margin-top: 2px;
}

.form .button {
  justify-self: start;
}

.form-status {
  color: var(--petrol);
  font-weight: 500;
}

/* Calm V4 reveal rhythm, retained in V6 after Paulina's approval. */

.motion-ready .motion-reveal {
  opacity: 0;
  transform: translateY(6px);
  transition:
    opacity 700ms cubic-bezier(0.2, 0.7, 0.2, 1),
    transform 760ms cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: 0ms;
  will-change: opacity, transform;
}

.motion-ready .motion-reveal.motion-delay-1 {
  transition-delay: 80ms;
}

.motion-ready .motion-reveal.motion-delay-2 {
  transition-delay: 160ms;
}

.motion-ready .motion-reveal.motion-delay-3 {
  transition-delay: 240ms;
}

.motion-ready .motion-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  will-change: auto;
}

.method-step-reveal:nth-child(1) {
  --method-delay: 80ms;
  --method-line-delay: 210ms;
}

.method-step-reveal:nth-child(2) {
  --method-delay: 240ms;
  --method-line-delay: 370ms;
}

.method-step-reveal:nth-child(3) {
  --method-delay: 400ms;
  --method-line-delay: 530ms;
}

.method-step-reveal:nth-child(4) {
  --method-delay: 560ms;
  --method-line-delay: 690ms;
}

.motion-ready .motion-reveal.method-step-reveal {
  transition-delay: var(--method-delay);
}

.motion-ready .method-step-reveal::before {
  opacity: 0.25;
  transform: scale(0.72);
  transition:
    opacity 620ms cubic-bezier(0.2, 0.7, 0.2, 1),
    transform 720ms cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--method-delay);
}

.motion-ready .method-step-reveal:not(:last-child)::after {
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 700ms cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--method-line-delay);
}

.motion-ready .method-step-reveal.is-visible::before {
  opacity: 1;
  transform: scale(1);
}

.motion-ready .method-step-reveal.is-visible:not(:last-child)::after {
  transform: scaleY(1);
}

@media (max-width: 1100px) {
  .nav-links {
    gap: 20px;
  }

  .nav-links a {
    font-size: 12px;
  }

  .hero-copy {
    grid-column: 1 / span 6;
  }

  .hero-media {
    grid-column: 7 / -1;
    min-height: 500px;
  }

}

@media (max-width: 900px) {
  .header-inner {
    grid-template-columns: 1fr auto;
  }

  .menu-toggle {
    display: inline-grid;
    place-content: center;
    gap: 7px;
    width: 44px;
    height: 44px;
    border: 0;
    background: transparent;
    cursor: pointer;
  }

  .menu-toggle span {
    display: block;
    width: 24px;
    height: 1.5px;
    background: var(--charcoal);
    transition: transform 0.2s ease;
  }

  .menu-toggle[aria-expanded="true"] span:first-child {
    transform: translateY(4.25px) rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] span:last-child {
    transform: translateY(-4.25px) rotate(-45deg);
  }

  .main-nav {
    position: fixed;
    inset: var(--header-h) 0 0;
    display: none;
    grid-template-columns: 1fr;
    align-content: start;
    gap: 32px;
    padding: 32px var(--pad);
    overflow-y: auto;
    background: var(--warm-white);
  }

  .main-nav.is-open {
    display: grid;
  }

  .nav-links {
    flex-direction: column;
    gap: 0;
  }

  .nav-links a {
    padding-block: 16px;
    border-bottom: 1px solid var(--line);
    font-size: 22px;
    font-weight: 400;
    letter-spacing: 0.01em;
    text-transform: none;
  }

  .nav-links a::after {
    display: none;
  }

  .nav-cta {
    justify-self: start;
    min-height: 52px;
  }

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

  .hero-copy,
  .hero-media {
    grid-column: 1;
  }

  .hero-copy {
    padding-block: 0 16px;
  }

  .hero-copy h1 {
    max-width: 20ch;
  }

  .hero-media {
    min-height: 0;
    aspect-ratio: 16 / 10;
  }

  .method-content,
  .method-visual {
    grid-column: 1 / -1;
  }

  .split-head,
  .split-body {
    grid-column: 1 / -1;
  }

  .method-visual {
    min-height: 0;
    aspect-ratio: 16 / 10;
  }

  .why-visual {
    max-width: 560px;
  }

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

  .contact-card {
    grid-template-columns: 1fr;
    row-gap: 32px;
    padding: clamp(24px, 4vw, 40px);
  }

  /* Single column: form first, Paulina's photo and details below it */
  .contact-form-panel {
    order: -1;
  }

  .contact-profile {
    grid-template-columns: 160px minmax(0, 1fr);
    align-items: start;
    padding-top: 32px;
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 767px) {
  :root {
    --header-h: 64px;
    --section-y: 72px;
  }

  h1 {
    font-size: 32px;
    line-height: 1.2;
    letter-spacing: 0.01em;
  }

  h2 {
    font-size: 26px;
    line-height: 1.25;
    letter-spacing: 0.01em;
  }

  h3 {
    font-size: 22px;
    line-height: 1.3;
    letter-spacing: 0;
  }

  .lead {
    font-size: 18px;
  }

  .brand img {
    width: 136px;
  }

  .section-title {
    margin-bottom: 36px;
  }

  .hero {
    padding-top: 24px;
  }

  .hero-copy {
    gap: 28px;
    padding-block: 0 16px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

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

  .hero-media {
    aspect-ratio: 4 / 3;
  }

  .hero-media img {
    object-position: 100% 45%;
  }

  .service-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .service-card {
    min-height: 230px;
    padding: 28px;
  }

  .service-index {
    top: 24px;
    left: 28px;
  }

  .service-motif {
    top: 30px;
    right: 28px;
    width: 90px;
    height: 90px;
  }

  .goal-picker {
    gap: 8px;
  }

  .goal {
    min-height: 44px;
    padding: 9px 15px;
    font-size: 15px;
  }

  .goals-action,
  .goals-action .button {
    width: 100%;
  }

  .method {
    row-gap: 32px;
  }

  .method-steps li {
    grid-template-columns: 1fr;
    padding: 0 0 32px 32px;
  }

  .step-index {
    margin-bottom: 6px;
  }

  .method-steps p {
    max-width: none;
    font-size: 18px;
  }

  .method-content .button {
    width: 100%;
  }

  .method-visual {
    aspect-ratio: 4 / 5;
  }

  .quote blockquote p {
    font-size: 21px;
  }

  .split {
    row-gap: 32px;
  }

  .why-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .why-grid p {
    font-size: 16px;
    line-height: 1.7;
  }

  .method-content .title-break {
    display: inline;
  }

  .why-cta {
    align-self: stretch;
  }

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

  .footer-brand,
  .footer-col,
  .footer-contact {
    grid-column: 1;
  }

  .contact-heading h1 {
    font-size: 32px;
    line-height: 1.2;
    letter-spacing: 0.01em;
  }

  /* Photo stays on the left, name and bio beside it */
  .contact-profile {
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 20px;
  }

  .contact-portrait {
    max-width: 104px;
  }

  /* Narrow phones: name beside the photo, bio and contacts full width below */
  @media (max-width: 479px) {
    .contact-profile {
      grid-template-columns: 88px minmax(0, 1fr);
      align-items: center;
      row-gap: 20px;
    }

    .contact-profile-copy {
      display: contents;
    }

    .contact-profile-copy > :not(h2) {
      grid-column: 1 / -1;
    }
  }

  .contact-form-row {
    grid-template-columns: 1fr;
  }

  .contact-submit {
    justify-items: stretch;
  }

  .dialog.contact-success {
    padding: 44px 24px 28px;
  }

  .dialog.contact-success h2 {
    font-size: 22px;
    line-height: 1.3;
    letter-spacing: normal;
  }

  .dialog.contact-success p {
    font-size: 18px;
  }

  .contact-kicker {
    font-size: 13px;
  }

  .contact-profile h2 {
    font-size: 18px;
    line-height: 1.35;
    letter-spacing: normal;
  }

  .dialog.contact-success .button {
    width: 100%;
  }

  .dialog {
    padding: 28px 20px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .form .button {
    justify-self: stretch;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
  }

  .motion-reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Expertise - v9, tekst wg „Webselia strona tresc” (sekcja 4. EXPERTISE) */

.page-kicker {
  color: var(--petrol-deep);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.expertise-hero {
  padding-block: clamp(32px, 4vw, 64px) clamp(64px, 7vw, 108px);
}

.expertise-hero-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gap);
  align-items: stretch;
}

.expertise-hero-copy {
  grid-column: 1 / span 6;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 28px;
  min-width: 0;
  padding-block: 28px;
}

/* v12: sizes back to v10 (big H1 + 20px intro, Paulina 28.10); colours stay from v11:
   only the opening clause is petrol, "selon vos besoins:" in charcoal. */
.expertise-hero-copy h1 {
  max-width: 20ch;
}

.expertise-intro {
  max-width: 34em;
  font-size: 20px;
  font-weight: 300;
  line-height: 1.6;
}

.expertise-hero-copy h1 em {
  color: var(--petrol);
  font-style: normal;
}

.expertise-hero-media {
  position: relative;
  grid-column: 8 / -1;
  min-height: 520px;
  overflow: hidden;
  background: var(--paper);
}

/* v31: zdjecie wypelnia ramke, nie ustala jej wysokosci (pionowe zdjecie nie rozpycha hero) */
.expertise-hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* v31: pionowe zdjecie spotkania - kadr od gory (cala glowa), dol z nogami odciety (Paulina 10.11) */
  object-position: 60% 4%;
}

/* Sectors */

/* Last section of the page, six photos in the order of Paulina's file names */
.sectors {
  background: var(--paper);
  border-top: 1px solid var(--line);
}

.sectors-lead {
  max-width: 58ch;
  margin: 0 auto clamp(44px, 5vw, 68px);
  color: var(--charcoal);
  font-size: clamp(20px, 1.6vw, 26px);
  font-weight: 400;
  text-align: center;
}

.sectors-lead strong {
  color: var(--petrol);
  font-weight: 400;
}

.sector-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.sector-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--warm-white);
}

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

.sector-grid li:nth-child(4) .sector-card img {
  object-position: 70% center;
}

/* Services accordion - main offer, on petrol so it carries the strongest accent */

.expertise-services {
  color: var(--warm-white);
  background: var(--petrol);
}

.expertise-services :focus-visible {
  outline-color: var(--warm-white);
}

.expertise-services-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(20px, 2vw, 32px);
  row-gap: 40px;
  align-items: start;
}

/* Heading sits above the list in its own row, so the list starts at the photo's top edge */
.expertise-services-grid h2 {
  grid-column: 7 / -1;
}

.expertise-services-visual {
  grid-column: 1 / span 5;
  grid-row: 2;
  width: 100%;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

/* v12: a 2x2 mosaic in the colours and motifs of the Home service cards replaces
   the photo (Paulina 28.10: too many photos on Expertise). Labels repeat Home copy. */
.services-mosaic {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 12px;
  overflow: visible;
  aspect-ratio: auto;
}

.mosaic-tile {
  position: relative;
  display: grid;
  align-content: end;
  min-height: clamp(200px, 15vw, 252px);
  padding: clamp(22px, 2.2vw, 36px);
  overflow: hidden;
  color: var(--charcoal);
  background: var(--paper);
}

.mosaic-tile .service-motif {
  top: clamp(22px, 2.2vw, 36px);
  right: clamp(22px, 2.2vw, 36px);
  width: clamp(72px, 6vw, 100px);
  height: clamp(72px, 6vw, 100px);
}

.mosaic-tile .motif-frame::after {
  top: 24%;
  left: -26%;
  width: 62%;
  height: 62%;
}

.mosaic-tile .motif-radar {
  transform: translate(10px, 10px) scale(0.5);
}

.mosaic-sand {
  background: #e3d5bb;
}

.mosaic-white {
  background: var(--warm-white);
}

.mosaic-deep {
  color: var(--warm-white);
  background: var(--petrol-deep);
}

.mosaic-label {
  position: relative;
  max-width: 14ch;
  font-size: clamp(19px, 1.6vw, 24px);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: 0.01em;
}

.expertise-services-list {
  grid-column: 7 / -1;
  grid-row: 2;
}

.expertise-item {
  border-bottom: 1px solid rgba(241, 239, 232, 0.32);
}

.expertise-item summary {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 32px;
  align-items: baseline;
  gap: 12px;
  padding: 26px 0;
  cursor: pointer;
  list-style: none;
}

/* No line above item 01, so its text starts level with the photo */
.expertise-item:first-child summary {
  padding-top: 0;
}

.expertise-item summary::-webkit-details-marker {
  display: none;
}

.expertise-index {
  color: var(--sand-light);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.4;
}

.expertise-item-title {
  font-size: 24px;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: 0.01em;
  transition: color 0.18s ease;
}

.expertise-item summary:hover .expertise-item-title,
.expertise-item[open] .expertise-item-title {
  color: var(--sand);
}

.expertise-toggle {
  position: relative;
  align-self: center;
  justify-self: end;
  width: 18px;
  height: 18px;
}

.expertise-toggle::before,
.expertise-toggle::after {
  position: absolute;
  top: 50%;
  left: 0;
  width: 18px;
  height: 1.5px;
  background: var(--warm-white);
  content: "";
  transition: transform 0.2s ease;
}

.expertise-toggle::after {
  transform: rotate(90deg);
}

.expertise-item[open] .expertise-toggle::after {
  transform: rotate(0deg);
}

.expertise-item-body {
  display: grid;
  justify-items: start;
  gap: 24px;
  padding: 0 44px 32px 60px;
}

.expertise-item-body p {
  max-width: 62ch;
  color: rgba(241, 239, 232, 0.86);
  font-size: 18px;
  line-height: 1.6;
}

.expertise-services-cta {
  margin-top: 40px;
}

/* Technologies */

.tech {
  background: var(--paper);
  border-top: 1px solid var(--line);
}

/* Heading alone in the first row; list and photo start at the same height and share it */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(20px, 2vw, 32px);
  row-gap: 40px;
}

.tech-grid h2 {
  grid-column: 1 / span 6;
}

.tech-list {
  grid-column: 1 / span 6;
  grid-row: 2;
  margin: 0;
}

.tech-visual {
  position: relative;
  grid-column: 8 / -1;
  grid-row: 2;
  min-height: 320px;
  overflow: hidden;
}

.tech-visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 70%;
}

.tech-list div {
  display: grid;
  grid-template-columns: minmax(150px, 3fr) minmax(0, 7fr);
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.tech-list div:first-child {
  padding-top: 0;
}

.tech-list dt {
  color: var(--petrol);
  font-size: 22px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0.01em;
}

.tech-list dd {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}

.tech-list dd::first-letter {
  text-transform: uppercase;
}

/* Custom development - upsell, so light and quiet; centered heading, quote + CTA below the cards */

.custom-dev {
  padding-block: clamp(64px, 6vw, 96px);
  border-top: 1px solid var(--line);
}

/* .wrap carries the side padding, so add it back to keep the content at 1240 px */
.custom-dev-inner {
  max-width: calc(1240px + 2 * var(--pad));
}

.custom-dev-head {
  display: grid;
  justify-items: center;
  gap: 16px;
  margin-bottom: clamp(36px, 3.5vw, 52px);
  text-align: center;
}

.custom-dev-head .lead {
  max-width: 52ch;
}

.custom-dev-footer {
  display: grid;
  justify-items: center;
  gap: 20px;
  margin-top: clamp(36px, 3.5vw, 52px);
  text-align: center;
}

.custom-dev-footer p {
  max-width: 52ch;
  font-size: 18px;
  line-height: 1.6;
}

.custom-dev-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.custom-dev-grid li {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: clamp(22px, 2vw, 30px);
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--paper);
}

.custom-dev-icon {
  width: 32px;
  height: 32px;
  margin-bottom: 4px;
  fill: none;
  stroke: var(--petrol);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.custom-dev-grid h3 {
  font-size: 20px;
  line-height: 1.3;
}

.custom-dev-grid p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}

.custom-dev-grid p::first-letter {
  text-transform: uppercase;
}

@media (max-width: 1200px) {
  .custom-dev-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .custom-dev-grid li {
    grid-column: span 2;
  }

  .custom-dev-grid li:nth-child(4) {
    grid-column: 2 / span 2;
  }
}

@media (max-width: 900px) {
  .expertise-hero-grid {
    grid-template-columns: 1fr;
  }

  .expertise-hero-copy,
  .expertise-hero-media {
    grid-column: 1;
  }

  .expertise-hero-copy {
    padding-block: 0 16px;
  }

  .expertise-hero-media {
    min-height: 0;
    aspect-ratio: 16 / 10;
  }

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

  .expertise-services-grid h2,
  .expertise-services-visual,
  .expertise-services-list {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .expertise-services-visual {
    max-width: 560px;
  }

  .tech-grid h2,
  .tech-list,
  .tech-visual {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .tech-visual {
    order: -1;
    grid-row: 2;
    max-width: 560px;
    min-height: 0;
    aspect-ratio: 4 / 3;
  }

  .custom-dev-grid {
    grid-template-columns: 1fr 1fr;
  }

  .custom-dev-grid li,
  .custom-dev-grid li:nth-child(4) {
    grid-column: auto;
  }

  .custom-dev-grid li:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 767px) {
  .page-kicker {
    font-size: 13px;
  }

  .expertise-intro {
    font-size: 18px;
  }

  .services-mosaic {
    gap: 8px;
  }

  .mosaic-tile {
    min-height: 160px;
    padding: 18px;
  }

  .mosaic-tile .service-motif {
    top: 18px;
    right: 18px;
    width: 56px;
    height: 56px;
  }

  .mosaic-tile .motif-radar {
    transform: translate(4px, 4px) scale(0.36);
  }

  .mosaic-label {
    font-size: 17px;
  }

  .sector-grid {
    gap: 8px;
  }

  .expertise-item summary {
    grid-template-columns: 36px minmax(0, 1fr) 24px;
    padding: 20px 0;
  }

  .expertise-item-title {
    font-size: 19px;
  }

  .expertise-item-body {
    padding: 0 0 28px 48px;
  }

  .expertise-item-body p,
  .tech-list dd,
  .custom-dev-footer p {
    font-size: 16px;
    line-height: 1.7;
  }

  .expertise-services-cta,
  .custom-dev-footer .button {
    width: 100%;
  }

  .custom-dev-footer {
    justify-items: stretch;
  }

  .tech-list div {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 20px 0;
  }

  .tech-list dt {
    font-size: 18px;
  }

  .custom-dev-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .custom-dev-grid li:last-child {
    grid-column: auto;
  }
}

/* Qui sommes-nous - v11, tekst wg „Webselia strona tresc” (sekcja 6. QUI SOMMES NOUS).
   Graphic language from Home: team photo in the hero, sand dots on a line, petrol block. */

.about-hero {
  padding-block: clamp(32px, 4vw, 64px) clamp(64px, 7vw, 108px);
}

.about-hero-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gap);
  align-items: center;
}

.about-hero-copy {
  grid-column: 1 / span 6;
  display: grid;
  gap: 28px;
  min-width: 0;
}

.about-hero-copy h1 {
  text-wrap: balance;
}

.about-hero-copy h1 em {
  color: var(--petrol);
  font-style: normal;
}

.about-hero-copy .lead {
  max-width: 34em;
}

/* Same frame as the Home hero photo: 560 px high, the image never sets the height */
.about-hero-media {
  position: relative;
  grid-column: 7 / -1;
  align-self: stretch;
  min-height: 560px;
  overflow: hidden;
  background: var(--paper);
}

.about-hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 4%;
}

/* Coobers: a quiet signature band, logo above the sentence */

.about-origin {
  background: var(--paper);
  border-top: 1px solid var(--line);
}

.about-origin-inner {
  display: grid;
  justify-items: center;
  gap: 28px;
  text-align: center;
}

.about-origin-logo {
  width: 168px;
}

.about-origin-rule {
  width: 1px;
  height: 48px;
  background: var(--sand);
}

.about-origin-inner p {
  max-width: 52ch;
  font-size: clamp(20px, 1.6vw, 24px);
  font-weight: 400;
  line-height: 1.6;
}

.about-origin-inner p a {
  color: var(--petrol);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.about-origin-inner p a:hover {
  color: var(--petrol-deep);
}

/* Clutch: one sentence, nearly the size of the Coobers text so the reviews are noticed */
/* v15: one Coobers review from Clutch under the rule, Clutch link as its source */
.about-proof {
  display: grid;
  justify-items: center;
  gap: 28px;
  width: min(100%, 860px);
  padding-top: 40px;
  border-top: 1px solid var(--line-strong);
}

.about-review {
  display: grid;
  justify-items: center;
  gap: 16px;
}

.about-origin-inner .about-review blockquote p {
  max-width: 44ch;
  font-size: clamp(21px, 1.7vw, 27px);
  font-weight: 300;
  line-height: 1.5;
}

.about-review figcaption {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2px 8px;
}

.about-origin-inner .about-clutch {
  max-width: none;
  font-size: clamp(20px, 1.5vw, 23px);
  font-weight: 400;
  line-height: 1.5;
}

.about-clutch em {
  color: var(--petrol);
  font-style: normal;
  font-weight: 500;
}

.about-clutch a {
  color: var(--petrol);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.about-clutch a:hover {
  color: var(--petrol-deep);
}

/* Mission, vision, values (v12, Paulina 28.10): petrol is the background only.
   Row 1: mission and vision split by a sand rule, row 2: values as cards in the
   other brand colours, in the language of the Home service cards. */
.about-mission {
  padding-block: clamp(64px, 6vw, 104px);
  color: var(--warm-white);
  background: var(--petrol);
}

.about-manifesto {
  display: grid;
  grid-template-columns: minmax(0, 6fr) auto minmax(0, 5fr);
  column-gap: clamp(32px, 4vw, 72px);
  align-items: end;
}

.about-label {
  color: var(--sand-light);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.about-mission-text {
  max-width: 19ch;
  margin-top: 20px;
  text-wrap: balance;
  font-size: clamp(34px, 3.3vw, 54px);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: 0.01em;
}

/* Paulina 28.10: the opening clause stands out in sand (sand-hover: 3.2:1 on petrol, large text) */
.about-mission-text em {
  color: var(--sand-hover);
  font-style: normal;
}

.about-mission-rule {
  align-self: stretch;
  width: 1px;
  background: var(--sand);
}

/* v13, Paulina 28.10: the vision sentence in sand, like the mission opening */
.about-vision-text {
  max-width: 18ch;
  color: var(--sand-hover);
  margin-top: 20px;
  text-wrap: balance;
  font-size: clamp(30px, 2.8vw, 46px);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0.01em;
}

.about-values {
  margin-top: clamp(56px, 5.5vw, 88px);
  padding-top: clamp(28px, 2.6vw, 40px);
  border-top: 1px solid rgba(241, 239, 232, 0.22);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: clamp(20px, 2vw, 28px);
}

.values-grid li {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: clamp(200px, 15vw, 248px);
  padding: clamp(24px, 2.2vw, 36px);
  color: var(--charcoal);
  background: var(--warm-white);
}

/* v14, Paulina 29.10: order and colours follow the brand colour card.
   Intégrité white, Engagement sand, Transparence petrol,
   Flexibilité light sand (the Suivi des performances tile on Home). */
.values-grid li:nth-child(1) {
  background: #fff;
}

.values-grid li:nth-child(2) {
  background: #e3d5bb;
}

.values-grid li:nth-child(3) {
  color: var(--warm-white);
  background: var(--petrol-deep);
}

.values-grid li:nth-child(4) {
  background: var(--warm-white);
}

.values-icon {
  width: 40px;
  height: 40px;
  margin-bottom: auto;
  padding-bottom: 28px;
  box-sizing: content-box;
  fill: none;
  stroke: var(--petrol);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.values-grid li:nth-child(3) .values-icon {
  stroke: var(--sand);
}

.values-grid h3 {
  font-size: clamp(20px, 1.6vw, 24px);
  font-weight: 500;
  line-height: 1.3;
}

.values-grid p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.5;
}

.values-grid li:nth-child(3) p {
  color: rgba(241, 239, 232, 0.82);
}

/* Laptop and up: the whole petrol section fits one screen under the header.
   Spacing and type follow the viewport height, so 1280x720 and 1920x1080 both fit. */
@media (min-width: 1201px) {
  .about-mission {
    display: grid;
    align-content: center;
    min-height: calc(100svh - var(--header-h));
    padding-block: clamp(28px, 6vh, 96px);
  }

  .about-mission-text {
    margin-top: clamp(10px, 2vh, 20px);
    font-size: clamp(28px, min(3.3vw, 6.2vh), 54px);
  }

  .about-vision-text {
    margin-top: clamp(10px, 2vh, 20px);
    font-size: clamp(24px, min(2.8vw, 5.3vh), 46px);
  }

  .about-values {
    margin-top: clamp(24px, 6vh, 88px);
    padding-top: clamp(16px, 3vh, 40px);
  }

  .values-grid {
    margin-top: clamp(12px, 2.4vh, 28px);
  }

  .values-grid li {
    min-height: clamp(116px, 22vh, 248px);
    padding: clamp(16px, 3.2vh, 36px) clamp(20px, 2.2vw, 36px);
  }

  .values-icon {
    width: clamp(28px, 4vh, 40px);
    height: clamp(28px, 4vh, 40px);
    padding-bottom: clamp(12px, 2.6vh, 28px);
  }
}

/* LEAN: the Home method dots laid on a horizontal line, closing on a loop arrow */

.lean {
  background: var(--paper);
  border-top: 1px solid var(--line);
}

.lean-inner h2 {
  max-width: 30ch;
  text-wrap: balance;
  margin-bottom: clamp(48px, 5vw, 72px);
  font-size: clamp(26px, 2.5vw, 36px);
}

.lean-inner h2 em {
  color: var(--petrol);
  font-style: normal;
}

.lean-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 48px);
}

.lean-track::before {
  position: absolute;
  top: 5px;
  right: 52px;
  left: 0;
  height: 1px;
  background: var(--line-strong);
  content: "";
}

.lean-track li {
  position: relative;
  display: grid;
  align-content: start;
  gap: 10px;
  padding-top: 40px;
}

.lean-track li::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--sand);
  content: "";
}

.lean-track h3 {
  color: var(--petrol);
  font-size: 22px;
  line-height: 1.3;
}

.lean-track p {
  max-width: 32ch;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}

.lean-loop-arrow {
  position: absolute;
  top: -18px;
  right: 0;
  width: 40px;
  height: 40px;
  fill: none;
  stroke: var(--petrol);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Closing CTA, copy from Contact and Home */

.about-cta {
  border-top: 1px solid var(--line);
}

.about-cta-inner {
  display: grid;
  justify-items: center;
  gap: 24px;
  text-align: center;
}

.about-cta-inner h2 {
  margin-bottom: 8px;
  text-wrap: balance;
}

.about-cta-inner h2 em {
  display: block;
  color: var(--petrol);
  font-style: normal;
}

.faq-cta .about-cta-inner h2 em {
  display: inline;
}

@media (max-width: 900px) {
  .about-hero-grid {
    grid-template-columns: 1fr;
    row-gap: 40px;
  }

  .about-hero-copy,
  .about-hero-media {
    grid-column: 1;
  }

  .about-hero-media {
    min-height: 0;
    aspect-ratio: 4 / 3;
  }

  .about-mission {
    padding-block: var(--section-y);
  }

  .about-manifesto {
    grid-template-columns: 1fr;
  }

  .about-mission-rule {
    width: 56px;
    height: 1px;
    margin-block: 36px;
  }

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

  /* Vertical line on narrow screens, like the method on Home */
  .lean-track {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .lean-track::before {
    top: 6px;
    right: auto;
    bottom: 60px;
    left: 5px;
    width: 1px;
    height: auto;
  }

  .lean-track li {
    padding: 0 0 36px 40px;
  }

  .lean-track li:last-child {
    padding-bottom: 0;
  }

  .lean-loop {
    position: relative;
  }

  .lean-loop-arrow {
    top: -6px;
    width: 32px;
    height: 32px;
  }
}

@media (max-width: 767px) {
  .about-label {
    font-size: 13px;
  }

  .about-mission-text {
    font-size: 32px;
  }

  .about-vision-text {
    font-size: 28px;
  }

  /* v13, Paulina 28.10: values one under another on phones */
  .values-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .values-grid li {
    min-height: 0;
    padding: 20px 16px;
  }

  .values-icon {
    width: 32px;
    height: 32px;
    padding-bottom: 20px;
  }

  .values-grid h3 {
    font-size: 18px;
  }

  .values-grid p,
  .lean-track p {
    font-size: 16px;
  }

  .lean-track h3 {
    font-size: 19px;
  }

  .about-cta-inner .button {
    width: 100%;
  }
}

/* Tarifs - v14 */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Hero: same split and photo frame as Qui sommes-nous */
.tarifs-hero {
  padding-block: clamp(32px, 4vw, 64px) clamp(64px, 7vw, 108px);
}

.tarifs-hero-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gap);
  align-items: center;
}

.tarifs-hero-copy {
  grid-column: 1 / span 6;
  display: grid;
  gap: 28px;
  min-width: 0;
}

.tarifs-hero-copy h1 {
  max-width: 18ch;
  text-wrap: balance;
}

.tarifs-hero-copy h1 em,
.tarifs-hero-copy strong {
  color: var(--petrol);
  font-style: normal;
}

.tarifs-hero-copy strong {
  font-weight: 400;
}

.tarifs-hero-copy .lead {
  max-width: 34em;
}

.tarifs-hero-media {
  position: relative;
  grid-column: 7 / -1;
  align-self: stretch;
  min-height: 520px;
  overflow: hidden;
  background: var(--paper);
}

.tarifs-hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 45% center;
}

/* Plans: the three cards take the colours of the Home service cards
   (white, sand, petrol); the popular plan is the petrol one. */
.plans {
  background: var(--paper);
  border-top: 1px solid var(--line);
}

.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 1240px;
  margin-inline: auto;
  align-items: stretch;
}

.plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: clamp(28px, 2.6vw, 44px);
  border: 1px solid var(--line);
  background: #fff;
}

.plan-sand {
  background: #e3d5bb;
}

.plan-petrol {
  color: var(--warm-white);
  background: var(--petrol);
  border-color: var(--petrol);
}

/* Badge sits on the card's top edge so it takes no space inside (Paulina 03.11) */
.plan-badge {
  position: absolute;
  bottom: calc(100% - 10px);
  left: 50%;
  transform: translateX(-50%);
  padding: 5px 12px;
  color: var(--charcoal);
  background: var(--sand);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.plan-eyebrow {
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.plan-petrol .plan-eyebrow {
  color: var(--sand);
}

.plan-name {
  position: relative;
  max-width: 22ch;
  min-height: 2.5em;
  font-size: clamp(22px, 1.8vw, 26px);
  line-height: 1.25;
}

.plan-sub {
  margin-top: 10px;
  color: var(--muted);
  font-size: 18px;
}

.plan-petrol .plan-sub {
  color: rgba(241, 239, 232, 0.82);
}

.plan-price {
  margin-block: 28px;
  padding-block: 24px;
  border-block: 1px solid var(--line-strong);
  font-size: clamp(40px, 3.6vw, 54px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.01em;
}

.plan-price span {
  display: block;
  margin-bottom: 4px;
}

.plan-price span,
.plan-price small {
  color: var(--muted);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0;
}

.plan-price small {
  font-size: 0.36em;
  letter-spacing: 0.04em;
}

.plan-petrol .plan-price {
  border-color: rgba(241, 239, 232, 0.32);
}

.plan-petrol .plan-price span,
.plan-petrol .plan-price small {
  color: rgba(241, 239, 232, 0.82);
}

.plan-features {
  display: grid;
  gap: 12px;
  margin-bottom: 36px;
}

.plan-features strong {
  font-weight: 500;
}

.plan-subfeatures {
  display: grid;
  gap: 6px;
  margin-top: 10px;
}

.plan-features .plan-subfeatures li {
  padding-left: 18px;
  font-size: 15px;
  line-height: 1.45;
}

.plan-features .plan-subfeatures li::before {
  top: 0.6em;
  width: 6px;
  height: 6px;
  border: 1.2px solid var(--petrol);
  border-radius: 50%;
  transform: none;
}

.plan-petrol .plan-subfeatures li::before {
  border-color: var(--sand);
}

/* "Idéal pour": pushed to the card bottom so the three blocks line up */
.plan-ideal {
  margin-top: auto;
  margin-bottom: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line-strong);
}

.plan-petrol .plan-ideal {
  border-color: rgba(241, 239, 232, 0.32);
}

.plan-ideal-title {
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.plan-ideal ul {
  display: grid;
  gap: 8px;
}

.plan-ideal li {
  position: relative;
  padding-left: 18px;
  font-size: 15px;
  line-height: 1.45;
}

.plan-ideal li::before {
  position: absolute;
  top: 0.6em;
  left: 2px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  content: "";
}

.plan-features li {
  position: relative;
  padding-left: 30px;
  font-size: 16px;
  line-height: 1.5;
}

.plan-features li::before {
  position: absolute;
  top: 4px;
  left: 2px;
  width: 7px;
  height: 12px;
  border-right: 1.6px solid var(--petrol);
  border-bottom: 1.6px solid var(--petrol);
  transform: rotate(45deg);
  content: "";
}

.plan-petrol .plan-features li::before {
  border-color: var(--sand);
}

.plan-cta {
  gap: 8px;
  width: 100%;
  margin-top: auto;
}

.plan-ideal + .plan-cta {
  margin-top: 0;
}

.plan-petrol .plan-cta:hover {
  background: var(--sand-hover);
}

.cost-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 32px;
  align-items: baseline;
  padding-block: 22px;
  border-bottom: 1px solid var(--line);
}

.cost-list h3 {
  grid-column: 1;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.4;
}

.cost-note {
  grid-column: 1;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}

.cost-amount {
  grid-column: 2;
  grid-row: 1;
  color: var(--petrol);
  font-size: 22px;
  font-weight: 500;
  line-height: 1.3;
  text-align: right;
  white-space: nowrap;
}

.cost-amount span {
  display: block;
  color: var(--muted);
  font-size: 14px;
  font-weight: 400;
}

/* Payment: one bar split exactly 30 / 40 / 30, like the method line on Home */
.payment {
  color: var(--warm-white);
  background: var(--petrol);
}

.payment-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px 40px;
  margin-bottom: clamp(36px, 3.5vw, 48px);
}

.payment-head .lead {
  color: rgba(241, 239, 232, 0.86);
}

.payment-track {
  display: grid;
  grid-template-columns: 3fr 4fr 3fr;
  gap: 6px;
}

.payment-track li {
  display: grid;
  align-content: start;
  gap: 8px;
  min-width: 0;
  padding-top: 18px;
  border-top: 3px solid var(--warm-white);
}

/* White = start and middle steps, sand = final step, like the CTA (Paulina 04.11) */
.payment-track li:last-child {
  border-top-color: var(--sand);
}

.payment-share {
  margin-bottom: 6px;
  color: var(--sand);
  font-size: clamp(36px, 3vw, 46px);
  font-weight: 300;
  line-height: 1;
}

/* Two schedules: under 2 000 € HT in two parts, from 2 000 € HT in three */
.payment-group + .payment-group {
  margin-top: clamp(36px, 3.5vw, 48px);
}

.payment-group-title {
  margin-bottom: 14px;
  color: rgba(241, 239, 232, 0.82);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.payment-track-2 {
  grid-template-columns: 1fr 1fr;
}

.payment-track h4 {
  margin: 0;
  font-weight: 500;
  letter-spacing: 0.01em;
  max-width: 22ch;
  font-size: 17px;
  line-height: 1.35;
}

.payment-track p:not(.payment-share) {
  color: rgba(241, 239, 232, 0.82);
  font-size: 15px;
  line-height: 1.5;
}

/* Payment: team photo on the left, steps on the right (Weronika 29.10) */
.payment-layout {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(40px, 5vw, 72px);
  align-items: stretch;
}

.payment-media {
  grid-column: 1 / span 5;
  min-height: 420px;
  overflow: hidden;
  background: var(--petrol-deep);
}

.payment-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% center;
}

.payment-body {
  grid-column: 6 / -1;
  align-self: center;
  padding-left: clamp(0px, 2vw, 32px);
}

.payment-body .payment-head {
  display: grid;
  justify-content: start;
}

@media (max-width: 900px) {
  .payment-layout {
    grid-template-columns: 1fr;
  }

  .payment-media,
  .payment-body {
    grid-column: 1 / -1;
    padding-left: 0;
  }

  .payment-media {
    min-height: 0;
    aspect-ratio: 3 / 2;
  }
}

/* Quote modal: same fields as Contact, plan name above the form */
.quote-dialog {
  width: min(560px, calc(100vw - 32px));
  border-top: 4px solid var(--petrol);
}

.quote-dialog h2 {
  margin-bottom: 10px;
  font-size: 28px;
}

.quote-plan {
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 16px;
}

.quote-plan strong {
  color: var(--petrol-deep);
  font-weight: 500;
}

.quote-submit {
  justify-self: start;
  min-width: 220px;
}

/* Extra costs: a footnote to the plans, same width as the cards */
.plans-costs {
  max-width: 1240px;
  margin: clamp(48px, 5vw, 72px) auto 0;
}

.plans-costs-title {
  margin-bottom: 20px;
  font-size: 22px;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: 0.01em;
}

.cost-list-compact {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(32px, 4vw, 64px);
}

.cost-list-compact li {
  padding-block: 16px;
  border-bottom: 1px solid var(--line);
}

.cost-list-compact h3 {
  font-size: 17px;
}

.cost-list-compact .cost-note {
  font-size: 15px;
}

.cost-list-compact .cost-amount {
  font-size: 18px;
}

.cost-list-compact .cost-amount span {
  font-size: 13px;
}

@media (max-width: 1100px) {
  .plan-grid {
    grid-template-columns: 1fr;
    row-gap: 40px;
    max-width: 640px;
  }

  .plan-name,
  .plan-petrol .plan-name {
    min-height: 0;
    max-width: 24ch;
  }
}

@media (max-width: 900px) {
  .tarifs-hero-grid {
    grid-template-columns: 1fr;
  }

  .tarifs-hero-copy,
  .tarifs-hero-media {
    grid-column: 1 / -1;
  }

  .tarifs-hero-media {
    min-height: 0;
    aspect-ratio: 4 / 3;
  }


}

@media (max-width: 640px) {
  .cost-list-compact {
    grid-template-columns: 1fr;
  }

  .plans-costs-title {
    font-size: 20px;
  }

  .tarifs-hero-copy {
    gap: 20px;
  }

  .plan-card {
    padding: 28px 20px;
  }

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

  .cost-amount {
    grid-column: 1;
    grid-row: auto;
    margin-top: 4px;
    text-align: left;
    font-size: 20px;
  }

  .cost-amount span {
    display: inline;
    margin-left: 6px;
  }

  .payment-track {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .payment-track-2 {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .payment-group + .payment-group {
    margin-top: 56px;
  }

  .payment-head {
    display: grid;
  }

  .dialog.quote-dialog {
    padding: 40px 20px 28px;
  }

  .quote-submit {
    width: 100%;
  }
}

/* Plans: short card, CTA under the price, full list folded under "Voir le détail" (v18) */
.plans-a .plan-cta {
  margin-top: 0;
  margin-bottom: 28px;
}

.plans-a .plan-key {
  margin-bottom: 28px;
}

/* "Voir le détail" sits right under the last key point (Weronika 03.11) */
.plan-more {
  padding-top: 16px;
  border-top: 1px solid var(--line-strong);
}

.plan-petrol .plan-more {
  border-color: rgba(241, 239, 232, 0.32);
}

.plan-more summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.02em;
  list-style: none;
  cursor: pointer;
}

.plan-more summary::-webkit-details-marker {
  display: none;
}

.plan-more summary::after {
  font-size: 22px;
  font-weight: 300;
  line-height: 1;
  content: "+";
}

.plan-more[open] summary::after {
  content: "\2212";
}

.plan-more summary:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

.plan-more[open] summary {
  margin-bottom: 24px;
}

.plan-more .plan-features {
  margin-bottom: 28px;
}

.plan-more .plan-ideal {
  margin: 0;
}

/* Longer plan titles (Paulina 04.11): rows shared across the three cards,
   so subtitle, price, CTA and list start at the same height in each card */
@media (min-width: 1101px) {
  .plan-grid {
    row-gap: 0;
  }

  .plan-card {
    display: grid;
    grid-row: span 6;
    grid-template-rows: subgrid;
    align-content: start;
  }

  .plan-name,
  .plan-petrol .plan-name {
    min-height: 0;
  }
}

/* FAQ - v22. Hero: light index panel left, copy right (other pages put the photo right).
   Body on the same wrap as the hero and header: theme title left (sticky), questions right. */

.faq-hero {
  padding-block: clamp(32px, 4vw, 64px) clamp(56px, 6vw, 96px);
}

.faq-hero-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gap);
  align-items: center;
}

.faq-hero-copy {
  grid-column: 7 / -1;
  grid-row: 1;
  display: grid;
  gap: 28px;
  min-width: 0;
}

.faq-hero-copy h1 {
  max-width: 18ch;
  text-wrap: balance;
}

.faq-hero-copy h1 em {
  color: var(--petrol);
  font-style: normal;
}

.faq-hero-copy .lead {
  max-width: 34em;
}

.faq-hero-index {
  position: relative;
  grid-column: 1 / span 5;
  grid-row: 1;
  padding: clamp(28px, 3vw, 44px);
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
}

.faq-hero-label {
  position: relative;
  margin-bottom: 20px;
  color: var(--petrol-deep);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.faq-hero-index ol {
  position: relative;
}

.faq-hero-index li + li {
  border-top: 1px solid var(--line);
}

.faq-hero-index a {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 16px;
  align-items: center;
  gap: 12px;
  padding: 15px 0;
  text-decoration: none;
}

.faq-index-num,
.faq-topic-num {
  color: var(--petrol);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.faq-index-title {
  font-size: 19px;
  font-weight: 400;
  line-height: 1.35;
  transition: color 0.18s ease;
}

.faq-index-arrow {
  width: 9px;
  height: 9px;
  justify-self: end;
  border-right: 1.5px solid var(--charcoal);
  border-bottom: 1.5px solid var(--charcoal);
  transform: translateY(-3px) rotate(45deg);
  transition: transform 0.18s ease;
}

.faq-hero-index a:hover .faq-index-title {
  color: var(--petrol);
}

.faq-hero-index a:hover .faq-index-arrow {
  transform: translateY(0) rotate(45deg);
}

.faq-body {
  padding-bottom: clamp(24px, 3vw, 48px);
}

.faq-topic {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gap);
  padding-block: clamp(44px, 4.5vw, 72px);
  border-top: 1px solid var(--line);
  scroll-margin-top: var(--header-h);
}

.faq-topic-head {
  grid-column: 1 / span 4;
  align-self: start;
  position: sticky;
  top: calc(var(--header-h) + 32px);
  display: grid;
  gap: 10px;
}

.faq-topic-head h2 {
  max-width: 14ch;
  font-size: 28px;
  line-height: 1.25;
  letter-spacing: 0.01em;
}

.faq-list {
  grid-column: 5 / -1;
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item:last-child {
  border-bottom: 0;
}

.faq-item:first-child summary {
  padding-top: 4px;
}

.faq-item summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 24px;
  align-items: baseline;
  gap: 24px;
  padding: 22px 0;
  cursor: pointer;
  list-style: none;
}

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

.faq-question {
  font-size: 20px;
  font-weight: 400;
  line-height: 1.4;
  transition: color 0.18s ease;
}

.faq-item summary:hover .faq-question,
.faq-item[open] .faq-question {
  color: var(--petrol);
}

.faq-toggle {
  position: relative;
  align-self: center;
  justify-self: end;
  width: 16px;
  height: 16px;
}

.faq-toggle::before,
.faq-toggle::after {
  position: absolute;
  top: 50%;
  left: 0;
  width: 16px;
  height: 1.5px;
  background: var(--charcoal);
  content: "";
  transition: transform 0.2s ease;
}

.faq-toggle::after {
  transform: rotate(90deg);
}

.faq-item[open] .faq-toggle::after {
  transform: rotate(0deg);
}

.faq-answer {
  display: grid;
  gap: 14px;
  padding: 0 48px 26px 0;
}

.faq-answer p {
  max-width: 64ch;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

@media (max-width: 900px) {
  .faq-hero-grid {
    grid-template-columns: 1fr;
    row-gap: 40px;
  }

  .faq-hero-copy,
  .faq-hero-index {
    grid-column: 1;
    grid-row: auto;
  }

  .faq-hero-index {
    max-width: 560px;
  }

  .faq-topic {
    grid-template-columns: 1fr;
    row-gap: 24px;
  }

  .faq-topic-head,
  .faq-list {
    grid-column: 1;
  }

  .faq-topic-head {
    position: static;
    grid-template-columns: auto 1fr;
    align-items: baseline;
    gap: 14px;
  }

  .faq-topic-head h2 {
    max-width: none;
  }
}

@media (max-width: 767px) {
  .faq-topic-head h2 {
    font-size: 22px;
  }

  .faq-index-title {
    font-size: 17px;
  }

  .faq-hero-index a {
    grid-template-columns: 32px minmax(0, 1fr) 16px;
    padding: 13px 0;
  }

  .faq-hero-index {
    padding: 24px 20px;
  }

  .faq-hero-label {
    margin-bottom: 14px;
    font-size: 13px;
  }

  .faq-item summary {
    gap: 16px;
    padding: 18px 0;
  }

  .faq-question {
    font-size: 17px;
  }

  .faq-answer {
    padding-right: 0;
  }

  .faq-answer p {
    font-size: 16px;
  }

  .faq-cta .button {
    width: 100%;
  }
}

/* v23 - Pourquoi: key phrase of each argument in petrol, same as the hero h1 */
.why-grid h3 em {
  color: var(--petrol);
  font-style: normal;
}

/* ==========================================================================
   v26 - site preview with Google and AI cards, three compositions (prototype: html[data-v-uklad])
   ========================================================================== */

.hc {
  padding-block: clamp(56px, 6vw, 96px) clamp(64px, 7vw, 108px);
  overflow: hidden;
}

.hc-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 880px) minmax(0, 1fr);
  column-gap: var(--gap);
  justify-items: center;
}

.hc-copy {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 36px;
  text-align: center;
}

.hc-copy h1 {
  max-width: 21ch;
  font-size: clamp(40px, 4.2vw, 62px);
  line-height: 1.12;
}

.hc-copy h1 em {
  color: var(--petrol);
  font-style: normal;
}

.hc-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.hc .microcopy {
  color: var(--muted);
}

.hc .price-link {
  justify-content: center;
}


.hc-preview {
  position: relative;
  grid-column: 1 / -1;
  width: min(100%, 880px);
  margin-top: clamp(56px, 5vw, 80px);
}

.hc-browser {
  height: 500px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 12px 12px 0 0;
  background: #fff;
  box-shadow: 0 30px 80px rgba(44, 44, 42, 0.1);
}

.hc-browser-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 42px;
  padding-inline: 18px;
  border-bottom: 1px solid var(--line);
}

.hc-browser-bar i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--line);
}

.hc-browser-bar span {
  margin-inline: auto;
  padding: 5px 22px;
  border-radius: 999px;
  color: var(--muted);
  background: var(--warm-white);
  font-size: 13px;
}

/* the example client site: Ironvine Restoration, a heritage restorer in Brussels (fictional) */
.hc-site {
  color: #2b2622;
  background: #f7f3ee;
}

.ls-nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 18px 32px;
  border-bottom: 1px solid rgba(43, 38, 34, 0.12);
  font-size: 13px;
}

.ls-links {
  display: flex;
  align-items: center;
  gap: 22px;
  color: #5b5048;
}

.ls-links-right {
  justify-content: flex-end;
}

.ls-rdv {
  padding: 7px 14px;
  border: 1px solid #2b2622;
  color: #2b2622;
}

.ls-logo {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 23px;
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0.01em;
}

.ls-burger {
  display: none;
}

.ls-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  min-height: 360px;
}

.ls-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 36px 40px 36px 44px;
  text-align: left;
}

.ls-eyebrow {
  color: #9a6b4a;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.ls-title {
  margin-top: 16px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 36px;
  line-height: 1.12;
}

.ls-text {
  max-width: 34ch;
  margin-top: 16px;
  color: #6a5f55;
  font-size: 14px;
  line-height: 1.6;
}

.ls-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 26px;
  font-size: 13px;
}

.ls-button {
  padding: 12px 20px;
  color: #f7f3ee;
  background: #2b2622;
}

.ls-link {
  border-bottom: 1px solid currentColor;
}

.ls-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 32%;
}

.hc-card {
  position: absolute;
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 300px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(44, 44, 42, 0.12);
  text-align: left;
}

/* cards sit mostly outside the frame, so the example site stays readable */
.hc-card-search {
  bottom: 48px;
  left: calc(-1 * min(250px, (100vw - 100%) / 2 - 24px));
  width: 290px;
}

.hc-card-ai {
  top: 150px;
  right: calc(-1 * min(250px, (100vw - 100%) / 2 - 24px));
  width: 290px;
}

.hc-card-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
  color: var(--petrol);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hc-card-label::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--sand);
  content: "";
}

.hc-card-url {
  color: var(--muted);
  font-size: 12px;
}

.hc-card-title {
  color: var(--petrol);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.35;
}

.hc-card-question {
  align-self: flex-end;
  padding: 8px 12px;
  border-radius: 10px;
  background: var(--warm-white);
  font-size: 14px;
}

.hc-card-text {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.hc-card-text strong {
  color: var(--charcoal);
  font-weight: 500;
}

.hc {
  padding-bottom: 0;
}

/* below 1100 px there is no room beside the frame: cards go under it, side by side */
@media (max-width: 1100px) {
  .hc {
    padding-bottom: 72px;
  }

  .hc-preview {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    align-items: start;
  }

  .hc-browser {
    grid-column: 1 / -1;
    order: -1;
    border-bottom: 1px solid var(--line);
    border-radius: 12px;
  }

  .hc-card {
    position: relative;
    inset: auto;
    width: auto;
  }
}

@media (max-width: 767px) {
  .hc-inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: 12px;
  }

  .hc-copy {
    grid-column: 1 / -1;
    gap: 28px;
  }

  .hc-copy h1 {
    font-size: 34px;
  }

  .hc-actions,
  .hc-actions .button {
    width: 100%;
  }

  .hc-preview {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 48px;
  }

  .hc-browser {
    order: -1;
    height: auto;
  }

  .ls-nav {
    grid-template-columns: 1fr auto;
    padding: 12px 16px;
  }

  .ls-links {
    display: none;
  }

  .ls-logo {
    font-size: 19px;
  }

  .ls-burger {
    display: block;
    width: 18px;
    height: 8px;
    border-top: 1.5px solid #2b2622;
    border-bottom: 1.5px solid #2b2622;
  }

  .ls-hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .ls-hero img {
    order: -1;
    height: 170px;
  }

  .ls-copy {
    padding: 20px 18px 24px;
  }

  .ls-title {
    margin-top: 10px;
    font-size: 24px;
  }

  .ls-text {
    display: none;
  }

  .ls-actions {
    margin-top: 18px;
  }

  .ls-link {
    display: none;
  }

  .hc-card {
    position: relative;
    inset: auto;
    width: auto;
    margin-top: 0;
  }

  .hc-card-ai {
    margin-top: 0;
  }

  .hc {
    padding-bottom: 64px;
  }
}

/* ==========================================================================
   v33 - the preview is shorter and fades into the page;
   the two cards sit at different heights (search high on the left, AI low on the right)
   ========================================================================== */

@media (min-width: 1101px) {
  .hc {
    padding-bottom: 40px;
  }

  .hc-browser {
    height: 450px;
    -webkit-mask-image: linear-gradient(to bottom, #000 62%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 62%, transparent 100%);
  }

  .hc-card-search {
    top: 24px;
    bottom: auto;
  }

  .hc-card-ai {
    top: auto;
    bottom: 72px;
  }
}

/* v25: tags in the recommendations modal sit tighter to the title, like "Formule" in the quote modal */
.quote-dialog .selection-summary {
  margin-bottom: 28px;
}

.quote-dialog .form-status:empty {
  display: none;
}

/* v25: brand logos (mark + wordmark) stand in for the technology names */
.tech-list dt {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.tech-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--charcoal);
  font-size: 22px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.01em;
}

.tech-logo svg {
  flex: none;
  width: 30px;
  height: 30px;
  fill: var(--logo);
}

@media (max-width: 600px) {
  .tech-list dt {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px 24px;
    margin-bottom: 6px;
  }

  .tech-logo {
    font-size: 19px;
  }

  .tech-logo svg {
    width: 26px;
    height: 26px;
  }
}

.tech-logo-wordpress { --logo: #21759b; }
.tech-logo-elementor { --logo: #92003b; }
.tech-logo-html5 { --logo: #e34f26; }
.tech-logo-sanity { --logo: #f03e2f; }
.tech-logo-strapi { --logo: #4945ff; }
.tech-logo-nextjs { --logo: #000000; }

/* v26: Politique de confidentialité - plain legal page, one centered column */
.legal-simple {
  max-width: calc(820px + 2 * var(--pad));
  padding-block: clamp(40px, 5vw, 80px) var(--section-y);
}

.legal-head {
  display: grid;
  gap: 12px;
  margin-bottom: clamp(40px, 4vw, 56px);
}

.legal-head h1 {
  font-size: clamp(34px, 3.4vw, 44px);
}

.legal-updated {
  color: var(--muted);
  font-size: 16px;
}

.legal-section + .legal-section {
  margin-top: 48px;
}

.legal-section h2 {
  margin-bottom: 16px;
  font-size: clamp(22px, 2vw, 26px);
}

.legal-section p,
.legal-list li,
.legal-table td,
.legal-table tbody th {
  color: var(--charcoal);
  font-size: 17px;
  line-height: 1.7;
}

.legal-section > * + * {
  margin-top: 16px;
}

.legal-section strong {
  font-weight: 500;
}

.legal-section a {
  color: var(--petrol-deep);
  text-underline-offset: 3px;
}

.legal-list {
  padding-left: 1.2em;
  list-style: disc;
}

.legal-list li + li {
  margin-top: 6px;
}

.legal-table-wrap {
  overflow-x: auto;
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.legal-table th,
.legal-table td {
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  vertical-align: top;
}

.legal-table thead th {
  font-size: 15px;
  font-weight: 500;
  background: var(--paper);
}

.legal-table tbody th {
  font-weight: 500;
}

.legal-table-4 tbody th,
.legal-table-4 td {
  font-size: 15px;
  line-height: 1.55;
}

@media (max-width: 700px) {
  .legal-section p,
  .legal-list li,
  .legal-table td,
  .legal-table tbody th {
    font-size: 16px;
  }

  /* Tables stack per row so nothing scrolls sideways */
  .legal-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .legal-table,
  .legal-table tbody,
  .legal-table tr,
  .legal-table tbody th,
  .legal-table td {
    display: block;
  }

  .legal-table tr + tr {
    margin-top: 12px;
  }

  .legal-table tbody th {
    background: var(--paper);
  }

  .legal-table td {
    border-top: 0;
  }

  .legal-table td::before {
    content: attr(data-label) "\00a0: ";
    font-weight: 500;
  }
}

/* v27: form sending - hidden spam trap and error under the button */
.form-trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-error:empty {
  display: none;
}

.form-error {
  color: #a3352a;
  font-size: 15px;
  line-height: 1.5;
}

button[type="submit"]:disabled {
  opacity: 0.7;
  cursor: progress;
}

/* v31: technologie bez zdjecia - logo po 2 w rzedzie w miejscu zdjecia (feedback Pauliny 10.11) */
.tech-wall {
  grid-column: 8 / -1;
  grid-row: 2;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(12px, 1.4vw, 20px);
  align-content: start;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tech-wall li {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(110px, 10vw, 150px);
  padding: 20px;
  background: var(--warm-white);
  border: 1px solid var(--line);
}

.tech-wall .tech-logo {
  font-size: clamp(20px, 1.8vw, 26px);
}

.tech-wall .tech-logo svg {
  width: clamp(32px, 2.8vw, 42px);
  height: clamp(32px, 2.8vw, 42px);
}

@media (max-width: 900px) {
  .tech-wall {
    grid-column: 1 / -1;
    grid-row: auto;
    max-width: 560px;
  }
}

/* W liscie same nazwy - logo sa w kafelkach po prawej */
.tech-list .tech-logo svg {
  display: none;
}

/* v35: zdjecie w makiecie ma stala wysokosc jak w v34 (nie rosnie z dlugoscia tekstu obok) */
.ls-hero {
  align-items: start;
}
.ls-hero img {
  height: 383px;
}
@media (max-width: 900px) {
  .ls-hero img {
    height: 445px;
  }
}
@media (max-width: 767px) {
  .ls-hero img {
    height: 170px;
  }
}
