/* ==========================================================================
   ekwords.com – one stylesheet for the whole site
   --------------------------------------------------------------------------
   1. Fonts (self-hosted, no Google Fonts requests)
   2. Design tokens
   3. Base and typography
   4. Buttons and links
   5. Site header, navigation, language switch
   6. Sections and shared layout helpers
   7. Hero with the "before → after" panel (coaching + portfolio)
   8. Coaching page
   9. Portfolio page
  10. Document pages (case studies, privacy policy, terms)
  11. Site footer
  12. Cookie banner and cookie settings dialog
  13. Utilities
  14. Responsive rules
   ========================================================================== */


/* 1. Fonts ---------------------------------------------------------------- */
/* Licences: assets/fonts/OFL-*.txt (SIL Open Font License 1.1).
   Subset: Latin + Latin Extended-A (covers Polish). */
@font-face {
  font-family: "DM Serif Display";
  src: url("../fonts/dm-serif-display-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Schibsted Grotesk";
  src: url("../fonts/schibsted-grotesk-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Schibsted Grotesk";
  src: url("../fonts/schibsted-grotesk-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Schibsted Grotesk";
  src: url("../fonts/schibsted-grotesk-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Schibsted Grotesk";
  src: url("../fonts/schibsted-grotesk-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}


/* 2. Design tokens -------------------------------------------------------- */
:root {
  --bg: #F4F6F3;          /* page background */
  --paper: #FFFFFF;       /* light sections, cards */
  --ink: #0E3F41;         /* headings, dark sections, primary buttons */
  --ink-hover: #082A2B;
  --text: #3F5457;        /* body text */
  --soft: #5A6D6F;        /* secondary text */
  --line: #CDD8D4;        /* borders, dividers */
  --lime: #D8F26A;        /* accent, highlights */
  --lime-hover: #E6FA8E;
  --teal: #2F7D6B;        /* links, third colour */
  --on-dark: #B9CBC6;     /* body text on --ink */
  --on-dark-line: rgba(255, 255, 255, 0.2);
  --focus-ring: rgba(47, 125, 107, 0.25);

  --font-sans: "Schibsted Grotesk", system-ui, sans-serif;
  --font-serif: "DM Serif Display", Georgia, serif;

  --radius: 6px;
  --radius-lg: 8px;
  --wrap: 1180px;         /* coaching + portfolio */
  --wrap-narrow: 960px;   /* case studies + legal pages */
  --gutter: 32px;
}


/* 3. Base and typography -------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.5;
}

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

a { color: var(--teal); text-decoration-color: var(--teal); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.wrap--narrow { max-width: var(--wrap-narrow); }

.serif { font-family: var(--font-serif); font-weight: 400; }

.h2 {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2rem, 3.6vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-wrap: balance;
}
.h3 {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 1.625rem;
  line-height: 1.15;
  color: var(--ink);
}
.h3--lg { font-size: 2rem; }
.h3--sm { font-size: 1.375rem; }

.lead { margin: 0; max-width: 62ch; font-size: 1.25rem; line-height: 1.55; color: var(--text); }
.body { margin: 0; max-width: 62ch; font-size: 1.0625rem; line-height: 1.6; color: var(--text); }
.body--lg { font-size: 1.1875rem; }
.small { font-size: 0.9375rem; color: var(--soft); }
.tag { font-size: 0.9375rem; font-weight: 600; color: var(--teal); }

/* Small label above a heading (e.g. "Twój cel", "Formaty i ceny") */
.eyebrow { margin: 0; font-size: 0.9375rem; font-weight: 600; letter-spacing: 0.02em; color: var(--teal); }
.eyebrow--lime { color: var(--lime); }
.eyebrow--ink { color: var(--ink); }

.list {
  margin: 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 1.0625rem;
  line-height: 1.5;
}

/* Lime "marker" highlight behind a word or phrase */
.hl {
  padding: 0 3px;
  background-image: linear-gradient(var(--lime), var(--lime));
  background-repeat: no-repeat;
  background-position: 0 88%;
  background-size: 100% 38%;
}


/* 4. Buttons and links ---------------------------------------------------- */
.btn,
.btn-line {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  border-radius: var(--radius);
  font-family: inherit;
  font-weight: 600;
  font-size: 1.0625rem;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
.btn {
  padding: 0 26px;
  border: 0;
  background: var(--ink);
  color: #FFFFFF;
  transition: background 0.2s ease;
}
.btn:hover { background: var(--ink-hover); color: #FFFFFF; }
.btn--lime { background: var(--lime); color: var(--ink); }
.btn--lime:hover { background: var(--lime-hover); color: var(--ink); }

.btn-line {
  padding: 0 24px;
  border: 1.5px solid var(--ink);
  background: transparent;
  color: var(--ink);
}
.btn-line:hover { background: var(--paper); }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.text-link { font-weight: 600; }


/* 5. Site header, navigation, language switch ----------------------------- */
.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--radius);
  background: var(--ink);
  color: #FFFFFF;
  font-weight: 600;
}
.skip-link:focus { top: 12px; }

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 22px;
  padding-bottom: 22px;
}
.brand { display: flex; flex-direction: column; color: var(--ink); text-decoration: none; }
.brand-name { font-family: var(--font-serif); font-size: 1.625rem; line-height: 1; }
.brand-name--sm { font-size: 1.375rem; }
.brand-tagline { margin-top: 4px; font-size: 0.875rem; color: var(--soft); }

.back-link { color: var(--ink); font-weight: 500; text-decoration: none; }
.back-link:hover { text-decoration: underline; }

.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; }
.nav a {
  padding: 10px 0;
  border-bottom: 2px solid transparent;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
}
.nav a:hover { border-bottom-color: var(--lime); color: var(--ink); }
/* "Portfolio UX →" – visually separated, different colour */
.nav a.nav-work {
  padding-left: 22px;
  border-left: 1px solid var(--line);
  color: var(--teal);
  font-weight: 600;
}
.nav a.nav-work:hover { color: var(--ink); border-bottom-color: var(--lime); }
.nav a.nav-quiet { font-size: 0.9375rem; color: var(--soft); }

/* PL / EN switch: two links, the current one is filled */
.lang { display: flex; gap: 6px; }
.nav .lang a,
.lang a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 40px;
  padding: 0;
  border: 1.5px solid var(--ink);
  border-radius: var(--radius);
  background: #FFFFFF;
  color: var(--ink);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
}
.nav .lang a[aria-current="page"],
.lang a[aria-current="page"] { background: var(--ink); color: #FFFFFF; }
.nav .lang a:hover { border-bottom-color: var(--ink); }


/* 6. Sections and shared layout helpers ----------------------------------- */
.sec { padding-top: 104px; padding-bottom: 104px; }
.section--paper { background: var(--paper); }
.section--lime { background: var(--lime); }
.dark { background: var(--ink); color: #FFFFFF; }
.dark .h2,
.dark .h3 { color: #FFFFFF; }
.dark .body,
.dark .lead { color: var(--on-dark); }

.rule { border-top: 1.5px solid var(--ink); }

/* Vertical stacks with a fixed gap */
.stack { display: flex; flex-direction: column; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-14 { gap: 14px; }
.gap-18 { gap: 18px; }
.gap-20 { gap: 20px; }
.gap-24 { gap: 24px; }
.gap-28 { gap: 28px; }
.gap-32 { gap: 32px; }
.gap-40 { gap: 40px; }
.gap-48 { gap: 48px; }
.gap-56 { gap: 56px; }

/* Text block next to a photo (About sections) */
.about { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 56px; }
.about-photo { flex: 0 1 300px; min-width: 240px; }
.portrait {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--teal);
}
.portrait img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.about-text { flex: 1 1 480px; display: flex; flex-direction: column; }

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 24px;
  margin-top: 14px;
  padding-top: 24px;
}
.stat { display: flex; flex-direction: column; gap: 6px; }
.stat-value { font-family: var(--font-serif); font-size: 2.5rem; line-height: 1; color: var(--ink); }
.stat-label { font-size: 1rem; color: var(--soft); }


/* 7. Hero with the "before → after" panel --------------------------------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center;
  gap: 64px;
  padding-top: 64px;
  padding-bottom: 104px;
}
.hero-copy { display: flex; flex-direction: column; gap: 28px; }
.hero-title {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2.75rem, 4.5vw, 4.125rem);
  line-height: 1.02;
  letter-spacing: -0.015em;
  color: var(--ink);
  text-wrap: balance;
}
.hero-meta { margin-top: -16px; font-size: 0.9375rem; color: var(--soft); }
.hero-figure { margin: 0; display: flex; flex-direction: column; gap: 14px; }
.hero-caption { font-size: 0.9375rem; line-height: 1.5; color: var(--soft); }

.panel {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 32px 36px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: 0 1px 0 var(--line), 0 24px 48px -28px rgba(14, 63, 65, 0.35);
}
.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  font-size: 0.9375rem;
  color: var(--soft);
}
.panel-head b { color: var(--ink); font-weight: 600; }
.panel-controls { display: flex; align-items: center; gap: 10px; }
.panel-pause {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
}
.panel-pause:hover { border-color: var(--ink); }
.panel-pause svg { width: 12px; height: 12px; fill: currentColor; }

.examples { min-height: 240px; display: flex; flex-direction: column; }
.ex { display: flex; flex-direction: column; gap: 14px; }
.ex[hidden] { display: none; }
.before { margin: 0; font-size: clamp(1.0625rem, 1.4vw, 1.25rem); line-height: 1.45; color: var(--soft); }
.before s {
  text-decoration: none;
  background-image: linear-gradient(var(--teal), var(--teal));
  background-repeat: no-repeat;
  background-position: 0 58%;
  background-size: 100% 2px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.after {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 2.5vw, 2.375rem);
  line-height: 1.15;
  color: var(--ink);
  text-wrap: balance;
}
.after .txt {
  padding: 0 4px;
  background-image: linear-gradient(var(--lime), var(--lime));
  background-repeat: no-repeat;
  background-position: 0 88%;
  background-size: 100% 38%;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.caret {
  display: inline-block;
  width: 3px;
  height: 0.85em;
  margin-left: 4px;
  vertical-align: -0.08em;
  background: var(--ink);
  animation: blink 1s step-end infinite;
}

/* Progress bars under the examples – buttons created by rotator.js */
.dots { display: flex; gap: 8px; }
.dot {
  flex: 1;
  display: flex;
  align-items: center;
  min-height: 24px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.dot span {
  position: relative;
  display: block;
  width: 100%;
  height: 3px;
  overflow: hidden;
  border-radius: 2px;
  background: var(--line);
}
.dot span i {
  position: absolute;
  inset: 0;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
}
.dot:hover span { background: #B5C4BF; }

@keyframes blink { 50% { opacity: 0; } }
@keyframes exStrike { from { background-size: 0 2px; } to { background-size: 100% 2px; } }
@keyframes exType { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes exHl { from { background-size: 0 38%; } to { background-size: 100% 38%; } }
@keyframes exIn { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: no-preference) {
  .ex { animation: exIn 0.35s ease both; }
  .ex .before s { animation: exStrike 0.6s 0.3s ease both; }
  .ex .after { animation: exType 1.1s 1s steps(40, end) both; }
  .ex .after .txt { animation: exHl 0.4s 2.2s ease both; }
}
@media (prefers-reduced-motion: reduce) { .caret { animation: none; } }


/* 8. Coaching page -------------------------------------------------------- */
.goal {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 2fr;
  align-items: baseline;
  gap: 32px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
}
.goal:last-child { border-bottom: 1px solid var(--line); }

.cards-2 { display: flex; flex-wrap: wrap; gap: 20px; }
.card {
  flex: 1 1 400px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: clamp(24px, 4vw, 40px);
  border-radius: var(--radius);
}
.card--ink { background: var(--ink); color: #FFFFFF; }
.card--teal { background: var(--teal); color: #FFFFFF; }
.card .h3 { color: #FFFFFF; }
.card p { margin: 0; font-size: 1.0625rem; line-height: 1.6; }
.card--ink p { color: var(--on-dark); }
.note-strong { font-weight: 600; color: var(--ink); }

.ai { display: grid; grid-template-columns: 1fr; gap: 48px 40px; }
.ai-item { display: flex; flex-direction: column; gap: 12px; padding-top: 20px; border-top: 1.5px solid var(--lime); }
.ai-item .h3 { color: var(--lime); }

.intro-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 48px; }
.intro-text { flex: 1 1 520px; display: flex; flex-direction: column; gap: 18px; color: var(--ink); }
.intro-text .lead { color: var(--ink); }
.intro-cta { flex: 0 1 auto; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.intro-cta span { font-size: 0.9375rem; color: var(--ink); }

.pk { display: grid; grid-template-columns: 1fr; gap: 48px 40px; }
.pk-item { display: flex; flex-direction: column; gap: 12px; padding-top: 24px; border-top: 1.5px solid var(--ink); }
.pk-item .list { color: var(--text); }
.price { margin: 6px 0 0; font-family: var(--font-serif); font-size: 2.75rem; line-height: 1; color: var(--ink); }
.price-unit { font-family: var(--font-sans); font-size: 1rem; color: var(--soft); }
@supports (grid-template-rows: subgrid) {
  /* keep titles, prices and texts aligned across the four packages */
  .pk-item { display: grid; grid-row: span 5; grid-template-rows: subgrid; row-gap: 12px; align-content: start; }
  .ai-item { display: grid; grid-row: span 2; grid-template-rows: subgrid; row-gap: 12px; align-content: start; }
}
.prices-note { max-width: none; font-size: 0.9375rem; }

.firm {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(24px, 4vw, 40px);
  border-radius: var(--radius);
  background: var(--teal);
  color: #FFFFFF;
}
.firm-text { flex: 1 1 440px; display: flex; flex-direction: column; gap: 10px; }
.firm .h3 { color: #FFFFFF; }
.firm p { margin: 0; font-size: 1.0625rem; line-height: 1.6; }

.contact-cards { display: flex; flex-wrap: wrap; align-items: stretch; gap: 24px; }
.contact-book,
.contact-write {
  flex: 1 1 420px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: clamp(28px, 4vw, 44px);
  border-radius: var(--radius);
}
.contact-book { align-items: flex-start; gap: 16px; background: var(--lime); color: var(--ink); }
.contact-book .h3,
.contact-book .body { color: var(--ink); }
.contact-book .btn { margin-top: auto; }
.contact-write { gap: 8px; border: 1px solid var(--on-dark-line); }
.contact-write .h3 { margin-bottom: 8px; }
.contact-link {
  padding: 14px 0;
  border-top: 1px solid var(--on-dark-line);
  color: #FFFFFF;
  font-size: 1.25rem;
  font-weight: 600;
  text-decoration: none;
}
.contact-link:hover { text-decoration: underline; }
.contact-link--sm { font-size: 1.0625rem; font-weight: 500; border-bottom: 1px solid var(--on-dark-line); }
.contact-note { margin: 8px 0 0; font-size: 0.9375rem; color: var(--on-dark); }


/* 9. Portfolio page ------------------------------------------------------- */
.key-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  padding-top: 40px;
  padding-bottom: 40px;
}
.key-facts .stat-label { font-size: 1.0625rem; }

.svc { display: grid; grid-template-columns: 1fr; gap: 20px; }
.svc-core {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: clamp(24px, 3vw, 36px);
  border-radius: var(--radius);
  background: var(--ink);
  color: #FFFFFF;
}
.svc-core .tag { color: var(--lime); }
.svc-core .h3 { color: #FFFFFF; }
.svc-core p { margin: 0; font-size: 1.0625rem; line-height: 1.6; color: var(--on-dark); }
.svc-how { display: grid; grid-template-columns: 1fr; gap: 20px; }
.svc-item { display: flex; flex-direction: column; gap: 12px; padding-top: 24px; border-top: 1.5px solid var(--ink); }

.cases { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
a.case {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--ink);
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
a.case:hover { border-color: var(--ink); transform: translateY(-2px); }
.case .more { margin-top: auto; font-weight: 600; color: var(--teal); }

.work {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
  align-items: start;
  gap: 48px;
  padding: 48px 0;
  border-top: 1px solid var(--line);
}
.work:last-child { border-bottom: 1px solid var(--line); }
.work-text { display: flex; flex-direction: column; gap: 12px; }

/* Thumbnails of work samples */
.shots { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 16px; }
.shots figure { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.shots img {
  display: block;
  width: auto;
  max-width: 100%;
  height: 200px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--paper);
}
.shots figcaption { font-size: 0.8125rem; color: var(--soft); }
.shots a img { transition: transform 0.15s ease, border-color 0.15s ease; }
.shots a:hover img,
.shots a:focus-visible img { border-color: var(--ink); transform: translateY(-2px); }

/* Phone frame drawn in CSS around landing-page screenshots */
.phone {
  position: relative;
  display: block;
  width: 136px;
  padding: 5px;
  border-radius: 26px;
  background: #0B0E0F;
  box-shadow: 0 0 0 2px #4A5557, 0 0 0 3px #1E2526, 0 10px 24px rgba(14, 63, 65, 0.22);
  transition: transform 0.15s ease;
}
.phone::before { /* front camera */
  content: "";
  position: absolute;
  top: 10px;
  left: 50%;
  z-index: 1;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #0B0E0F;
  box-shadow: inset 0 0 0 1.5px #22292B;
  transform: translateX(-50%);
}
.phone::after { /* side buttons */
  content: "";
  position: absolute;
  top: 78px;
  right: -5px;
  width: 3px;
  height: 34px;
  border-radius: 0 2px 2px 0;
  background: #4A5557;
  box-shadow: 0 -46px 0 #4A5557;
}
.shots .phone img { width: 100%; height: auto; border: 0; border-radius: 21px; background: #000000; transform: none; }
.shots a:hover .phone,
.shots a:focus-visible .phone { transform: translateY(-2px); }

.links { display: flex; flex-direction: column; font-weight: 500; }
.links a { padding: 12px 0; border-top: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.links a:last-child { border-bottom: 1px solid var(--line); }
.links a:hover { color: var(--teal); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips span {
  padding: 8px 14px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  font-size: 0.9375rem;
  font-weight: 500;
}

/* Recommendations */
.rec-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; }
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px; }
.rec { margin: 0; display: flex; flex-direction: column; gap: 18px; padding-top: 24px; border-top: 1.5px solid var(--ink); }
.rec blockquote { margin: 0; font-size: 1.3125rem; line-height: 1.38; color: var(--ink); }
.rec figcaption { display: flex; flex-direction: column; gap: 4px; margin-top: auto; font-size: 0.9375rem; color: var(--soft); }
.rec a.who { color: var(--ink); font-weight: 600; text-decoration: none; }
.rec a.who:hover { color: var(--teal); text-decoration: underline; }
.rec--feat { padding: clamp(28px, 4vw, 48px); border-top: 0; border-radius: var(--radius); background: var(--ink); }
.rec--feat blockquote { max-width: 34ch; color: #FFFFFF; font-size: clamp(1.5rem, 2.6vw, 2.125rem); line-height: 1.3; }
.rec--feat figcaption { color: var(--on-dark); }
.rec--feat a.who { color: var(--lime); }
.rec--feat a.who:hover { color: #FFFFFF; }

.cv-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 32px; }
.cv-col { display: flex; flex-direction: column; gap: 14px; padding-top: 20px; }
.cv-col span { color: var(--text); }

.work-contact { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 56px; }
.work-contact-text { flex: 1 1 560px; display: flex; flex-direction: column; gap: 24px; }
.work-contact-title { font-size: clamp(2.5rem, 5vw, 4rem); }
.work-contact-links { flex: 0 1 320px; display: flex; flex-direction: column; font-size: 1.0625rem; font-weight: 500; }
.work-contact-links a,
.work-contact-links span { padding: 16px 0; border-top: 1px solid var(--on-dark-line); color: #FFFFFF; text-decoration: none; }
.work-contact-links a:hover { text-decoration: underline; }
.work-contact-links span { border-bottom: 1px solid var(--on-dark-line); color: var(--on-dark); }


/* 10. Document pages (case studies, privacy policy, terms) ---------------- */
.doc { display: flex; flex-direction: column; gap: 32px; padding-top: 40px; padding-bottom: 96px; }
.doc-title {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  line-height: 1.04;
  text-wrap: balance;
}
.doc-title--legal { font-size: clamp(2.5rem, 5vw, 3.5rem); line-height: 1.05; }
.doc .lead { font-size: 1.3125rem; }
.doc-date { margin: 0; font-size: 0.9375rem; color: var(--soft); }

.meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; padding-top: 20px; border-top: 1.5px solid var(--ink); }
.meta div { display: flex; flex-direction: column; gap: 4px; font-size: 1rem; line-height: 1.45; color: var(--text); }
.meta b { color: var(--ink); font-size: 0.875rem; text-transform: uppercase; letter-spacing: 0.06em; }

.doc-sec { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 32px; padding: 36px 0; border-top: 1px solid var(--line); }
.doc-sec h2 { margin: 0; font-family: var(--font-serif); font-weight: 400; font-size: 1.625rem; line-height: 1.15; }
.doc-sec p,
.doc-sec li { margin: 0; font-size: 1.0625rem; line-height: 1.65; color: var(--text); }
.doc-sec ol,
.doc-sec ul { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.col { display: flex; flex-direction: column; gap: 14px; }

.doc .shots { gap: 24px; align-items: flex-start; }
.doc .shots img { width: auto; height: auto; max-width: 100%; max-height: 420px; }
.doc .shots figcaption { font-size: 0.875rem; }

.quote { margin: 16px 0 0; display: flex; flex-direction: column; gap: 16px; padding: clamp(24px, 4vw, 40px); border-radius: var(--radius); background: var(--ink); color: #FFFFFF; }
.quote blockquote { margin: 0; font-family: var(--font-serif); font-size: 1.5rem; line-height: 1.35; }
.quote figcaption { font-size: 0.9375rem; color: var(--on-dark); }
.quote a { color: #FFFFFF; }

.boxed { padding: 16px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.boxed-form { display: flex; flex-direction: column; gap: 12px; padding: 20px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }

.tblwrap { overflow-x: auto; }
.doc-sec table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; line-height: 1.45; color: var(--text); }
.doc-sec th,
.doc-sec td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.doc-sec th { background: var(--paper); color: var(--ink); font-weight: 600; }

.doc-nav { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-top: 24px; border-top: 1.5px solid var(--ink); font-weight: 600; }


.doc-sec .ink,
.ink { color: var(--ink); }
.small-text { font-size: 0.9375rem; }
.label { color: var(--ink); font-size: 0.875rem; text-transform: uppercase; letter-spacing: 0.06em; }
.result-figure { font-family: var(--font-serif); font-size: 2.25rem; line-height: 1.1; color: var(--ink); }
.doc-sec p.result-figure { font-size: 2.25rem; line-height: 1.1; color: var(--ink); }
.doc .img-h300 { max-height: 300px; }
.doc .img-h360 { max-height: 360px; }
.doc .img-h520 { max-height: 520px; }
.mt-10 { margin-top: 10px; }
.doc-sec ol.mt-10 { margin-top: 10px; }

/* Small diagrams inside case studies (source -> formats; before vs proposed) */
.flow { display: flex; flex-direction: column; gap: 14px; margin-top: 8px; }
.fsource { padding: 18px 22px; border-radius: var(--radius); background: var(--ink); color: #FFFFFF; }
.fsource-label { font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--lime); }
.fsource-title { font-size: 1.375rem; }
.fgrid { display: grid; gap: 12px; }
.fgrid--220 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.fgrid--160 { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.fbox { padding: 14px 16px; border: 1.5px solid var(--ink); border-radius: var(--radius); background: var(--paper); }
.fbox--dashed { border-style: dashed; }
.card-note { font-size: 0.9375rem; color: var(--text); }
.compare { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.compare-box { padding: 16px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.compare-box--new { border: 1.5px solid var(--ink); }
.mt-72 { margin-top: 72px; }


/* 11. Site footer --------------------------------------------------------- */
.site-footer { border-top: 1px solid rgba(255, 255, 255, 0.12); background: var(--ink); color: var(--on-dark); }
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 24px;
  padding-bottom: 24px;
  font-size: 0.875rem;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-links a { color: #FFFFFF; }


/* 12. Cookie banner and cookie settings dialog ---------------------------- */
/* Markup is created by assets/js/consent.js */
.cb {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 1000;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px 32px;
  width: min(1000px, calc(100% - 32px));
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  padding: 24px 28px;
  border-radius: var(--radius-lg);
  background: var(--ink);
  color: #FFFFFF;
  box-shadow: 0 16px 40px rgba(14, 63, 65, 0.28);
  transform: translateX(-50%);
}
.cb[hidden] { display: none; }
.cb-text { flex: 1 1 460px; display: flex; flex-direction: column; gap: 8px; }
.cb-title { margin: 0; font-family: var(--font-serif); font-size: 1.375rem; font-weight: 400; }
.cb p { margin: 0; font-size: 0.9875rem; line-height: 1.55; color: var(--on-dark); }
.cb a { color: #FFFFFF; }
.cb-actions { flex: 0 1 auto; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }

.cb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1.5px solid var(--ink);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
}
.cb-accept { border-color: var(--lime); background: var(--lime); color: var(--ink); }
.cb-accept:hover { background: var(--lime-hover); }
.cb-reject { background: #FFFFFF; color: var(--ink); }
.cb-save { background: var(--ink); color: #FFFFFF; }
.cs .cb-accept { border-color: var(--ink); }
.cb-link {
  padding: 12px 6px;
  border: 0;
  background: transparent;
  color: #FFFFFF;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

/* Settings: native <dialog> (focus trap and Esc handled by the browser) */
.cs {
  width: min(620px, calc(100% - 32px));
  max-height: calc(100vh - 32px);
  padding: 28px;
  border: 0;
  border-radius: var(--radius-lg);
  background: #FFFFFF;
  color: var(--ink);
  box-shadow: 0 20px 50px rgba(14, 63, 65, 0.3);
}
.cs::backdrop { background: rgba(14, 63, 65, 0.45); }
.cs-inner { display: flex; flex-direction: column; gap: 18px; }
.cs-title { margin: 0; font-family: var(--font-serif); font-size: 1.75rem; font-weight: 400; }
.cs-intro { margin: 0; font-size: 0.9375rem; line-height: 1.55; color: var(--text); }
.cs-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.cs-row b { display: block; margin-bottom: 4px; }
.cs-row p { margin: 0; font-size: 0.9375rem; line-height: 1.5; color: var(--text); }
.cs-actions { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 18px; border-top: 1px solid var(--line); }

.sw {
  position: relative;
  flex: 0 0 auto;
  width: 48px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 14px;
  background: #B9C6C2;
  cursor: pointer;
  transition: background 0.15s;
}
.sw span {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #FFFFFF;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  transition: transform 0.15s;
}
.sw[aria-checked="true"] { background: var(--teal); }
.sw[aria-checked="true"] span { transform: translateX(20px); }
.sw:disabled { cursor: not-allowed; opacity: 0.6; }

.cb-toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 1000;
  padding: 14px 20px;
  border-radius: var(--radius-lg);
  background: var(--ink);
  color: #FFFFFF;
  font-size: 0.9375rem;
  transform: translateX(-50%);
}
.cb-toast[hidden] { display: none; }


/* 13. Utilities ----------------------------------------------------------- */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}


/* 14. Responsive rules ---------------------------------------------------- */
@media (min-width: 640px) {
  .ai,
  .pk { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 900px) {
  .svc,
  .svc-how { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1080px) {
  .ai,
  .pk { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; gap: 40px; }
  .work { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 760px) {
  .sec { padding-top: 72px; padding-bottom: 72px; }
  .goal { grid-template-columns: 1fr; gap: 12px; }
  .panel { padding: 24px 20px; }
  .examples { min-height: 280px; }
  .shots img { height: 150px; }
  .phone { width: 120px; border-radius: 23px; }
  .shots .phone img { border-radius: 18px; }
  .shots figure.phone-fig { width: 140px; }
  .doc-sec { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .doc-sec table { min-width: 560px; }
}
@media (max-width: 640px) {
  :root { --gutter: 20px; }
  /* Coaching header: keep the brand, the portfolio link and PL/EN on one row */
  .site-header { flex-wrap: nowrap; }
  .nav { flex-wrap: nowrap; gap: 12px; }
  .nav a.hide-m { display: none; }
  .nav a.nav-work { padding-left: 0; border-left: 0; font-size: 0.9375rem; white-space: nowrap; }
  .btn,
  .btn-line { width: 100%; padding: 12px 20px; }
  .cb { bottom: 12px; padding: 20px; }
  .cb .cb-btn { flex: 1 1 100%; }
}
@media (max-width: 400px) {
  .brand-tagline { display: none; }
  .brand-name { font-size: 1.375rem; white-space: nowrap; }
  .nav .lang a { min-width: 40px; }
}
