/* ------------------------------------------------------------
   Tomek Grzechowski — Personal Site (Static)
   Design goals: ultra-clean, enterprise-grade, fast, accessible.
------------------------------------------------------------- */

/* Fonts */
:root { 
  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;

  /* Light theme (default) */
  --bg: #f6f7f9;
  --bg2: #ffffff;
  --surface: #ffffff;
  --surface2: #f1f3f6;
  --text: #0b1220;
  --muted: #4b5565;
  --muted2: #6b7280;
  --border: rgba(15, 23, 42, 0.12);
  --shadow: 0 10px 30px rgba(0,0,0,0.10);
  --shadow2: 0 6px 18px rgba(2, 8, 20, 0.10);

  --accent: #1c4ed8;       /* navy/blue */
  --accent2: #0b2a6f;      /* deeper navy */
  --ring: rgba(28, 78, 216, 0.35);

  --radius: 18px;
  --radius2: 26px;

  --container: 1120px;
  --header-h: 70px;

  --hex: polygon(50% 0,100% 24%,100% 76%,50% 100%,0 76%,0 24%);
}

/* Dark theme overrides */
html[data-theme="dark"] {
  --bg: #070b12;
  --bg2: #0b1220;
  --surface: rgba(255,255,255,0.06);
  --surface2: rgba(255,255,255,0.04);
  --text: #e7edf8;
  --muted: #b6c0d3;
  --muted2: #9aa6bf;
  --border: rgba(231, 237, 248, 0.14);
  --shadow: 0 16px 40px rgba(0,0,0,0.55);
  --shadow2: 0 10px 26px rgba(0,0,0,0.45);

  --accent: #67a2ff;
  --accent2: #2b5cff;
  --ring: rgba(103, 162, 255, 0.40);
}

/* Prefer system theme unless user sets one explicitly (handled by JS).
   This just helps first paint if JS is blocked. */
@media (prefers-color-scheme: dark) {
  html:not([data-theme]) { 
    --bg: #070b12;
    --bg2: #0b1220;
    --surface: rgba(255,255,255,0.06);
    --surface2: rgba(255,255,255,0.04);
    --text: #e7edf8;
    --muted: #b6c0d3;
    --muted2: #9aa6bf;
    --border: rgba(231, 237, 248, 0.14);
    --shadow: 0 16px 40px rgba(0,0,0,0.55);
    --shadow2: 0 10px 26px rgba(0,0,0,0.45);
    --accent: #67a2ff;
    --accent2: #2b5cff;
    --ring: rgba(103, 162, 255, 0.40);
  }
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 20% -10%, rgba(28,78,216,0.12), transparent 60%),
    radial-gradient(900px 500px at 105% 10%, rgba(10,35,90,0.10), transparent 55%),
    linear-gradient(180deg, var(--bg), var(--bg2));
  background-attachment: fixed, fixed, fixed;
  background-repeat: no-repeat;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; }
img { max-width: 100%; height: auto; }
button { font-family: inherit; }

::selection { background: var(--ring); }

/* Accessibility */
.skip-link {
  position: absolute;
  left: -999px;
  top: 10px;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
  box-shadow: var(--shadow2);
  z-index: 1000;
}
.skip-link:focus { left: 12px; }

.container {
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
}

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  backdrop-filter: blur(12px);
  background: color-mix(in srgb, var(--bg2) 74%, transparent);
  border-bottom: 1px solid var(--border);
}

.header__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  text-decoration: none;
}

.brand__mark {
  width: 38px;
  min-width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent2), var(--accent));
  box-shadow: 0 10px 25px rgba(28,78,216,0.25);
  display: grid;
  place-items: center;
}
.brand__mark svg { width: 20px; height: 20px; fill: #fff; opacity: 0.95; }

.brand__text { min-width: 0; }
.brand__name {
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 0.98rem;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.brand__role {
  font-size: 0.84rem;
  color: var(--muted2);
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.social-toggle{
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 86%, transparent);
  color: var(--text);
  display: none;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 1px 0 rgba(255,255,255,0.15) inset;
  transition: transform .15s ease, border-color .15s ease, background .15s ease;
}
.social-toggle:hover{
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--accent) 40%, var(--border));
  background: color-mix(in srgb, var(--surface) 96%, transparent);
}
.social-toggle:focus-visible{ outline: 3px solid var(--ring); outline-offset: 2px; }
.social-toggle svg{ width: 20px; height: 20px; }

.iconbar {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-link {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 86%, transparent);
  display: grid;
  place-items: center;
  text-decoration: none;
  box-shadow: 0 1px 0 rgba(255,255,255,0.15) inset;
  transition: transform .15s ease, border-color .15s ease, background .15s ease;
}
.icon-link:hover { 
  transform: translateY(-1px); 
  border-color: color-mix(in srgb, var(--accent) 40%, var(--border));
  background: color-mix(in srgb, var(--surface) 96%, transparent);
}
.icon-link:focus-visible { outline: 3px solid var(--ring); outline-offset: 2px; }
.icon-link svg { width: 18px; height: 18px; fill: currentColor; opacity: 0.9; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 14px;
  padding: 12px 16px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  text-decoration: none;
  font-weight: 650;
  color: var(--text);
  box-shadow: var(--shadow2);
  transition: transform .15s ease, border-color .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); border-color: color-mix(in srgb, var(--accent) 40%, var(--border)); }
.btn:focus-visible { outline: 3px solid var(--ring); outline-offset: 2px; }
.btn--primary {
  background: linear-gradient(135deg, var(--accent2), var(--accent));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 14px 30px rgba(28,78,216,0.22);
}
.btn--primary:hover { transform: translateY(-1px); filter: brightness(1.02); }

.theme-toggle {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 1px 0 rgba(255,255,255,0.15) inset;
  transition: transform .15s ease, border-color .15s ease;
}
.theme-toggle:hover { transform: translateY(-1px); border-color: color-mix(in srgb, var(--accent) 40%, var(--border)); }
.theme-toggle:focus-visible { outline: 3px solid var(--ring); outline-offset: 2px; }
.theme-toggle svg { width: 20px; height: 20px; fill: currentColor; opacity: 0.92; }

.hero {
  padding: 46px 0 26px;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.18fr 0.82fr;
  gap: 26px;
  align-items: start;
}

.card {
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  border-radius: var(--radius2);
  box-shadow: var(--shadow);
}

.hero__left {
  padding: 34px;
  position: relative;
  overflow: hidden;
}
.hero__left::before {
  content: "";
  position: absolute;
  inset: -2px;
  background: radial-gradient(900px 450px at 10% 10%, rgba(28,78,216,0.16), transparent 55%),
              radial-gradient(800px 450px at 110% 0%, rgba(10,35,90,0.12), transparent 55%);
  pointer-events: none;
}

.hero__left::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../img/bg-1.jpg") center/cover no-repeat;
  opacity: 0.10;
  mix-blend-mode: multiply;
  filter: saturate(0.9) contrast(1.05);
  pointer-events: none;
}
html[data-theme="dark"] .hero__left::after { opacity: 0.06; mix-blend-mode: screen; }

.hero__left > * { position: relative; }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted2);
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
}
.kicker .dot {
  width: 8px; height: 8px; border-radius: 99px;
  background: linear-gradient(135deg, var(--accent2), var(--accent));
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent);
}

.h1 {
  margin: 14px 0 12px;
  font-size: clamp(2.0rem, 2.4vw, 3.1rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
}
.lead {
  margin: 0;
  font-size: 1.07rem;
  line-height: 1.6;
  color: var(--muted);
  max-width: 62ch;
}

.hero__bullets {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}
.hero__bullets li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--muted);
}
.hero__bullets svg { width: 18px; height: 18px; margin-top: 2px; fill: var(--accent); }

.hero__cta {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.hero__right {
  padding: 22px;
  display: grid;
  gap: 14px;
}
.portrait {
  border-radius: var(--radius2);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #000;
  position: relative;
}
.portrait img {
  display: block;
  width: 100%;
  height: auto;
  filter: saturate(1.02) contrast(1.02);
}
.portrait::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(600px 280px at 20% 0%, rgba(255,255,255,0.10), transparent 55%);
  pointer-events: none;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.stat {
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface2) 78%, transparent);
  border-radius: 16px;
  padding: 12px 12px 10px;
}
.stat__k { font-size: 0.78rem; color: var(--muted2); letter-spacing: 0.06em; text-transform: uppercase; }
.stat__v { margin-top: 6px; font-weight: 800; letter-spacing: -0.02em; font-size: 1.05rem; }
.stat__v span { color: var(--muted2); font-weight: 650; font-size: 0.95rem; }

.section {
  padding: 26px 0;
}
.section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}
.h2 {
  margin: 0;
  font-size: 1.3rem;
  letter-spacing: -0.02em;
}
.section__sub {
  margin: 0;
  color: var(--muted2);
  line-height: 1.6;
  max-width: 70ch;
}

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

.tile {
  padding: 18px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  box-shadow: var(--shadow2);
}
.tile h3 { margin: 0 0 8px; font-size: 1.02rem; letter-spacing: -0.01em; }
.tile p { margin: 0; color: var(--muted); line-height: 1.65; }
.tile ul {
  margin: 10px 0 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.7;
}
.badge-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.pill {
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface2) 74%, transparent);
  color: var(--muted);
  border-radius: 999px;
  padding: 8px 10px;
  font-weight: 600;
  font-size: 0.88rem;
}
.pill a {
  color: var(--muted);
  text-decoration: none;
  text-underline-offset: 2px;
}
.pill a:hover { color: var(--accent); text-decoration: underline; }

.callout {
  padding: 22px;
  border-radius: var(--radius2);
  border: 1px solid var(--border);
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent2) 12%, var(--surface) 88%),
                                   color-mix(in srgb, var(--accent) 8%, var(--surface) 92%));
  box-shadow: var(--shadow);
  display: grid;
  gap: 12px;
}
.callout strong { font-size: 1.05rem; letter-spacing: -0.01em; }
.callout p { margin: 0; color: var(--muted); line-height: 1.6; }

hr.sep {
  border: 0;
  height: 1px;
  background: var(--border);
  margin: 0;
}

/* Toptal badge (re-implemented; theme-aware) */

/* Engagement options (products) */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.product {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.product__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.product__metaLeft {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.product__id {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--accent) 26%, var(--border));
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--text);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 800;
}

.product__stage {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.3;
}

.product__price {
  text-align: right;
  line-height: 1.05;
  flex: 0 0 auto;
}

.product__priceFrom,
.product__priceNote {
  display: block;
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 650;
}

.product__priceVal {
  display: block;
  font-size: 1.12rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-top: 2px;
}

.product__titleRow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 2px;
}

.product__icon {
  width: 34px;
  height: 34px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface2) 80%, transparent);
  box-shadow: var(--shadow2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.product__icon svg {
  width: 18px;
  height: 18px;
}

.product__title {
  margin: 0;
  font-size: 1.05rem;
  letter-spacing: -0.015em;
}

.product__desc {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.product__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 2px;
}

.fact {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  font-size: 0.82rem;
  color: var(--muted);
}

.fact strong {
  color: var(--text);
  font-weight: 800;
}

.product__best {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.product__cta {
  margin-top: auto;
}

.section__note {
  margin-top: 12px;
  color: var(--muted);
  line-height: 1.65;
  font-size: 0.95rem;
}

.toptal-badge {
  display: grid;
  place-items: center;
  padding: 8px 0 2px;
}
.toptal-badge__frame {
  padding: 6px;
  background: #25a9ef;
  clip-path: var(--hex);
  border-radius: 2px;
}
.toptal-badge__inner {
  width: 210px;
  padding: 24px 0 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  clip-path: var(--hex);
  box-shadow: 0 28px 50px rgba(6,30,96,.35);
}

/* Light: crisp on white */
html:not([data-theme="dark"]) .toptal-badge__inner,
html[data-theme="light"] .toptal-badge__inner {
  color: #204ecf;
  background:
    radial-gradient(circle at 20% -10%,#00c3ff -80%,#fff 30%),
    radial-gradient(circle at -20% 20%,#00c3ff -80%,#fff 30%),
    radial-gradient(circle at 70% 100%,#00c3ff -80%,#fff 30%),
    radial-gradient(circle at 120% 80%,#00c3ff -80%,#fff 30%);
  background-blend-mode: multiply;
}
html:not([data-theme="dark"]) .toptal-badge__stars path,
html[data-theme="light"] .toptal-badge__stars path { fill: #00c3ff; }
html:not([data-theme="dark"]) .toptal-badge__wordmark path,
html[data-theme="light"] .toptal-badge__wordmark path { fill: #262d3d; }

html[data-theme="dark"] .toptal-badge__inner {
  color: #fff;
  background: linear-gradient(153deg,#0667ff 18%,#204ecf 40%,#0f256e 80%);
}
html[data-theme="dark"] .toptal-badge__stars path { fill: #fff; }
html[data-theme="dark"] .toptal-badge__wordmark path { fill: #fff; }

.toptal-badge__title { margin: 0; font-size: 19px; font-weight: 800; line-height: 1; letter-spacing: 0.02em; }
.toptal-badge__divider { width: 120px; height: 1px; background: #25a9ef; opacity: 0.95; }
.toptal-badge__subtitle { font-size: 16px; opacity: 0.85; margin-bottom: -6px; }
.toptal-badge__cta {
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 20px;
  border-radius: 10px;
  background: #296bff;
  color: #fff;
  font-size: 16px;
  font-weight: 650;
  text-decoration: none;
  text-underline-offset: 2px;
}
.toptal-badge__cta:hover { filter: brightness(1.03); }

/* Footer */
.footer {
  padding: 26px 0 34px;
  border-top: 1px solid var(--border);
  margin-top: 18px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: start;
}
.footer__meta {
  color: var(--muted2);
  line-height: 1.6;
  font-size: 0.95rem;
}
.footer__meta b { color: var(--text); }
.footer__iconbar { justify-content: flex-end; }

/* Responsiveness */
@media (max-width: 980px) {
  .hero__grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__iconbar { justify-content: flex-start; }

  /* Mobile header: collapse social icons into a single Social button */
  .social-toggle { display: grid; }
  .header__actions > .iconbar { display: none; }
  .header__actions[data-social-open="1"] > .iconbar { display: flex; }
  .header__actions[data-social-open="1"] > .social-toggle { display: none; }
}
@media (max-width: 520px) {
  .container { width: min(var(--container), calc(100% - 28px)); }
  .hero__left { padding: 24px; }
  .hero__right { padding: 16px; }
  .btn { width: 100%; }
  .iconbar { gap: 8px; }
  .icon-link { width: 38px; height: 38px; border-radius: 14px; }
  .social-toggle { width: 38px; height: 38px; border-radius: 14px; }
  .theme-toggle { width: 42px; height: 42px; }
  .stats { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: 1fr; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}

/* Testimonials carousel */
.tcarousel{ --gap: 0px; --perView: 1; }
.tcarousel__head{
  display:flex; align-items:center; justify-content:space-between;
  gap:12px; margin: 10px 0 14px;
}
.tcarousel__head--title{ margin: 0 0 16px; }
.tcarousel__hint{ color: var(--muted2); font-size: 0.95rem; }
.tcarousel__controls{ display:flex; align-items:center; gap:10px; }
.tcarousel__btn{
  width:40px; height:40px; border-radius: 12px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(0,0,0,0.02));
  color: var(--fg);
  display:inline-flex; align-items:center; justify-content:center;
  cursor:pointer;
}
.tcarousel__btn:hover{ border-color: rgba(90, 130, 255, 0.45); }
.tcarousel__btn:disabled{ opacity: .45; cursor: default; }
.tcarousel__btn svg{ width:20px; height:20px; }

.tcarousel__dots{
  display:flex; align-items:center; gap:6px;
  max-width: min(520px, 50vw);
  overflow:auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}
.tcarousel__dots::-webkit-scrollbar{ display:none; }
.tcarousel__dot{
  width:8px; height:8px; border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  cursor:pointer;
}
.tcarousel__dot[data-active]{ background: var(--accent); border-color: rgba(90, 130, 255, 0.65); }

.tcarousel__viewport{
  overflow:hidden;
  border-radius: 22px;
}
.tcarousel__track{
  display:flex;
  gap: var(--gap);
  will-change: transform;
  transition: transform 420ms cubic-bezier(.2,.8,.2,1);
  padding: 2px; /* avoid clipping shadow */
}
.testimonial{
  flex: 0 0 100%;
  min-width: 0;
  padding: 26px;
  border-radius: var(--radius2);
  position: relative;
  overflow: hidden;
  /* background-color: rgba(255,215,0,0.1); */
  /* background: linear-gradient(135deg,
    color-mix(in srgb, var(--accent2) 12%, var(--surface) 88%),
    color-mix(in srgb, var(--accent) 8%, var(--surface) 92%)); */
}
.testimonial::before{
  content:"";
  position:absolute;
  left:0;
  top:0;
  bottom:0;
  width:4px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 90%, transparent), color-mix(in srgb, var(--accent2) 80%, transparent));
  opacity: .9;
}
.testimonial__quote{
  font-size: clamp(1.05rem, 0.7rem + 0.6vw, 1.25rem);
  line-height: 1.7;
  color: var(--fg);
  margin: 0 0 14px;
  max-width: 78ch;
}
.testimonial__by{
  display:flex; flex-direction:column;
  gap: 2px;
  color: var(--muted2);
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.testimonial__name{
  font-weight: 750;
  color: var(--fg);
}
.testimonial__role{ font-size: .95rem; color: var(--muted2); }

@media (max-width: 640px){
  .tcarousel__head{ align-items:flex-start; flex-direction:column; }
  .tcarousel__controls{ width:100%; justify-content:space-between; }
  .tcarousel__dots{ max-width: 100%; }
}

.partner-cta{
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;      /* klucz: ładnie zawija */
  margin-top: 14px;
}

.partner-cta .btn{
  white-space: nowrap;  /* żeby tekst w środku nie łamał się dziwnie */
}

.btn__icon{
  vertical-align: -4px; /* możesz też dać 0 i oprzeć się na flex */
  margin-left: 8px;
}

/* opcjonalnie: na bardzo małych ekranach zrób 2 przyciski jeden pod drugim */
@media (max-width: 520px){
  .partner-cta{
    margin: 0 2em;
    flex-direction: column;
    align-items: stretch;
  }
  .partner-cta .btn{
    justify-content: center; /* jeśli .btn ma display:flex */
    width: 100%;
  }
  .cta-sep {
    text-align: center;
    flex-direction: column;
  }
}
