/* ==================== ZMIENNE / THEME ==================== */
:root {
  --bg: #0d0f10;
  --panel: #15181a;
  --panel-2: #292419;
  --paper: #f3f1eb;
  --ink: #121516;
  --muted: #81888b;
  --muted-light: #c6c9c7;
  --line: rgba(255,255,255,.12);
  --accent: #f0ad2c;
  --accent-2: #ffd164;
  --ok: #8fe388;
  --shadow: 0 24px 80px rgba(0,0,0,.24);
  --radius: 24px;
  --max: 1220px;
  --header: 78px;
}

/* ==================== RESET / BAZA ==================== */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  background: var(--bg);
  color: #fff;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

body.light-section {
  background: var(--paper);
  color: var(--ink);
}

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

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

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

button {
  cursor: pointer;
}

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

.section {
  padding: 110px 0;
}

.section-sm {
  padding: 72px 0;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .74rem;
  font-weight: 800;
  color: var(--accent);
}

.eyebrow:before {
  content: "";
  width: 30px;
  height: 2px;
  background: currentColor;
}

.display {
  font-size: clamp(3.1rem,7vw,7.4rem);
  line-height: .88;
  letter-spacing: -.065em;
  margin: .1em 0 .3em;
  font-weight: 900;
}

.display .outline {
  -webkit-text-stroke: 1px rgba(255,255,255,.45);
  color: transparent;
}

.h2 {
  font-size: clamp(2.25rem,4.3vw,4.9rem);
  line-height: .95;
  letter-spacing: -.055em;
  margin: 0;
  font-weight: 900;
}

.h3 {
  font-size: clamp(1.35rem,2vw,2rem);
  line-height: 1.05;
  letter-spacing: -.03em;
  margin: 0 0 12px;
}

.lead {
  font-size: clamp(1.05rem,1.5vw,1.27rem);
  color: var(--muted-light);
  max-width: 720px;
}

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

.paper .lead,.paper .muted {
  color: #5e6464;
}

.paper {
  background: var(--paper);
  color: var(--ink);
}

.dark {
  background: var(--bg);
  color: #fff;
}

.grid {
  display: grid;
  gap: 24px;
}

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

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

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

.stack {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.between {
  justify-content: space-between;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 800;
  transition: .25s ease;
}

.btn svg {
  width: 18px;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 34px rgba(240,173,44,.22);
}

.btn-primary:hover {
  transform: translateY(-2px);
  background: #f6be52;
}

.btn-outline {
  border-color: rgba(255,255,255,.25);
  background: rgba(255,255,255,.03);
}

.btn-outline:hover {
  background: #fff;
  color: #111;
}

.btn-dark {
  background: #111;
  color: #fff;
}

.btn-dark:hover {
  background: #2a2d2e;
  transform: translateY(-2px);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: .83rem;
  color: #dfe2df;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 5px rgba(143,227,136,.09);
}

/* ==================== HEADER / NAWIGACJA ==================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(13,15,16,.72);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.nav {
  height: var(--header);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 11px;
  font-weight: 950;
  letter-spacing: -.04em;
}

.logo-mark {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 12px;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}

.logo-mark:before {
  content: "";
  width: 22px;
  height: 10px;
  border: 3px solid var(--accent);
  border-top: none;
  transform: skewX(-18deg);
}

.logo small {
  display: block;
  color: #8c9293;
  font-size: .63rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  margin-top: -2px;
}

.menu {
  display: flex;
  align-items: center;
  gap: 6px;
}

.menu>a,.menu-toggle-label {
  padding: 10px 13px;
  border-radius: 12px;
  font-size: .93rem;
  color: #cbd0ce;
  transition: .2s;
}

.menu>a:hover,.menu>a.active,.menu-toggle-label:hover {
  background: rgba(255,255,255,.07);
  color: #fff;
}

.has-menu {
  position: relative;
}

.submenu {
  position: absolute;
  top: 46px;
  left: 0;
  min-width: 255px;
  padding: 10px;
  background: #16191b;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 16px;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: .22s;
}

.has-menu:hover .submenu,.has-menu:focus-within .submenu {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.submenu a {
  display: block;
  padding: 12px;
  border-radius: 10px;
  color: #d7dad8;
}

.submenu a:hover {
  background: #232729;
  color: #fff;
}

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

.nav-phone {
  font-weight: 800;
  font-size: .92rem;
}

.burger {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 14px;
  color: #fff;
}

.burger span {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  margin: 4px auto;
}

/* ==================== HERO ==================== */
.hero {
  min-height: calc(100svh - var(--header));
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 75% 30%,rgba(240,173,44,.12),transparent 27%),linear-gradient(180deg,#0d0f10,#101315);
}

.hero:before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.035) 1px,transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(to right,transparent,black 38%,black);
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: 44px;
  padding: 70px 0;
}

.hero-copy .lead {
  max-width: 650px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.trust-line {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 30px;
  color: #a9afad;
  font-size: .88rem;
}

.trust-line span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.trust-line b {
  color: #fff;
}

.hero-visual {
  position: relative;
  min-height: 560px;
}

.hero-photo {
  position: absolute;
  inset: 30px 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 34px;
  background: #151819;
  box-shadow: var(--shadow);
}

.hero-photo::after{
    background:
        linear-gradient(
            180deg,
            rgba(0,0,0,.12),
            rgba(0,0,0,.22)
        );
}

.hero-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: 50% center;
}

.floating-card {
  position: absolute;
  background: rgba(27,31,33,.86);
  border: 1px solid rgba(255,255,255,.13);
  backdrop-filter: blur(12px);
  border-radius: 18px;
  padding: 16px 18px;
  box-shadow: var(--shadow);
}

.floating-card strong {
  display: block;
  font-size: 1.45rem;
  letter-spacing: -.04em;
}

.floating-card small {
  color: #9ca3a0;
}

.fc-1 {
  left: -22px;
  top: 78px;
}

.fc-2 {
  right: -8px;
  bottom: 74px;
}



/* ==================== METRYKI ==================== */
.metrics {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
}

.metric {
  padding: 28px 24px;
  border-right: 1px solid var(--line);
}

.metric:last-child {
  border-right: 0;
}

.metric strong {
  font-size: clamp(2rem,3vw,3.2rem);
  letter-spacing: -.06em;
}

.metric span {
  display: block;
  color: #8f9694;
  font-size: .86rem;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 48px;
}

.section-head .lead {
  margin: 0;
  max-width: 540px;
}

/* ==================== KARTY USŁUG ==================== */
.service-card {
  position: relative;
  min-height: 330px;
  border: 1px solid rgba(0,0,0,.1);
  border-radius: 26px;
  padding: 28px;
  overflow: hidden;
  background: #fff;
  transition: .3s ease;
}

.service-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 24px 60px rgba(18,21,22,.11);
}

.service-card .icon {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: #111;
  color: #fff;
  display: grid;
  place-items: center;
  margin-bottom: 52px;
}

.service-card .icon svg {
  width: 26px;
  height: 26px;
}

.service-card p {
  color: #6b7170;
  margin: 0;
}

.service-card .arrow {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid #d7dad8;
  display: grid;
  place-items: center;
  transition: .3s;
}

.service-card:hover .arrow {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  transform: rotate(45deg);
}

.service-card .no {
  position: absolute;
  right: 24px;
  bottom: 6px;
  font-size: 5.5rem;
  font-weight: 950;
  color: #f0f0ed;
  line-height: 1;
}

.service-card.accent {
  background: var(--accent);
  color: #fff;
  border-color: transparent;
}

.service-card.accent p {
  color: rgba(255,255,255,.78);
}

.service-card.accent .icon {
  background: #fff;
  color: #111;
}

.service-card.accent .no {
  color: rgba(255,255,255,.11);
}

.service-card.accent .arrow {
  border-color: rgba(255,255,255,.5);
}

/* ==================== PROCES / SEKCJE TREŚCI ==================== */
.process-wrap {
  display: grid;
  grid-template-columns: .75fr 1.25fr;
  gap: 70px;
}

.process-sticky {
  position: sticky;
  top: 130px;
  align-self: start;
}

.process-list {
  border-top: 1px solid var(--line);
}

.process-item {
  display: grid;
  grid-template-columns: 70px 1fr auto;
  gap: 22px;
  align-items: start;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.process-item .num {
  font-weight: 900;
  color: var(--accent);
}

.process-item p {
  color: #989f9d;
  margin: 6px 0 0;
  max-width: 620px;
}

.process-item .tag {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 10px;
  color: #bfc4c2;
  font-size: .75rem;
}

.promo {
  border-radius: 32px;
  background: linear-gradient(135deg,#d89419,var(--accent) 55%,var(--accent-2));
  color: #fff;
  overflow: hidden;
  position: relative;
}

.promo:after {
  content: "";
  position: absolute;
  width: 460px;
  height: 460px;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 50%;
  right: -110px;
  top: -150px;
  box-shadow: 0 0 0 50px rgba(255,255,255,.05),0 0 0 100px rgba(255,255,255,.035);
}

.promo-inner {
  position: relative;
  z-index: 1;
  padding: 58px;
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 30px;
  align-items: end;
}

.promo .h2 {
  max-width: 740px;
}

.promo p {
  max-width: 600px;
  color: rgba(255,255,255,.82);
}

.promo-action {
  text-align: right;
}

.promo .btn {
  background: #111;
  color: #fff;
}

.testimonials {
  overflow: hidden;
}

.quote {
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 28px;
  background: #141719;
}

.stars {
  letter-spacing: .15em;
  color: var(--accent-2);
}

.quote p {
  font-size: 1.04rem;
  color: #d7dbd9;
}

.quote footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #8e9693;
  font-size: .83rem;
}

.faq {
  max-width: 900px;
  margin: auto;
}

.faq-item {
  border-bottom: 1px solid rgba(0,0,0,.13);
}

.faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
  padding: 23px 0;
  border: 0;
  background: transparent;
  font-weight: 850;
  font-size: 1.08rem;
  color: inherit;
}

.faq-q span:last-child {
  font-size: 1.5rem;
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .32s ease;
}

.faq-a p {
  color: #5f6664;
  padding: 0 48px 24px 0;
  margin: 0;
}

.faq-item.open .faq-a {
  max-height: 220px;
}

.faq-item.open .faq-q span:last-child {
  transform: rotate(45deg);
}

.page-hero {
  padding: 88px 0 70px;
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}

.page-hero:after {
  content: "";
  position: absolute;
  inset: auto -100px -300px auto;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  background: radial-gradient(circle,rgba(240,173,44,.18),transparent 65%);
}

.breadcrumbs {
  font-size: .78rem;
  color: #8e9592;
  margin-bottom: 30px;
}

.breadcrumbs a:hover {
  color: #fff;
}

.page-title {
  font-size: clamp(3rem,6vw,6.6rem);
  line-height: .9;
  letter-spacing: -.06em;
  margin: 0 0 26px;
  max-width: 1050px;
}

.page-hero .lead {
  max-width: 760px;
}

.service-detail {
  display: grid;
  grid-template-columns: .7fr 1.3fr;
  gap: 70px;
}

.side-nav {
  position: sticky;
  top: 120px;
  align-self: start;
}

.side-nav a {
  display: flex;
  justify-content: space-between;
  padding: 15px 0;
  border-bottom: 1px solid rgba(0,0,0,.12);
  font-weight: 750;
}

.side-nav a:hover,.side-nav a.active {
  color: var(--accent);
}

.content-rich h2 {
  font-size: clamp(2rem,4vw,3.7rem);
  line-height: 1;
  letter-spacing: -.045em;
  margin: 0 0 18px;
}

.content-rich h3 {
  font-size: 1.45rem;
  margin: 34px 0 8px;
}

.content-rich p,.content-rich li {
  color: #5e6563;
}

.check-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 10px 18px;
  margin: 28px 0;
}

.check-list li {
  padding: 13px 14px;
  border: 1px solid #d7d8d3;
  border-radius: 14px;
  background: #fff;
}

.check-list li:before {
  content: "✓";
  color: var(--accent);
  font-weight: 900;
  margin-right: 10px;
}

.price-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
}

.price-table th,.price-table td {
  padding: 18px 20px;
  text-align: left;
  border-bottom: 1px solid #e3e2de;
}

.price-table th {
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: #7a807e;
}

.price-table td:last-child,.price-table th:last-child {
  text-align: right;
  font-weight: 850;
}

.price-note {
  font-size: .88rem;
  color: #777d7b;
  margin-top: 14px;
}

.team-card {
  background: #fff;
  border: 1px solid #dfded9;
  border-radius: 22px;
  padding: 24px;
}

.avatar {
  height: 260px;
  border-radius: 16px;
  background: linear-gradient(145deg,#17191a,#33393a);
  position: relative;
  overflow: hidden;
  margin-bottom: 18px;
}

.avatar:after {
  content: "";
  position: absolute;
  width: 130px;
  height: 130px;
  border: 22px solid rgba(240,173,44,.72);
  border-radius: 50%;
  right: -24px;
  bottom: -24px;
}

.avatar:before {
  content: "";
  position: absolute;
  left: 28px;
  bottom: 28px;
  width: 55%;
  height: 62%;
  border-radius: 50% 50% 15% 15%;
  background: linear-gradient(#575f61,#232728);
}

/* ==================== BLOG / ARTYKUŁY ==================== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 24px;
}

.article-card {
  background: #fff;
  border: 1px solid #dddcd7;
  border-radius: 24px;
  overflow: hidden;
  transition: .3s;
  content-visibility: auto;
  contain-intrinsic-size: 0 520px;
}

.article-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 52px rgba(0,0,0,.09);
}

.article-cover {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.article-cover img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}


.article-cover .label {
  position: absolute;
  left: 20px;
  top: 20px;
  z-index: 2;
  background: #fff;
  color: #111;
  border-radius: 999px;
  padding: 8px 11px;
  font-size: .72rem;
  font-weight: 850;
}

.article-body {
  padding: 24px;
}

.article-body h2,.article-body h3 {
  font-size: 1.45rem;
  line-height: 1.05;
  letter-spacing: -.03em;
  margin: 8px 0 12px;
}

.article-body p {
  color: #68706d;
  font-size: .93rem;
}

.article-meta {
  display: flex;
  gap: 12px;
  color: #8c9290;
  font-size: .75rem;
}

.article-page {
  display: grid;
  grid-template-columns: minmax(0,1fr) 270px;
  gap: 70px;
}

.article-content {
  font-size: 1.03rem;
}

.article-content h2 {
  font-size: clamp(1.9rem,3vw,3rem);
  letter-spacing: -.04em;
  line-height: 1.05;
  margin-top: 54px;
}

.article-content h3 {
  font-size: 1.5rem;
  margin-top: 34px;
}

.article-content p,.article-content li {
  color: #555c5a;
}

.article-content blockquote {
  margin: 34px 0;
  padding: 25px;
  border-left: 4px solid var(--accent);
  background: #fff;
  border-radius: 0 18px 18px 0;
  font-size: 1.15rem;
  font-weight: 700;
}

.toc {
  position: sticky;
  top: 120px;
  align-self: start;
  border: 1px solid #d9d8d3;
  border-radius: 18px;
  padding: 20px;
}

.toc strong {
  display: block;
  margin-bottom: 10px;
}

.toc a {
  display: block;
  padding: 8px 0;
  color: #666c6a;
  font-size: .87rem;
}

.toc a:hover {
  color: var(--accent);
}

.author-box {
  display: flex;
  gap: 18px;
  background: #fff;
  border-radius: 20px;
  padding: 22px;
  margin-top: 48px;
  border: 1px solid #e0dfdb;
}

.author-dot {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent);
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  font-weight: 900;
  color: #fff;
}

/* ==================== KONTAKT / FORMULARZ ==================== */
.contact-grid {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 34px;
}

.contact-panel {
  background: #16191b;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 28px;
  padding: 30px;
}

.contact-list {
  display: grid;
  gap: 12px;
  margin-top: 30px;
}

.contact-item {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
}

.contact-item small {
  display: block;
  color: #8c9491;
}

.contact-item strong {
  font-size: 1.05rem;
}

.form-card {
  background: #fff;
  color: #111;
  border-radius: 28px;
  padding: 32px;
}

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

.field {
  display: grid;
  gap: 7px;
}

.field.full {
  grid-column: 1/-1;
}

.field label {
  font-size: .82rem;
  font-weight: 800;
  color: #555c5a;
}

.field input,.field select,.field textarea {
  width: 100%;
  border: 1px solid #d7d8d2;
  border-radius: 14px;
  padding: 14px 15px;
  background: #fbfbf8;
  outline: none;
  transition: .2s;
}

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

.field input:focus,.field select:focus,.field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(240,173,44,.09);
}

.consent {
  display: flex;
  gap: 10px;
  font-size: .8rem;
  color: #707774;
  align-items: flex-start;
}

.consent input {
  margin-top: 4px;
}

.form-status {
  display: none;
  padding: 13px 15px;
  border-radius: 12px;
  background: #ebf8ea;
  color: #266b22;
  font-weight: 700;
  margin-top: 14px;
}

.form-status.show {
  display: block;
}

.map-placeholder {
  height: 360px;
  border-radius: 26px;
  position: relative;
  overflow: hidden;
  background: #202426;
  border: 1px solid var(--line);
}

.map-placeholder:before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(45deg,transparent 49%,rgba(255,255,255,.07) 50%,transparent 51%),linear-gradient(-45deg,transparent 49%,rgba(255,255,255,.045) 50%,transparent 51%);
  background-size: 70px 70px;
}

.pin {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%,-50%);
  width: 62px;
  height: 62px;
  border-radius: 50% 50% 50% 0;
  background: var(--accent);
  transform: translate(-50%,-65%) rotate(-45deg);
  display: grid;
  place-items: center;
}

.pin:after {
  content: "";
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
}

/* ==================== STOPKA ==================== */
.footer {
  border-top: 1px solid var(--line);
  padding: 62px 0 28px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.35fr repeat(3,.55fr);
  gap: 38px;
}

.footer h4 {
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: #7f8784;
  margin: 0 0 14px;
}

.footer-links {
  display: grid;
  gap: 9px;
}

.footer-links a {
  color: #c5cac7;
  font-size: .9rem;
}

.footer-links a:hover {
  color: #fff;
}

.footer-brand p {
  color: #868e8b;
  max-width: 420px;
}

.footer-bottom {
  margin-top: 46px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  color: #7c8481;
  font-size: .78rem;
}

.scroll-reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: .7s cubic-bezier(.2,.7,.2,1);
}

.scroll-reveal.visible {
  opacity: 1;
  transform: none;
}

.kicker-line {
  font-size: .8rem;
  color: #8c9391;
  text-transform: uppercase;
  letter-spacing: .12em;
}

.mobile-cta {
  display: none;
}

/* ==================== RESPONSIVE: TABLET ==================== */
@media (max-width: 980px) {
  .menu,.nav-phone {
    display: none;
  }

  .burger {
    display: block;
  }

  .menu.open {
    display: flex;
    position: absolute;
    top: calc(var(--header) - 2px);
    left: 20px;
    right: 20px;
    flex-direction: column;
    align-items: stretch;
    background: #151819;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 10px;
  }

  .menu.open>a,.menu.open .menu-toggle-label {
    display: block;
    padding: 14px;
  }

  .has-menu .submenu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
    box-shadow: none;
    background: #101213;
    margin-top: 4px;
  }

  .has-menu.open .submenu {
    display: block;
  }

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

  .hero-visual {
    min-height: 430px;
  }

  .hero-photo {
    inset: 18px 0;
  }

  .fc-1 {
    left: 12px;
  }

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

  .metric:nth-child(2) {
    border-right: 0;
  }

  .metric:nth-child(-n+2) {
    border-bottom: 1px solid var(--line);
  }

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

  .grid-3,.blog-grid {
    grid-template-columns: repeat(2,1fr);
  }

  .process-wrap,.service-detail,.contact-grid,.article-page {
    grid-template-columns: 1fr;
  }

  .process-sticky,.side-nav,.toc {
    position: static;
  }

  .promo-inner {
    grid-template-columns: 1fr;
  }

  .promo-action {
    text-align: left;
  }

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

  .footer-top>div:last-child {
    grid-column: 2;
  }

  .mobile-cta {
    display: flex;
    position: fixed;
    left: 14px;
    right: 14px;
    bottom: 14px;
    z-index: 45;
    background: #111;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 18px;
    padding: 9px;
    gap: 8px;
    box-shadow: 0 16px 50px rgba(0,0,0,.38);
  }

  .mobile-cta .btn {
    flex: 1;
    min-height: 46px;
    padding: 0 14px;
  }

  .footer {
    padding-bottom: 100px;
  }

}

/* ==================== RESPONSIVE: MOBILE ==================== */
@media (max-width: 680px) {
  .container {
    width: min(100% - 28px,var(--max));
  }

  .section {
    padding: 82px 0;
  }

  .article-card:hover {
    transform: none;
  }

  .section-sm {
    padding: 58px 0;
  }

  .display {
    font-size: clamp(3rem,16vw,5.4rem);
  }

  .hero-inner {
    padding: 48px 0;
  }

  .hero-visual {
    min-height: 350px;
  }

  .hero-photo {
    inset: 12px 0;
    border-radius: 24px;
  }

  .hero-photo img {
    object-position: 52% center;
  }



  .fc-1 {
    top: 35px;
  }

  .fc-2 {
    bottom: 28px;
  }

  .section-head {
    display: grid;
    gap: 18px;
  }

  .grid-2,.grid-3,.grid-4,.blog-grid,.form-grid {
    grid-template-columns: 1fr;
  }

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

  .metric {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .metric:last-child {
    border-bottom: 0;
  }

  .process-item {
    grid-template-columns: 48px 1fr;
  }

  .process-item .tag {
    display: none;
  }

  .promo-inner {
    padding: 36px 24px;
  }

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

  .page-hero {
    padding: 62px 0 50px;
  }

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

  .footer-brand {
    grid-column: 1/-1;
  }

  .footer-top>div:last-child {
    grid-column: auto;
  }

  .footer-bottom {
    display: grid;
    gap: 8px;
  }

  .contact-panel,.form-card {
    padding: 22px;
  }

  .article-cover {
    height: 180px;
  }

}

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

  .scroll-reveal {
    opacity: 1;
    transform: none;
  }

}

/* SEO/local content additions */

.section-actions {
  margin-top: 28px;
}

.local-note {
  margin: 34px 0;
  padding: 22px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid #dfded9;
}

.local-note strong {
  font-size: 1.05rem;
}

.local-note p {
  margin: .45rem 0 0;
}

.contact-hint {
  margin-top: 20px;
  color: #aeb4b1;
  font-size: .9rem;
  line-height: 1.65;
}

.consent input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-width: 18px;
  flex: 0 0 18px;
  padding: 0;
  margin: 2px 0 0;
  border-radius: 4px;
  accent-color: var(--accent);
  box-shadow: none;
}

.consent input[type="checkbox"]:focus {
  box-shadow: 0 0 0 3px rgba(240,173,44,.12);
}

.text-link {
  color: var(--accent);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article-meta {
  margin-top: 18px;
}


.menu-toggle-label.active {
  background: rgba(255,255,255,.07);
  color: #fff;
}


/* ==================== BRAND / FAVICON / NOWE MEDIA ==================== */
.logo-mark {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: #171717;
  box-shadow: 0 8px 24px rgba(0,0,0,.16);
}

.logo-mark:before {
  display: none;
}

.logo:hover .logo-mark {
  transform: translateY(-1px);
}

.gallery-showcase {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: 24px;
  align-items: stretch;
}

.gallery-main,
.gallery-card,
.photo-strip-main,
.photo-strip-card,
.wide-photo,
.mini-photo,
.map-frame {
  margin: 0;
  border-radius: 28px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #dfded9;
  box-shadow: 0 20px 52px rgba(0,0,0,.06);
}

.gallery-main img,
.gallery-card img,
.photo-strip-main img,
.photo-strip-card img,
.wide-photo img,
.mini-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.gallery-main {
  min-height: 100%;
}

.gallery-main img {
  min-height: 100%;
  aspect-ratio: 4 / 3;
}

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

.gallery-card img {
  aspect-ratio: 16 / 10;
}

.gallery-main figcaption,
.gallery-card figcaption,
.photo-strip-card figcaption,
.wide-photo figcaption {
  padding: 16px 18px;
  color: #555d5b;
  font-size: .92rem;
}

.photo-strip {
  display: grid;
  grid-template-columns: 1.2fr .8fr .8fr;
  gap: 24px;
  align-items: stretch;
}

.photo-strip-main img {
  aspect-ratio: 16 / 10;
}

.photo-strip-card img {
  aspect-ratio: 1 / 1;
}

.page-media {
  padding-top: 34px;
}

.wide-photo img {
  aspect-ratio: 16 / 7;
}

.location-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, .8fr);
  gap: 24px;
  align-items: stretch;
}

.map-frame {
  background: #202426;
  border-color: rgba(255,255,255,.12);
}

.map-frame iframe {
  width: 100%;
  height: 100%;
  min-height: 520px;
  border: 0;
  display: block;
}

.location-aside {
  display: grid;
  gap: 24px;
}

.location-card {
  background: #fff;
  border-radius: 24px;
  border: 1px solid #dfded9;
  padding: 24px;
}

.location-card p {
  color: #5b6462;
}

.map-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 18px 0;
}

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

.mini-photo img {
  aspect-ratio: 4 / 3;
}

/* Softer navigation through content */
.content-rich,
.article-content {
  scroll-margin-top: 120px;
}

@media (max-width: 980px) {
  .gallery-showcase,
  .photo-strip,
  .location-layout {
    grid-template-columns: 1fr;
  }

  .gallery-main img,
  .wide-photo img {
    aspect-ratio: 16 / 10;
  }
}

@media (max-width: 680px) {
  .gallery-side,
  .mini-photo-grid {
    grid-template-columns: 1fr;
  }

  .gallery-main,
  .gallery-card,
  .photo-strip-main,
  .photo-strip-card,
  .wide-photo,
  .map-frame,
  .mini-photo {
    border-radius: 22px;
  }

  .map-frame iframe {
    min-height: 320px;
  }
}


/* ==================== IDENTYFIKACJA TWOJMECHANIK ==================== */
.logo-mark img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.footer-logo-link {
  display: inline-block;
  width: 160px;
  margin-bottom: 18px;
}

.footer-logo-link img {
  width: 100%;
  height: auto;
  display: block;
}

/* Złoty akcent z logo ma lepszy kontrast z ciemnym tekstem. */
.btn-primary,
.service-card.accent {
  color: #151515;
}

.service-card.accent p {
  color: rgba(21,21,21,.72);
}

.service-card.accent .no {
  color: rgba(21,21,21,.09);
}

.service-card.accent .arrow {
  border-color: rgba(21,21,21,.32);
}

.promo {
  color: #151515;
}

.promo p {
  color: rgba(21,21,21,.76);
}

.promo:after {
  border-color: rgba(21,21,21,.14);
  box-shadow: 0 0 0 50px rgba(21,21,21,.035), 0 0 0 100px rgba(21,21,21,.025);
}

@media (max-width: 680px) {
  .footer-logo-link {
    width: 140px;
  }
}


/* ==================== OPINIE KLIENTÓW / HOMEPAGE ==================== */
.review-stack {
  display: grid;
  gap: 28px;
}

.review-feature {
  display: grid;
  grid-template-columns: minmax(320px, .92fr) minmax(360px, 1.08fr);
  gap: 28px;
  align-items: center;
}

.review-feature.reverse {
  grid-template-columns: minmax(360px, 1.08fr) minmax(320px, .92fr);
}

.review-feature.reverse .review-photo {
  order: 2;
}

.review-feature.reverse .review-card {
  order: 1;
}

.review-photo,
.review-card {
  border-radius: 28px;
}

.review-photo {
  overflow: hidden;
  background: #fff;
  border: 1px solid #dfded9;
  box-shadow: 0 20px 52px rgba(0,0,0,.06);
}

.review-photo img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  display: block;
  object-fit: cover;
}

.review-card {
  position: relative;
  padding: 38px 40px;
  background: #121516;
  color: #f4f1ea;
  box-shadow: 0 24px 64px rgba(0,0,0,.16);
}

.review-card::before {
  content: "“";
  position: absolute;
  top: 18px;
  left: 24px;
  font-size: 4.2rem;
  line-height: 1;
  color: rgba(212, 168, 76, .26);
  font-weight: 800;
}

.review-stars {
  margin-bottom: 18px;
  color: var(--accent);
  letter-spacing: .12em;
  font-size: 1.05rem;
}

.review-card blockquote {
  margin: 0;
  font-size: 1.32rem;
  line-height: 1.7;
  color: #f4f1ea;
}

.review-author {
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.10);
  display: grid;
  gap: 4px;
}

.review-author strong {
  font-size: 1rem;
  color: #ffffff;
}

.review-author span {
  color: rgba(255,255,255,.72);
  font-size: .96rem;
}

@media (max-width: 980px) {
  .review-feature,
  .review-feature.reverse {
    grid-template-columns: 1fr;
  }

  .review-feature.reverse .review-photo,
  .review-feature.reverse .review-card {
    order: initial;
  }

  .review-photo img {
    min-height: 320px;
  }
}

@media (max-width: 680px) {
  .review-card {
    padding: 28px 22px;
    border-radius: 22px;
  }

  .review-photo {
    border-radius: 22px;
  }

  .review-card blockquote {
    font-size: 1.08rem;
    line-height: 1.65;
  }
}


/* ==================== NOTATKA PROJEKTOWA / TYLKO OPINIE ==================== */
.project-note-reviews {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: fit-content;
  max-width: 850px;
  margin: -18px 0 34px;
  padding: 13px 16px;
  border: 1px solid rgba(194, 36, 36, .25);
  border-radius: 14px;
  background: #fff1f1;
  color: #9e2020;
}

.project-note-reviews .project-note-icon {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  border-radius: 50%;
  background: #c92828;
  color: #fff;
  font-size: .82rem;
  line-height: 1;
  font-weight: 900;
}

.project-note-reviews p {
  margin: 0;
  font-size: .85rem;
  line-height: 1.55;
  color: inherit;
}

.project-note-reviews strong {
  font-weight: 900;
}

@media (max-width: 680px) {
  .project-note-reviews {
    margin-top: -8px;
    padding: 12px 13px;
  }
}


/* ==================== FIX: KARTY USŁUG / NUMERACJA ==================== */
/*
  Numer karty jest dekoracją. Rezerwujemy mu osobną strefę u dołu,
  żeby nawet dłuższy opis nigdy nie nachodził na 01 / 02 / 03 itd.
*/
.service-card {
  padding: 28px 28px 96px;
  min-height: 350px;
}

.service-card .icon {
  margin-bottom: 46px;
}

.service-card .h3,
.service-card h2,
.service-card h3,
.service-card p {
  position: relative;
  z-index: 2;
}

.service-card p {
  max-width: 100%;
}

.service-card .no {
  right: 22px;
  bottom: 12px;
  z-index: 1;
  font-size: clamp(4.2rem, 5.2vw, 5.1rem);
  line-height: .9;
  pointer-events: none;
  user-select: none;
}

/* ==================== FIX: ZDJĘCIE NA PODSTRONIE USŁUGI ==================== */
/*
  Tylko indywidualne strony usług. Blog i pozostałe szerokie zdjęcia
  zachowują swoje dotychczasowe proporcje.
*/
.service-media {
  padding: 22px 0 34px;
}

.service-media .wide-photo {
  max-width: 1120px;
  margin-inline: auto;
}

.service-media .wide-photo img {
  width: 100%;
  height: clamp(250px, 25vw, 360px);
  aspect-ratio: auto;
  object-fit: cover;
  object-position: center;
}

.service-media .wide-photo figcaption {
  padding: 14px 18px;
}

/* Mniejsza przerwa między zdjęciem a właściwym opisem usługi. */
.service-media + .section.paper {
  padding-top: 58px;
}

@media (max-width: 980px) {
  .service-card {
    min-height: 340px;
    padding-bottom: 92px;
  }

  .service-media .wide-photo img {
    height: clamp(240px, 42vw, 340px);
  }
}

@media (max-width: 680px) {
  .service-card {
    min-height: 0;
    padding: 24px 22px 84px;
  }

  .service-card .icon {
    margin-bottom: 38px;
  }

  .service-card .no {
    right: 18px;
    bottom: 10px;
    font-size: 4.2rem;
  }

  .service-media {
    padding: 14px 0 26px;
  }

  .service-media .wide-photo img {
    height: 230px;
  }

  .service-media + .section.paper {
    padding-top: 46px;
  }
}


/* ==================== KARTY USŁUG / ZDJĘCIA W TLE ==================== */
/*
  Każda karta korzysta ze zdjęcia właściwej usługi. Fotografia pozostaje
  subtelna, a miękka poświata pod copy utrzymuje bardzo dobrą czytelność.
*/
.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: var(--service-card-image, none);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: .18;
  filter: saturate(.82) contrast(.92);
  transform: scale(1.01);
  transition: opacity .3s ease, transform .45s ease;
  pointer-events: none;
}

.service-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(
      ellipse 78% 70% at 28% 68%,
      rgba(255,255,255,.96) 0%,
      rgba(255,255,255,.78) 38%,
      rgba(255,255,255,.26) 68%,
      transparent 100%
    );
  pointer-events: none;
}

.service-card:hover::before {
  opacity: .24;
  transform: scale(1.035);
}

.service-card .icon {
  position: relative;
  z-index: 3;
}

.service-card .arrow {
  z-index: 3;
}

.service-card .no {
  z-index: 2;
}

.service-card h2,
.service-card h3,
.service-card p {
  text-shadow:
    0 0 8px rgba(255,255,255,.98),
    0 0 18px rgba(255,255,255,.92),
    0 0 30px rgba(255,255,255,.72);
}

/* Złota karta na homepage zachowuje charakter marki. */
.service-card.accent::after {
  background:
    radial-gradient(
      ellipse 80% 72% at 28% 68%,
      rgba(239,180,66,.98) 0%,
      rgba(239,180,66,.84) 40%,
      rgba(239,180,66,.32) 72%,
      transparent 100%
    );
}

.service-card.accent h2,
.service-card.accent h3,
.service-card.accent p {
  text-shadow:
    0 0 8px rgba(239,180,66,.98),
    0 0 18px rgba(239,180,66,.9),
    0 0 30px rgba(239,180,66,.72);
}

.service-photo-diagnostyka {
  --service-card-image: url("../img/diag-computer.webp");
}

.service-photo-hamulce {
  --service-card-image: url("../img/brakes.webp");
}

.service-photo-klimatyzacja {
  --service-card-image: url("../img/AC.webp");
}

.service-photo-rozrzad {
  --service-card-image: url("../img/timing-belt.webp");
}

.service-photo-olej {
  --service-card-image: url("../img/car-oil.webp");
}

.service-photo-zawieszenie {
  --service-card-image: url("../img/suspension.webp");
}

.service-photo-sprzeglo {
  --service-card-image: url("../img/clutch.webp");
}

/* ==================== PODSTRONA USŁUGI / SCROLL CUE ==================== */
.service-scroll-cue {
  width: max-content;
  margin-top: 24px;
  display: inline-flex;
  align-items: center;
  gap: 16px;
  color: var(--accent);
  font-weight: 900;
  font-size: 1rem;
  letter-spacing: -.02em;
  transition: transform .25s ease, color .25s ease;
}

.service-scroll-cue span {
  padding: 10px 0;
}

.service-scroll-cue svg {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  animation: serviceArrowFloat 1.8s ease-in-out infinite;
}

.service-scroll-cue:hover {
  transform: translateY(2px);
  color: #ffd16b;
}

#co-obejmuje-usluga {
  scroll-margin-top: 118px;
}

@keyframes serviceArrowFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(7px); }
}

@media (max-width: 680px) {
  .service-card::before {
    opacity: .14;
  }

  .service-card:hover::before {
    opacity: .14;
    transform: scale(1.01);
  }

  .service-scroll-cue {
    margin-top: 18px;
    gap: 10px;
  }

  .service-scroll-cue svg {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
  }
}


/* ==================== MOTION / MIKROINTERAKCJE ==================== */
/*
  Animacje są oparte wyłącznie o transform i opacity. IntersectionObserver
  uruchamia je tylko raz, więc nie obciążają przewijania strony.
*/
.motion-enabled .motion-intro,
.motion-enabled .motion-reveal {
  opacity: 0;
  transform: translate3d(0, 22px, 0);
  transition:
    opacity .62s cubic-bezier(.2,.7,.2,1),
    transform .72s cubic-bezier(.2,.7,.2,1);
  transition-delay: var(--motion-delay, 0ms);
}

.motion-enabled .motion-intro.motion-visible,
.motion-enabled .motion-reveal.motion-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.motion-enabled .hero-visual.motion-intro,
.motion-enabled .wide-photo.motion-reveal,
.motion-enabled .gallery-main.motion-reveal,
.motion-enabled .gallery-card.motion-reveal,
.motion-enabled .review-feature.motion-reveal,
.motion-enabled .photo-strip > .motion-reveal,
.motion-enabled .mini-photo.motion-reveal {
  transform: translate3d(0, 18px, 0) scale(.985);
}

.motion-enabled .hero-visual.motion-intro.motion-visible,
.motion-enabled .wide-photo.motion-reveal.motion-visible,
.motion-enabled .gallery-main.motion-reveal.motion-visible,
.motion-enabled .gallery-card.motion-reveal.motion-visible,
.motion-enabled .review-feature.motion-reveal.motion-visible,
.motion-enabled .photo-strip > .motion-reveal.motion-visible,
.motion-enabled .mini-photo.motion-reveal.motion-visible {
  transform: translate3d(0, 0, 0) scale(1);
}

/* Starsza animacja pozostaje neutralna, żeby nie dublowała nowej. */
.scroll-reveal,
.scroll-reveal.visible {
  opacity: 1;
  transform: none;
}

/* Zdjęcia delikatnie reagują tylko na urządzeniach z prawdziwym hoverem. */
.hero-photo img,
.wide-photo img,
.review-photo img,
.article-cover img,
.gallery-main img,
.gallery-card img,
.photo-strip img,
.mini-photo img {
  transition: transform .7s cubic-bezier(.2,.7,.2,1), filter .45s ease;
}

@media (hover: hover) and (pointer: fine) {
  .wide-photo:hover img,
  .review-photo:hover img,
  .article-card:hover .article-cover img,
  .gallery-main:hover img,
  .gallery-card:hover img,
  .photo-strip figure:hover img,
  .mini-photo:hover img {
    transform: scale(1.025);
  }

  .btn:hover svg,
  .service-card:hover .arrow {
    transform: translateX(3px);
  }

  .logo,
  .contact-item,
  .quote,
  .location-card {
    transition: transform .25s ease, border-color .25s ease, box-shadow .3s ease;
  }

  .contact-item:hover,
  .quote:hover,
  .location-card:hover {
    transform: translateY(-3px);
  }
}

.btn svg {
  transition: transform .25s ease;
}

.faq-q span:last-child {
  transition: transform .3s ease;
}

.faq-a {
  transition: max-height .38s cubic-bezier(.2,.7,.2,1);
}

/* Burger zmienia się w X po otwarciu menu. */
.burger span {
  transition: transform .25s ease, opacity .2s ease;
}

.burger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.burger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.burger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* ==================== RESPONSYWNOŚĆ / DOPRACOWANIE MOBILE ==================== */
html,
body {
  max-width: 100%;
}

body {
  overflow-x: clip;
}

.page-title,
.display,
.h2,
.h3,
.lead,
.content-rich,
.article-content,
.contact-item strong {
  overflow-wrap: break-word;
}

/* Zapobiega wypychaniu gridów przez długie teksty. */
.hero-copy,
.hero-visual,
.section-head > *,
.service-detail > *,
.contact-grid > *,
.article-page > *,
.footer-top > * {
  min-width: 0;
}

@media (max-width: 980px) {
  .menu.open {
    max-height: calc(100svh - var(--header) - 20px);
    overflow-y: auto;
    overscroll-behavior: contain;
    box-shadow: 0 22px 60px rgba(0,0,0,.42);
  }

  body.menu-is-open {
    overflow: hidden;
  }

  .submenu {
    min-width: 0;
    width: 100%;
  }
}

@media (max-width: 680px) {
  :root {
    --header: 72px;
  }

  .nav {
    gap: 10px;
  }

  /* Na telefonie dolny sticky CTA zastępuje duży przycisk w headerze. */
  .nav-actions > .btn-primary {
    display: none;
  }

  .nav-actions {
    margin-left: auto;
    flex: 0 0 auto;
  }

  .burger {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
  }

  .logo {
    gap: 9px;
    min-width: 0;
    font-size: .96rem;
  }

  .logo-mark {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    border-radius: 12px;
  }

  .logo-mark img {
    width: 30px;
    height: 30px;
  }

  .logo small {
    font-size: .56rem;
    letter-spacing: .13em;
    white-space: nowrap;
  }

  .display {
    font-size: clamp(2.7rem, 13.1vw, 4.25rem);
    line-height: .9;
    letter-spacing: -.055em;
  }

  .page-title {
    font-size: clamp(2.65rem, 12vw, 4.6rem);
    line-height: .92;
    letter-spacing: -.052em;
  }

  .h2 {
    font-size: clamp(2.1rem, 10.5vw, 3.5rem);
  }

  .lead {
    font-size: 1rem;
    line-height: 1.65;
  }

  .hero-actions {
    gap: 10px;
  }

  .hero-actions .btn {
    flex: 1 1 145px;
    padding-inline: 18px;
  }

  .trust-line {
    gap: 12px;
    line-height: 1.55;
  }

  .fc-1 {
    left: 10px;
  }

  .fc-2 {
    right: 10px;
  }

  .floating-card {
    padding: 13px 15px;
    border-radius: 15px;
  }

  .floating-card strong {
    font-size: 1.25rem;
  }

  .service-scroll-cue {
    width: 100%;
    justify-content: flex-start;
  }

  .price-table {
    table-layout: fixed;
    font-size: .9rem;
  }

  .price-table th,
  .price-table td {
    padding: 14px 12px;
    overflow-wrap: anywhere;
  }

  .price-table th:last-child,
  .price-table td:last-child {
    width: 34%;
  }

  .author-box {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 14px;
  }

  .author-dot {
    width: 48px;
    height: 48px;
  }

  .mobile-cta {
    left: 10px;
    right: 10px;
    bottom: calc(10px + env(safe-area-inset-bottom));
    padding: 7px;
    gap: 6px;
  }

  .mobile-cta .btn {
    min-width: 0;
    min-height: 44px;
    padding: 0 10px;
    font-size: .9rem;
  }

  .footer {
    padding-bottom: calc(94px + env(safe-area-inset-bottom));
  }

  .contact-item strong,
  .footer-links a {
    overflow-wrap: anywhere;
  }

  .review-photo img {
    min-height: 260px;
  }

  .review-card {
    padding: 28px 22px;
  }

  .review-card blockquote {
    font-size: 1.06rem;
  }

  .motion-enabled .motion-intro,
  .motion-enabled .motion-reveal {
    transform: translate3d(0, 14px, 0);
    transition-duration: .52s, .6s;
  }
}

@media (max-width: 420px) {
  .container {
    width: min(100% - 24px, var(--max));
  }

  .logo {
    font-size: .91rem;
  }

  .logo small {
    font-size: .53rem;
    letter-spacing: .1em;
  }

  .page-hero {
    padding: 52px 0 44px;
  }

  .hero-inner {
    padding: 42px 0;
  }

  .section {
    padding: 72px 0;
  }

  .section-sm {
    padding: 50px 0;
  }

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

  .footer-brand,
  .footer-top > div:last-child {
    grid-column: auto;
  }

  .form-card,
  .contact-panel,
  .location-card {
    padding: 20px;
  }

  .map-actions .btn {
    width: 100%;
  }

  .service-card {
    padding-inline: 20px;
  }
}

@media (max-width: 350px) {
  .logo small {
    display: none;
  }

  .display {
    font-size: 2.65rem;
  }

  .page-title {
    font-size: 2.55rem;
  }

  .mobile-cta .btn {
    font-size: .84rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .motion-intro,
  .motion-reveal,
  .motion-visible {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .hero-photo img,
  .wide-photo img,
  .review-photo img,
  .article-cover img,
  .gallery-main img,
  .gallery-card img,
  .photo-strip img,
  .mini-photo img,
  .service-scroll-cue svg {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }
}

/* ==================== MOTION / KOMPATYBILNOŚĆ STARYCH KLAS ==================== */
/* Gdy JS działa, starsze .scroll-reveal korzystają z nowego systemu animacji. */
.motion-enabled .scroll-reveal.motion-reveal {
  opacity: 0;
  transform: translate3d(0, 22px, 0);
}

.motion-enabled .scroll-reveal.motion-reveal.motion-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

@media (max-width: 680px) {
  .motion-enabled .scroll-reveal.motion-reveal {
    transform: translate3d(0, 14px, 0);
  }

  .motion-enabled .scroll-reveal.motion-reveal.motion-visible {
    transform: translate3d(0, 0, 0);
  }
}

/* Po otwarciu menu dolne CTA znika, żeby nie konkurowało z nawigacją. */
.mobile-cta {
  transition: opacity .22s ease, transform .22s ease;
}

body.menu-is-open .mobile-cta {
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
}


/* ==================== HERO / KONTROLOWANE ŁAMANIE TYTUŁU ==================== */
/*
  Nazwa marki nie może łamać się w połowie słowa. Rozmiar jest powiązany
  z szerokością viewportu, ale ma limity bezpieczne dla lewej kolumny hero.
*/
.hero-title {
  font-size: clamp(4.4rem, 5.55vw, 6.55rem);
  max-width: 100%;
}

.hero-title .brand-line {
  display: inline-block;
  white-space: nowrap;
  letter-spacing: -.072em;
}

.hero-title .hero-title-subline {
  display: inline-block;
  margin-top: .08em;
}

/* Sam tytuł dostaje tylko fade - bez transformacji, która mogłaby zmieniać
   rasteryzację dużej typografii podczas wejścia. */
.motion-enabled .hero-title.motion-intro {
  transform: none;
  transition: opacity .62s cubic-bezier(.2,.7,.2,1);
}

.motion-enabled .hero-title.motion-intro.motion-visible {
  transform: none;
}

@media (max-width: 1180px) {
  .hero-title {
    font-size: clamp(4rem, 6.25vw, 5.7rem);
  }
}

@media (max-width: 980px) {
  .hero-title {
    font-size: clamp(4rem, 10.5vw, 6.1rem);
  }
}

@media (max-width: 680px) {
  .hero-title {
    font-size: clamp(2.6rem, 12vw, 4.4rem);
    line-height: .92;
  }

  .hero-title .brand-line {
    letter-spacing: -.065em;
  }
}

@media (max-width: 360px) {
  .hero-title {
    font-size: clamp(2.45rem, 11.7vw, 2.75rem);
  }
}

/* Finalne zabezpieczenie hero: duży viewport nie powiększa tytułu ponad szerokość kolumny. */
.hero-title {
  font-size: clamp(4.2rem, 5vw, 5.25rem);
  overflow-wrap: normal;
  word-break: normal;
}

.hero-title .hero-title-subline {
  font-size: .92em;
  overflow-wrap: normal;
  word-break: normal;
}

@media (max-width: 1180px) {
  .hero-title {
    font-size: clamp(3.85rem, 6.05vw, 5rem);
  }
}

@media (max-width: 980px) {
  .hero-title {
    font-size: clamp(4rem, 9.8vw, 5.8rem);
  }
}

@media (max-width: 680px) {
  .hero-title {
    font-size: clamp(2.55rem, 11.7vw, 4.2rem);
  }
}

@media (max-width: 360px) {
  .hero-title {
    font-size: clamp(2.35rem, 11.2vw, 2.6rem);
  }
}
