:root {
  --bg: #060d1b;
  --surface: #eef2f7;
  --surface-soft: #dfe5ee;
  --text: #1c2739;
  --muted: #4f5d74;
  --brand: #fde000;
  --brand-strong: #ffeb59;
  --brand-ink: #6f6000;
  --accent: #617895;
  --line: #aab5c7;
  --line-strong: #8998ad;
  --ink: #101929;
  --ok: #0d8f63;
  --danger: #c94058;
  --focus-ring: #ffd400;
  --radius-lg: 1.5rem;
  --radius-md: 0.9rem;
  --slant-cut-sm: 10px;
  --shadow: 0 15px 34px rgba(28, 39, 57, 0.18);
  --font-sans: "Avenir Next", "Avenir", "Lato", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.6rem;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text);
  background: linear-gradient(180deg, #061022 0%, #060c18 100%), var(--bg);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.58;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: rgba(253, 224, 0, 0.38);
  color: #111a2a;
}

.skip-link {
  position: absolute;
  left: 0.7rem;
  top: 0.6rem;
  z-index: 120;
  padding: 0.45rem 0.7rem;
  background: linear-gradient(120deg, var(--brand), var(--brand-strong));
  color: #0f1726;
  font-weight: 800;
  transform: translateY(-140%);
  transition: transform 0.2s ease;
}

.skip-link:focus-visible {
  transform: translateY(0);
}

.noscript-notice {
  position: relative;
  z-index: 10;
  margin: 0;
  padding: 0.75rem max(1rem, calc((100% - 1120px) / 2));
  background: #fff4a3;
  color: #172033;
  font-weight: 700;
  text-align: center;
}

.noscript-notice-links {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 0.8rem;
  margin-left: 0.5rem;
}

.noscript-notice a {
  text-decoration: underline;
  text-underline-offset: 0.16em;
}

main {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(circle at 8% 10%, rgba(255, 255, 255, 0.55), transparent 42%),
    linear-gradient(180deg, #f6f8fb 0%, #d9e0ea 48%, #eef2f7 100%);
}

main::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  background:
    repeating-linear-gradient(
      102deg,
      rgba(255, 255, 255, 0.2) 0 2px,
      rgba(255, 255, 255, 0) 2px 18px
    );
  opacity: 0.42;
}

main::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(circle at 86% 12%, rgba(253, 224, 0, 0.12), transparent 42%),
    radial-gradient(circle at 35% 70%, rgba(132, 146, 170, 0.22), transparent 46%);
}

main > * {
  position: relative;
  z-index: 1;
}

.main-home {
  background:
    radial-gradient(circle at 12% 10%, rgba(21, 42, 74, 0.48), transparent 40%),
    radial-gradient(circle at 88% 14%, rgba(253, 224, 0, 0.1), transparent 38%),
    linear-gradient(180deg, #061022 0%, #060d1b 100%);
}

.main-home::before,
.main-home::after {
  display: none;
}

.error-page-main {
  min-height: calc(100vh - 220px);
  display: grid;
  align-items: center;
  background:
    radial-gradient(circle at 82% 18%, rgba(253, 224, 0, 0.16), transparent 34%),
    linear-gradient(145deg, #061022, #101d32);
}

.error-page-card {
  max-width: 780px;
  padding: clamp(1.25rem, 4vw, 2.5rem);
  color: #eff5ff;
  background: rgba(8, 16, 30, 0.82);
  border: 1px solid rgba(112, 137, 169, 0.42);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

.error-page-card h1 {
  margin: 0.3rem 0 0;
  font-size: clamp(2rem, 6vw, 4.2rem);
  line-height: 1.02;
}

.error-page-card .lead {
  max-width: 62ch;
  color: #cedaeb;
}

.silver-webgl-wrap {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: min(62vh, 560px);
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

.silver-webgl-bg {
  width: 100%;
  height: 100%;
  display: block;
  opacity: 0.5;
  mix-blend-mode: overlay;
}

h1,
h2,
h3,
.eyebrow,
.btn {
  font-family: var(--font-sans);
}

h1,
h2,
h3 {
  letter-spacing: 0.002em;
  font-weight: 700;
  text-wrap: balance;
}

.eyebrow,
.btn {
  letter-spacing: 0.01em;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

p {
  text-wrap: pretty;
}

:target {
  scroll-margin-top: 5.8rem;
}

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

.container {
  width: min(1280px, calc(100% - 3rem));
  margin: 0 auto;
}

.section-pad {
  padding: clamp(5rem, 7vw, 7.5rem) 0;
}

.eyebrow {
  --label-skew: -12deg; /* 78deg from vertical */
  position: relative;
  isolation: isolate;
  text-transform: uppercase;
  color: var(--ink);
  background: transparent;
  display: inline-flex;
  align-items: center;
  padding: 0.22rem 0.78rem 0.2rem;
  margin-bottom: 0.5rem;
  font-size: clamp(0.78rem, 0.95vw, 0.92rem);
  font-weight: 800;
  letter-spacing: 0.03em;
  line-height: 1;
  text-wrap: nowrap;
}

.eyebrow::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(118deg, var(--brand), var(--brand-strong));
  transform: skewX(var(--label-skew));
  border-radius: 0.24rem !important;
}

*,
*::before,
*::after {
  border-radius: 0 !important;
}

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

:focus:not(:focus-visible) {
  outline: none;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: rgba(5, 11, 20, 0.96);
  border-bottom: 1px solid rgba(118, 139, 169, 0.26);
  color: #e9eff9;
}

.topbar-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  pointer-events: none;
  background: rgba(102, 122, 147, 0.3);
}

.topbar-progress span {
  display: block;
  width: 0%;
  height: 100%;
  background: linear-gradient(120deg, var(--brand), #fff082);
  transition: width 0.12s linear;
}

.topbar-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1320px, calc(100% - 2.5rem));
  height: 76px;
  gap: clamp(0.75rem, 1.4vw, 1.25rem);
  padding: 0;
}

.brand {
  flex: 0 0 clamp(142px, 12vw, 164px);
  width: clamp(142px, 12vw, 164px);
}

.brand img {
  width: 100%;
  height: auto;
}

.topbar nav {
  flex: 1;
  min-width: 0;
  display: flex;
  justify-content: flex-end;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  clip-path: none;
  box-shadow: none;
}

.nav-links li {
  position: relative;
}

.nav-links li + li::before {
  content: none;
}

.nav-links a {
  --nav-link-skew: 0deg;
  --nav-link-radius: 0.24rem;
  --nav-link-bg: transparent;
  --nav-link-border: 0 solid transparent;
  position: relative;
  isolation: isolate;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0.46rem 0.68rem;
  color: #d8e1ee;
  background: transparent;
  border: 0;
  border-radius: var(--nav-link-radius) !important;
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.002em;
  white-space: nowrap;
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-links a::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: var(--nav-link-bg);
  border: var(--nav-link-border);
  transform: skewX(var(--nav-link-skew));
  border-radius: var(--nav-link-radius) !important;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: #ffffff;
  --nav-link-border: 0 solid transparent;
  --nav-link-bg: transparent;
  transform: none;
}

.nav-links a[aria-current="page"] {
  color: var(--brand);
  --nav-link-border: 0 solid transparent;
  --nav-link-bg: transparent;
}

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

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

.topbar-cta {
  white-space: nowrap;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 0.72rem;
  flex: 0 0 auto;
}

.topbar-phone {
  white-space: nowrap;
}

.topbar-actions .topbar-phone {
  display: grid;
  gap: 0.08rem;
  min-width: 7.9rem;
  padding: 0.2rem 0.72rem 0.2rem 0.86rem;
  border-left: 1px solid rgba(134, 154, 182, 0.38);
  line-height: 1.08;
}

.topbar-phone-label {
  color: #9eacc0;
  font-weight: 600;
}

.topbar-actions .topbar-phone-label {
  font-size: 0.72rem;
  letter-spacing: 0.025em;
}

.topbar-phone strong {
  color: var(--brand);
  font-size: 0.94rem;
  letter-spacing: 0.01em;
}

.nav-toggle,
.nav-mobile-cta,
.nav-mobile-phone,
.nav-mobile-actions,
.nav-backdrop {
  display: none;
}

.nav-toggle {
  border: 1px solid rgba(111, 130, 155, 0.52);
  background: linear-gradient(180deg, rgba(24, 38, 58, 0.96), rgba(14, 24, 40, 0.96));
  color: #eef4ff;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.86rem;
  line-height: 1;
  cursor: pointer;
  min-height: 2.3rem;
  padding: 0.4rem 0.62rem;
  align-items: center;
  gap: 0.48rem;
}

.nav-toggle-label {
  display: inline-block;
}

.nav-toggle-bars {
  width: 17px;
  display: grid;
  gap: 3px;
}

.nav-toggle-bars span {
  width: 17px;
  height: 2px;
  background: var(--brand);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.topbar.menu-open .nav-toggle-bars span:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}

.topbar.menu-open .nav-toggle-bars span:nth-child(2) {
  opacity: 0;
}

.topbar.menu-open .nav-toggle-bars span:nth-child(3) {
  transform: translateY(-5px) rotate(-45deg);
}

.btn {
  --btn-skew: -12deg; /* 78deg from vertical */
  --btn-radius: 0.26rem;
  --btn-bg: transparent;
  --btn-border: 0 solid transparent;
  position: relative;
  isolation: isolate;
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 1rem;
  font-weight: 700;
  padding: 0.72rem 1.32rem;
  min-height: 2.78rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--btn-radius) !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: var(--btn-bg);
  border: var(--btn-border);
  transform: skewX(var(--btn-skew));
  border-radius: var(--btn-radius) !important;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
}

.btn-primary {
  --btn-bg: linear-gradient(120deg, var(--brand), var(--brand-strong));
  color: var(--ink);
}

.btn-ghost {
  --btn-bg: linear-gradient(180deg, #1c2c45, #132338);
  --btn-border: 1px solid #2a415f;
  color: #edf3ff;
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  box-shadow: 0 8px 20px rgba(28, 44, 69, 0.25);
}

.btn-small {
  padding: 0.55rem 0.95rem;
  font-size: 0.95rem;
  min-height: 2.3rem;
}

.btn-full {
  width: 100%;
}

/* Keep mobile header actions out of the desktop flow after the generic .btn display rule. */
.topbar .nav-mobile-cta,
.topbar .nav-mobile-phone,
.topbar .nav-mobile-actions {
  display: none;
}

.hero-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2rem;
  align-items: start;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: clamp(560px, 74vh, 760px);
}

.hero-bg-image {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
}

.hero.section-pad {
  padding: clamp(3.4rem, 6vw, 5rem) 0;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: url("../media/galeria/auta-szkoleniowe-silver-manual-automat-warszawa.jpg") center / cover no-repeat;
  display: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(95deg, rgba(4, 10, 20, 0.78) 0%, rgba(6, 12, 24, 0.62) 42%, rgba(6, 12, 24, 0.38) 66%, rgba(6, 12, 24, 0.56) 100%);
}

.hero > .container {
  position: relative;
  z-index: 1;
}

.hero-copy {
  max-width: 660px;
  padding: 1.1rem 1.15rem 1.2rem;
  border-left: 3px solid var(--brand);
  background: linear-gradient(160deg, rgba(8, 16, 30, 0.82), rgba(8, 16, 30, 0.58));
  box-shadow: 0 22px 45px rgba(2, 6, 12, 0.36);
  backdrop-filter: blur(3px);
}

.hero-copy h1 {
  font-size: clamp(1.34rem, 3vw, 2.22rem);
  margin: 0;
  line-height: 1.11;
  letter-spacing: -0.01em;
  color: #f3f8ff;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.45);
  text-wrap: balance;
}

.hero .lead {
  color: #d9e3f1;
  font-size: clamp(1rem, 1.3vw, 1.12rem);
  line-height: 1.65;
  max-width: 52ch;
  margin: 1rem 0 1.45rem;
  font-weight: 500;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
}

.hero-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.hero .hero-actions {
  gap: 0.62rem;
}

.hero-metrics {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.hero-metrics article {
  border: none;
  border-radius: var(--radius-md);
  padding: 0.75rem;
  background: linear-gradient(180deg, rgba(10, 20, 36, 0.84), rgba(8, 16, 30, 0.78));
  box-shadow: 0 10px 24px rgba(2, 6, 12, 0.28);
}

.pricing-tab,
.strefa-tab {
  --slant-cut-current-sm: var(--slant-cut-sm);
  clip-path: polygon(var(--slant-cut-current-sm) 0, 100% 0, calc(100% - var(--slant-cut-current-sm)) 100%, 0 100%);
}

.hero-metrics strong {
  display: block;
  color: var(--brand);
  font-size: clamp(1rem, 1.62vw, 1.2rem);
  line-height: 1.14;
  letter-spacing: 0.004em;
}

.hero-metrics span {
  display: block;
  margin-top: 0.18rem;
  color: #d8e2f0;
  font-size: 0.99rem;
  line-height: 1.5;
  font-weight: 500;
}

.hero-card,
.offer-card,
.tool-card,
.quote,
.faq details {
  border: none;
  background: linear-gradient(165deg, #f9fbff, #e1e8f1);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.hero-card {
  padding: 1.35rem;
}

.hero-card h2 {
  margin-top: 0;
  margin-bottom: 0.2rem;
  font-size: 1.8rem;
  line-height: 1.08;
}

.hero-card p {
  margin-top: 0;
  color: var(--muted);
}

.hero-step {
  max-width: 470px;
  background: linear-gradient(165deg, rgba(248, 252, 255, 0.94), rgba(225, 233, 245, 0.94));
}

.hero-step-eyebrow {
  --label-skew: -12deg; /* 78deg from vertical */
  margin: 0 0 0.48rem;
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  padding: 0.22rem 0.74rem 0.2rem;
  font-family: var(--font-sans);
  font-size: clamp(0.78rem, 0.95vw, 0.92rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1;
  color: #12213a;
  background: transparent;
}

.hero-step-eyebrow::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(118deg, var(--brand), var(--brand-strong));
  transform: skewX(var(--label-skew));
  border-radius: 0.24rem !important;
}

.hero-step h2 {
  margin-bottom: 0.6rem;
  font-size: clamp(1.38rem, 2vw, 1.8rem);
  line-height: 1.12;
  letter-spacing: -0.008em;
  color: #121f34;
  text-wrap: balance;
}

.hero-step p {
  margin: 0 0 0.55rem;
  color: #4f617d;
  font-size: 1.03rem;
  line-height: 1.62;
}

.hero-course-form {
  margin-top: 0.55rem;
  display: grid;
  gap: 0.62rem;
}

.hero-course-form label {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: 0.006em;
  color: #1b2b44;
}

.hero-course-form select {
  min-height: 3rem;
  border: 1px solid #70839e;
  background: #ffffff;
  color: #0f1c31;
  font-weight: 600;
}

.hero-step-meta {
  margin: 0.75rem 0 0.45rem;
  font-size: 1.02rem;
  line-height: 1.45;
  font-weight: 600;
}

.hero-step-meta a {
  color: #13243f;
  font-weight: 700;
}

.main-home .hero-step {
  background: linear-gradient(165deg, rgba(8, 16, 30, 0.9), rgba(8, 16, 30, 0.72));
  box-shadow: 0 20px 42px rgba(2, 6, 12, 0.42);
}

.main-home .hero-step h2 {
  color: #f3f8ff;
}

.main-home .hero-step p:not(.hero-step-eyebrow),
.main-home .hero-step-meta {
  color: #d2dced;
}

.main-home .hero-step .hero-step-eyebrow {
  color: #12213a;
}

.main-home .hero-step-meta a {
  color: #ffe95c;
}

.main-home .hero-course-form label {
  color: #e5eeff;
}

.main-home .hero-course-form select {
  border-color: #38506d;
  background: rgba(12, 22, 38, 0.86);
  color: #eef5ff;
}

.home-section {
  position: relative;
  border-top: 1px solid rgba(118, 139, 169, 0.3);
  color: #edf4ff;
  background: linear-gradient(180deg, #081323 0%, #06101f 100%);
}

.home-section-heading h2,
.home-gallery-head h2 {
  color: #f3f7ff;
  font-size: clamp(1.5rem, 2.8vw, 2.2rem);
}

.home-section-heading .section-lead {
  color: #c6d4e8;
}

.home-course-grid {
  margin-top: 1.4rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.home-course-card {
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  border: 1px solid rgba(91, 117, 148, 0.42);
  background: linear-gradient(165deg, rgba(12, 24, 42, 0.96), rgba(7, 16, 30, 0.94));
  box-shadow: 0 14px 30px rgba(2, 7, 14, 0.24);
}

.home-course-media {
  display: block;
  overflow: hidden;
  background: #101b2b;
}

.home-course-media img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.home-course-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 1rem;
}

.home-course-meta {
  margin: 0 0 0.22rem;
  color: var(--brand);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.home-course-copy h3 {
  margin: 0;
  color: #f4f8ff;
  font-size: clamp(1.25rem, 2vw, 1.55rem);
}

.home-course-copy p:not(.home-course-meta) {
  margin: 0.5rem 0 1rem;
  color: #c9d7ea;
}

.home-course-copy .btn {
  margin-top: auto;
}

.home-service-strip {
  margin-top: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(91, 117, 148, 0.42);
  background: rgba(12, 24, 42, 0.76);
}

.home-service-strip strong,
.home-service-strip span {
  display: block;
}

.home-service-strip strong {
  color: #ffe961;
  font-size: 1.08rem;
}

.home-service-strip span {
  margin-top: 0.08rem;
  color: #c8d5e8;
}

.home-story {
  color: var(--text);
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.72), transparent 38%),
    linear-gradient(180deg, #e9eef5 0%, #dbe3ed 100%);
}

.home-story-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: clamp(1rem, 2.5vw, 2rem);
  align-items: center;
}

.home-story-photos {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(180px, 0.65fr);
  gap: 0.65rem;
}

.home-story-photo {
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(80, 101, 129, 0.38);
  background: #152238;
  box-shadow: 0 14px 28px rgba(21, 34, 53, 0.16);
}

.home-story-photo img {
  width: 100%;
  height: 100%;
  min-height: 310px;
  object-fit: cover;
}

.home-story-photo-detail img {
  object-position: 58% center;
}

.home-story-copy h2 {
  margin: 0.2rem 0 0.7rem;
  color: #172337;
  font-size: clamp(1.5rem, 2.8vw, 2.2rem);
  line-height: 1.12;
}

.home-story-copy > p:not(.eyebrow) {
  margin: 0 0 0.85rem;
  color: #4e5f77;
}

.home-story-list {
  margin: 0 0 1rem;
  padding-left: 1.1rem;
  color: #26364e;
}

.home-story-list li {
  margin: 0.28rem 0;
}

.home-gallery {
  background:
    radial-gradient(circle at 88% 12%, rgba(253, 224, 0, 0.08), transparent 32%),
    linear-gradient(180deg, #06101f 0%, #050c18 100%);
}

.home-gallery-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
}

.home-gallery-grid {
  margin-top: 1.2rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.7rem;
}

.home-gallery-item {
  position: relative;
  display: block;
  min-height: 210px;
  overflow: hidden;
  border: 1px solid rgba(91, 117, 148, 0.42);
  background: #0b1729;
}

.home-gallery-item-wide {
  grid-column: span 2;
}

.home-gallery-item img {
  width: 100%;
  height: 100%;
  min-height: 210px;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.home-gallery-item::after {
  content: "";
  position: absolute;
  inset: 45% 0 0;
  background: linear-gradient(180deg, transparent, rgba(3, 9, 18, 0.86));
  pointer-events: none;
}

.home-gallery-item span {
  position: absolute;
  left: 0.72rem;
  right: 0.72rem;
  bottom: 0.62rem;
  z-index: 1;
  color: #f3f7ff;
  font-weight: 800;
  text-shadow: 0 2px 9px rgba(0, 0, 0, 0.65);
}

label {
  display: block;
  font-weight: 700;
  margin-bottom: 0.34rem;
  margin-top: 0.72rem;
  letter-spacing: 0.004em;
}

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

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line-strong);
  background: #f8faff;
  color: var(--ink);
  border-radius: 0.6rem;
  padding: 0.7rem 0.78rem;
  min-height: 2.85rem;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(253, 224, 0, 0.23);
}

input::placeholder,
textarea::placeholder {
  color: #6c7b92;
}

input:invalid:not(:placeholder-shown),
textarea:invalid:not(:placeholder-shown),
select:invalid {
  border-color: rgba(201, 64, 88, 0.62);
}

.form-meta {
  color: #5f6f86;
  font-size: 0.9rem;
  margin-top: 0.65rem;
}

#form-message {
  margin: 0.65rem 0 0;
  min-height: 1.35rem;
  font-weight: 700;
}

#form-message.success {
  color: var(--ok);
}

#form-message.error {
  color: var(--danger);
}

.callback-box {
  margin-top: 1rem;
  border-top: 1px dashed rgba(97, 120, 149, 0.38);
  padding-top: 0.85rem;
}

.callback-box p {
  margin: 0.2rem 0;
}

.mini-crm {
  margin-top: 0.85rem;
  border-top: 1px dashed rgba(97, 120, 149, 0.38);
  padding-top: 0.85rem;
}

.mini-crm p {
  margin: 0 0 0.55rem;
}

.mini-crm strong {
  color: var(--brand-ink);
}

.mini-crm-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.section-heading h2 {
  font-size: clamp(1.62rem, 3.4vw, 2.65rem);
  margin: 0;
  line-height: 1.1;
  letter-spacing: -0.004em;
}

.section-lead {
  margin: 0.4rem 0 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.pricing-controls {
  margin-top: 1.3rem;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding: 0.4rem;
  border: 1px solid rgba(97, 120, 149, 0.42);
  background: rgba(255, 255, 255, 0.58);
}

.pricing-tab {
  border: 0;
  font: inherit;
  font-weight: 700;
  color: var(--text);
  background: transparent;
  padding: 0.5rem 0.9rem;
  cursor: pointer;
}

.pricing-tab.active {
  background: linear-gradient(120deg, var(--brand), var(--brand-strong));
  color: var(--ink);
}

.pricing-grid {
  margin-top: 1.2rem;
}

.pricing-main-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.pricing-addon-row {
  margin-top: 0.95rem;
  width: min(860px, 100%);
  margin-inline: auto;
}

.price-card {
  border: none;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #fbfdff, #e3e9f2);
  overflow: hidden;
}

.price-card.featured {
  box-shadow: 0 18px 40px rgba(177, 157, 0, 0.2);
}

.price-card-head {
  position: relative;
  padding: 1rem;
  min-height: 115px;
  background: #f1f5fb;
  color: #131a25;
}

.price-card.featured .price-card-head {
  background: linear-gradient(145deg, #23344c, #1a2940);
  color: #f5f8ff;
}

.price-ribbon {
  position: absolute;
  top: 0;
  right: 0;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.9rem;
  background: var(--brand);
  color: var(--ink);
  padding: 0.35rem 0.9rem;
}

.price-main {
  margin: 0;
  display: inline-flex;
  align-items: baseline;
  gap: 0.3rem;
}

.price-options {
  display: grid;
  gap: 0.5rem;
}

.price-options .price-main + .price-main {
  padding-top: 0.5rem;
  border-top: 1px solid rgba(97, 120, 149, 0.28);
}

.price-options .price-main small {
  max-width: 10.5rem;
  line-height: 1.25;
}

.price-main strong {
  font-size: clamp(2.2rem, 4vw, 3.1rem);
  line-height: 1;
}

.price-main span {
  font-size: 1.3rem;
  font-weight: 700;
}

.price-main small {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
}

.price-card-body {
  padding: 1rem;
}

.price-copy h3 {
  margin: 0 0 0.45rem;
  font-size: 1.65rem;
}

.price-card.compact {
  display: grid;
  grid-template-columns: 260px 1fr;
}

.price-card.compact .price-card-head {
  min-height: 100%;
  padding: 0.9rem 1rem;
  display: flex;
  align-items: flex-end;
}

.price-card.compact .price-main strong {
  font-size: clamp(2rem, 4vw, 2.6rem);
}

.price-card.compact .price-card-body {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr) 170px;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1rem;
}

.price-card.compact .price-copy h3 {
  font-size: 1.4rem;
}

.price-card.compact .price-features li {
  margin: 0.12rem 0;
}

.price-card.compact .price-specs {
  margin: 0;
  border-top: 0;
}

.price-card.compact .price-spec {
  padding: 0.35rem 0;
}

.price-features {
  list-style: none;
  margin: 0;
  padding: 0;
  color: #475a74;
}

.price-features li {
  margin: 0.2rem 0;
}

.price-specs {
  margin: 0.8rem 0;
  border-top: 1px solid rgba(97, 120, 149, 0.34);
}

.price-spec {
  margin: 0;
  display: flex;
  justify-content: space-between;
  gap: 0.85rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(97, 120, 149, 0.26);
}

.price-spec dt {
  margin: 0;
  color: var(--text);
  font-weight: 700;
}

.price-spec dd {
  margin: 0;
  color: var(--muted);
  text-align: right;
}

.price-card .btn {
  width: 100%;
}

.price-card.featured .btn {
  --btn-bg: linear-gradient(120deg, var(--brand), var(--brand-strong));
  color: var(--ink);
}

.price-card.compact .btn {
  max-width: 170px;
  justify-self: end;
}

.pricing-note {
  margin-top: 0.8rem;
}

.pricing-note p {
  margin: 0.2rem 0;
  color: #5f6f86;
}

.about-layout {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.about-card ul {
  margin: 0.3rem 0 0;
  padding-left: 1rem;
  color: var(--text);
}

.about-card li {
  margin: 0.18rem 0;
}

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

.team-card p {
  margin-bottom: 0.65rem;
}

.team-role {
  color: var(--brand-ink);
  font-weight: 700;
}

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

.service-card {
  display: flex;
  flex-direction: column;
}

.service-card p {
  flex: 1;
}

.service-meta {
  display: inline-flex;
  align-self: flex-start;
  border: 1px solid rgba(16, 25, 41, 0.22);
  padding: 0.18rem 0.58rem;
  color: var(--ink);
  background: rgba(253, 224, 0, 0.45);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.card-grid {
  margin-top: 1.5rem;
  display: grid;
  gap: 1rem;
}

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

.offer-card {
  padding: 1rem;
}

.offer-card h3 {
  margin-top: 0;
  margin-bottom: 0.45rem;
  font-size: 1.65rem;
}

.offer-card p {
  margin-top: 0;
  color: var(--muted);
}

.offer-card ul {
  margin: 0;
  padding-left: 1rem;
  color: var(--text);
}

.section-accent {
  background:
    linear-gradient(160deg, rgba(253, 224, 0, 0.1), transparent 44%),
    linear-gradient(20deg, rgba(132, 146, 170, 0.18), transparent 48%),
    rgba(241, 245, 251, 0.75);
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
}

.steps article {
  border: none;
  border-radius: var(--radius-md);
  padding: 1rem;
  background: linear-gradient(180deg, #fbfdff, #e3e9f2);
}

.steps span {
  color: var(--brand-ink);
  font-size: 1.4rem;
  font-family: var(--font-sans);
  font-weight: 700;
}

.steps h3 {
  margin: 0.35rem 0;
  font-size: 1.4rem;
}

.steps p {
  margin: 0;
  color: var(--muted);
}

.tool-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.tool-copy h2 {
  margin-top: 0;
  margin-bottom: 0.4rem;
  font-size: clamp(1.9rem, 4vw, 2.9rem);
}

.tool-copy p {
  margin-top: 0;
  color: var(--muted);
}

.tool-card {
  padding: 1rem;
}

.range-value {
  margin: 0.4rem 0 0;
  color: var(--muted);
}

.calc-result {
  margin-top: 0.95rem;
  border-top: 1px dashed rgba(97, 120, 149, 0.38);
  padding-top: 0.95rem;
}

.calc-result p {
  margin: 0.35rem 0;
}

.calc-result strong {
  color: var(--brand-ink);
  font-size: 1.3rem;
}

.strefa-section {
  background:
    radial-gradient(circle at 88% 14%, rgba(253, 224, 0, 0.16), transparent 36%),
    linear-gradient(150deg, rgba(249, 251, 255, 0.92), rgba(223, 231, 241, 0.94));
}

.strefa-layout {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 1rem;
  align-items: start;
}

.strefa-copy h2 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: clamp(2rem, 4vw, 3rem);
}

.strefa-copy p {
  margin-top: 0;
  color: var(--muted);
}

.strefa-benefits {
  margin: 0 0 1.2rem;
  padding-left: 1rem;
}

.strefa-benefits li {
  margin: 0.25rem 0;
}

.strefa-panel {
  border: none;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, #fafcff, #e2e9f2);
  box-shadow: var(--shadow);
  padding: 1rem;
}

.strefa-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.strefa-tab {
  border: 1px solid rgba(97, 120, 149, 0.4);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.6);
  padding: 0.38rem 0.72rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.strefa-tab.active {
  border-color: rgba(253, 224, 0, 0.74);
  color: var(--ink);
  background: linear-gradient(120deg, var(--brand), var(--brand-strong));
}

.strefa-content {
  margin-top: 0.85rem;
  border-top: 1px dashed rgba(97, 120, 149, 0.35);
  padding-top: 0.85rem;
}

.zone-eyebrow {
  --label-skew: -12deg; /* 78deg from vertical */
  margin: 0;
  position: relative;
  isolation: isolate;
  color: var(--ink);
  background: transparent;
  display: inline-flex;
  text-transform: uppercase;
  font-family: var(--font-sans);
  font-size: clamp(0.78rem, 0.95vw, 0.92rem);
  font-weight: 800;
  letter-spacing: 0.03em;
  line-height: 1;
  padding: 0.22rem 0.74rem 0.2rem;
  text-wrap: nowrap;
}

.zone-eyebrow::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(118deg, var(--brand), var(--brand-strong));
  transform: skewX(var(--label-skew));
  border-radius: 0.24rem !important;
}

.zone-title {
  margin: 0.2rem 0 0;
  font-size: 1.65rem;
}

.zone-intro {
  margin: 0.35rem 0 0;
  color: var(--muted);
}

.zone-list {
  margin: 0.85rem 0 0;
  padding-left: 1rem;
}

.zone-list li {
  margin: 0.2rem 0;
}

.zone-footer {
  margin-top: 0.85rem;
  border-top: 1px solid rgba(97, 120, 149, 0.3);
  padding-top: 0.85rem;
  display: flex;
  justify-content: space-between;
  gap: 0.85rem;
  align-items: center;
  flex-wrap: wrap;
}

.zone-note {
  margin: 0;
  color: #5d6d84;
}

.zone-link {
  color: var(--brand-ink);
  font-weight: 700;
}

.zone-link:hover,
.zone-link:focus-visible {
  color: var(--ink);
}

.gallery-grid {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.gallery-grid figure {
  margin: 0;
  border: none;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: linear-gradient(180deg, #fbfdff, #e3e9f2);
}

.gallery-grid img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-grid figure:hover img,
.gallery-grid figure:focus-within img {
  transform: scale(1.04);
}

.section-muted {
  background: rgba(234, 239, 247, 0.72);
}

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

.quote {
  padding: 1rem;
}

.quote p {
  margin-top: 0;
  margin-bottom: 0.9rem;
  color: var(--text);
}

.quote span {
  color: var(--brand-ink);
  font-weight: 700;
}

.faq {
  display: grid;
  gap: 0.6rem;
  margin-top: 1rem;
}

.faq details {
  padding: 0.7rem 0.9rem;
}

.faq summary {
  cursor: pointer;
  font-weight: 700;
}

.faq p {
  color: var(--muted);
  margin: 0.6rem 0 0;
}

.footer-with-reviews {
  padding-top: 2.8rem;
}

.footer-reviews {
  margin-bottom: 1.9rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid rgba(118, 139, 169, 0.34);
}

.footer-heading h2 {
  font-size: clamp(1.55rem, 2.4vw, 2.2rem);
  line-height: 1.12;
  letter-spacing: -0.004em;
}

.footer-testimonials {
  margin-top: 0.9rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.footer-quote {
  padding: 0.85rem 0.9rem;
  background: linear-gradient(165deg, rgba(12, 24, 42, 0.86), rgba(7, 16, 30, 0.84));
}

.footer-quote p {
  margin: 0 0 0.72rem;
  font-size: 1rem;
  line-height: 1.62;
  letter-spacing: 0.002em;
  color: #d7e3f8;
}

.footer-quote span {
  color: #ffec69;
  font-weight: 700;
}

.footer {
  border-top: 1px solid rgba(118, 139, 169, 0.4);
  background: linear-gradient(180deg, #061022, #040a15);
  color: #e7eef9;
  font-variant-numeric: tabular-nums;
}

.footer-layout {
  display: grid;
  grid-template-columns: 1.3fr 1fr auto;
  gap: 1rem;
  align-items: start;
}

.footer-layout-rich {
  grid-template-columns: minmax(280px, 1.28fr) repeat(2, minmax(170px, 0.9fr)) auto;
  gap: clamp(0.85rem, 1.5vw, 1.45rem);
  align-items: start;
}

.footer-brand-column {
  display: grid;
  gap: 0.32rem;
}

.footer-logo {
  display: inline-flex;
  width: clamp(132px, 15vw, 170px);
}

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

.footer-brand-column h2 {
  margin: 0.18rem 0 0;
  font-size: clamp(1.72rem, 2.2vw, 2.12rem);
  line-height: 1.08;
  letter-spacing: -0.008em;
  color: #f2f7ff;
}

.footer-brand-column p {
  margin: 0.16rem 0 0;
  color: #c6d4ea;
  font-size: clamp(0.94rem, 1.02vw, 1.01rem);
  line-height: 1.5;
  max-width: 36ch;
}

.footer-company-mini {
  margin-top: 0.4rem;
  font-size: 0.94rem;
  line-height: 1.45;
  display: grid;
  gap: 0.12rem;
}

.footer-company-mini strong {
  color: #eff5ff;
  font-weight: 800;
  font-size: 0.98rem;
  margin-bottom: 0.1rem;
}

.footer-company-row {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  flex-wrap: nowrap;
  min-width: 0;
}

.footer-company-label {
  color: #c2d5ec;
  font-weight: 700;
  min-width: 62px;
}

.footer-company-mini a {
  color: #deebff;
  min-width: 0;
}

.footer-company-mini a[href^="mailto:"] {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.footer-company-mini .footer-phone,
.footer-company-mini a[href^="tel:"] {
  white-space: nowrap;
}

.footer-cta-column {
  display: flex;
  justify-content: flex-end;
  align-self: start;
  padding-top: 0.22rem;
}

.footer-cta-column .btn {
  min-width: 164px;
  min-height: 42px;
  font-size: 0.99rem;
}

.footer-layout-rich > div > p:first-child {
  margin: 0 0 0.52rem;
}

.footer-layout-rich > div > p > strong {
  display: inline-block;
  color: #e9f1ff;
  font-size: 1.08rem;
  line-height: 1.15;
  letter-spacing: -0.003em;
}

.footer-layout-rich > div:not(.footer-brand-column):not(.footer-cta-column) p {
  margin: 0.1rem 0;
}

.footer-layout-rich > div:not(.footer-brand-column):not(.footer-cta-column) a {
  color: #d4e0f1;
  font-size: 1rem;
  line-height: 1.42;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.footer-layout-rich > div:not(.footer-brand-column):not(.footer-cta-column) a:hover,
.footer-layout-rich > div:not(.footer-brand-column):not(.footer-cta-column) a:focus-visible {
  color: #fff2a2;
}

.footer-bottom {
  margin-top: 0.92rem;
  padding-top: 0.78rem;
  border-top: 1px solid rgba(118, 139, 169, 0.34);
}

.footer-bottom p {
  margin: 0;
  font-size: 0.9rem;
  color: #9fb0c9;
}

.footer-rating-card {
  display: grid;
  align-content: center;
  gap: 0.28rem;
}

.footer-rating-card .footer-stars {
  margin: 0;
  color: var(--brand);
  font-size: 1.25rem;
  letter-spacing: 0.08em;
}

.footer-rating-card > strong {
  color: #fff;
  font-size: 1.7rem;
  line-height: 1;
}

.footer-rating-card > a {
  margin-top: 0.22rem;
  color: #ffe85f !important;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 0.16em;
}

.footer .footer-layout:not(.footer-layout-rich) h2 {
  margin: 0;
}

.footer .footer-layout:not(.footer-layout-rich) p:not(.eyebrow) {
  margin: 0.2rem 0;
  color: #b8c5d9;
}

.footer .eyebrow {
  color: #12213a;
}

.footer a:not(.btn) {
  color: #d1dced;
}

.footer a:not(.btn):hover,
.footer a:not(.btn):focus-visible {
  color: var(--brand);
}

.cookie-consent {
  position: fixed;
  left: clamp(0.8rem, 2vw, 1.4rem);
  right: clamp(0.8rem, 2vw, 1.4rem);
  bottom: clamp(0.8rem, 2vw, 1.2rem);
  z-index: 1000;
  margin-inline: auto;
  width: min(760px, calc(100vw - 1.6rem));
  padding: 0.92rem;
  border: 1px solid rgba(113, 137, 169, 0.45);
  border-radius: var(--radius-md);
  background: linear-gradient(160deg, rgba(8, 16, 30, 0.96), rgba(7, 14, 27, 0.92));
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.35);
}

.cookie-consent[hidden] {
  display: none !important;
}

.cookie-consent-title {
  margin: 0;
  color: #f0f6ff;
  font-size: 1.06rem;
  font-weight: 800;
}

.cookie-consent-text {
  margin: 0.35rem 0 0;
  color: #d2deef;
  line-height: 1.55;
  font-size: 0.94rem;
}

.cookie-consent a {
  color: #ffe85f;
  font-weight: 700;
}

.cookie-consent a:hover,
.cookie-consent a:focus-visible {
  color: #fff5a6;
}

.cookie-consent-actions {
  margin-top: 0.68rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.48rem;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

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

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

  .pricing-main-grid {
    grid-template-columns: 1fr;
  }

  .pricing-addon-row {
    width: 100%;
  }

  .price-card.compact {
    display: block;
  }

  .price-card.compact .price-card-body {
    grid-template-columns: 1fr;
    padding: 1rem;
  }

  .price-card.compact .price-specs {
    margin: 0.8rem 0;
    border-top: 1px solid rgba(97, 120, 149, 0.34);
  }

  .price-card.compact .btn {
    max-width: none;
    justify-self: stretch;
  }

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

  .hero-layout,
  .tool-layout,
  .strefa-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero::after {
    background: linear-gradient(180deg, rgba(6, 12, 24, 0.72) 0%, rgba(6, 12, 24, 0.46) 52%, rgba(6, 12, 24, 0.65) 100%);
  }

  .hero-copy {
    max-width: none;
  }

  .hero-step {
    max-width: none;
  }

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

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

  .footer-layout-rich {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem 0.9rem;
  }

  .footer-layout-rich .footer-brand-column,
  .footer-layout-rich .footer-cta-column {
    grid-column: 1 / -1;
  }

  .footer-brand-column p {
    max-width: none;
  }

  .footer-cta-column {
    justify-content: flex-start;
    padding-top: 0;
  }

  .footer .btn {
    justify-self: start;
  }

  .home-story-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1260px) {
  .nav-links {
    gap: 0.2rem;
  }

  .nav-links a {
    font-size: 0.9rem;
    padding: 0.26rem 0.54rem;
  }

  .topbar-cta {
    font-size: 0.9rem;
    padding: 0.52rem 0.86rem;
  }

  .topbar-actions {
    gap: 0.34rem;
  }

  .topbar-phone {
    padding-inline: 0.76rem;
  }

  .topbar-phone-label {
    display: none;
  }
}

@media (max-width: 920px) {
  .hero-copy,
  .hero-step {
    padding: 1rem;
  }

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

  .home-course-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 980px) {
  body.nav-open {
    overflow: hidden;
  }

  .topbar {
    z-index: 60;
  }

  .topbar-content {
    position: relative;
    height: 64px;
    gap: 0.55rem;
    padding: 0;
  }

  .topbar nav {
    position: absolute;
    top: calc(100% + 0.44rem);
    left: 0;
    right: 0;
    flex: none;
    justify-content: stretch;
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 32;
  }

  .topbar.menu-open nav {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .nav-links {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0.3rem;
    padding: 0.85rem;
    background: linear-gradient(180deg, rgba(7, 15, 28, 0.98), rgba(6, 12, 22, 0.98));
    border: 1px solid rgba(107, 127, 153, 0.38);
    box-shadow: 0 20px 44px rgba(0, 0, 0, 0.42);
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    width: 100%;
    min-height: 2.35rem;
    padding: 0.48rem 0.72rem;
    color: #ecf3ff;
    --nav-link-skew: 0deg;
    --nav-link-bg: rgba(14, 27, 45, 0.8);
    --nav-link-border: 1px solid rgba(87, 108, 136, 0.32);
  }

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

  .nav-links a:hover,
  .nav-links a:focus-visible {
    color: var(--brand);
    --nav-link-bg: rgba(19, 35, 57, 0.94);
    --nav-link-border: 1px solid rgba(122, 145, 175, 0.45);
    transform: none;
  }

  .nav-links a[aria-current="page"] {
    color: #0f1726;
    --nav-link-bg: linear-gradient(120deg, var(--brand), var(--brand-strong));
    --nav-link-border: 1px solid rgba(253, 224, 0, 0.86);
  }

  .nav-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .topbar-cta {
    display: none;
  }

  .topbar-actions {
    display: none;
  }

  .topbar .nav-mobile-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.44rem;
    margin-top: 0.44rem;
  }

  .topbar .nav-mobile-cta,
  .topbar .nav-mobile-phone {
    display: inline-flex;
    width: 100%;
    justify-content: center;
  }

  .topbar .nav-mobile-phone .topbar-phone-label {
    display: inline;
  }

  .nav-backdrop {
    position: fixed;
    inset: 0;
    display: block;
    border: 0;
    margin: 0;
    padding: 0;
    background: rgba(2, 7, 14, 0.72);
    opacity: 0;
    pointer-events: none;
    cursor: pointer;
    z-index: 30;
    transition: opacity 0.2s ease;
  }

  .topbar.menu-open .nav-backdrop {
    opacity: 1;
    pointer-events: auto;
  }
}

@media (max-width: 740px) {
  .section-pad {
    padding: 3.5rem 0;
  }

  .topbar-content {
    gap: 0.45rem;
  }

  .hero-card h2 {
    font-size: 1.5rem;
  }

  .hero-step h2 {
    font-size: 1.55rem;
  }

  .hero .lead {
    font-size: 0.98rem;
  }

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

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

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

  .home-story-photos {
    grid-template-columns: 1fr;
  }

  .home-story-photo img {
    min-height: 230px;
  }

  .home-service-strip,
  .home-gallery-head {
    align-items: stretch;
    flex-direction: column;
  }

  .home-gallery-head .btn {
    align-self: flex-start;
  }

  .offers-grid,
  .team-grid,
  .services-grid,
  .steps,
  .testimonials-grid,
  .gallery-grid,
  .footer-testimonials {
    grid-template-columns: 1fr;
  }

  .gallery-grid img {
    min-height: 210px;
  }

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

  .footer-brand-column h2 {
    font-size: clamp(1.58rem, 6.6vw, 1.92rem);
  }

  .footer-brand-column p {
    font-size: 0.94rem;
    line-height: 1.48;
  }

  .footer-layout-rich > div > p > strong {
    font-size: 1rem;
  }

  .footer-layout-rich > div:not(.footer-brand-column):not(.footer-cta-column) a {
    font-size: 0.96rem;
  }

  .footer-company-row {
    display: grid;
    grid-template-columns: minmax(64px, auto) 1fr;
    align-items: baseline;
    gap: 0.15rem 0.35rem;
  }

  .footer-company-label {
    min-width: 0;
  }

  .footer-bottom p {
    font-size: 0.84rem;
  }

  .cookie-consent {
    width: calc(100vw - 1.2rem);
    left: 0.6rem;
    right: 0.6rem;
    bottom: 0.6rem;
    padding: 0.8rem;
  }

  .cookie-consent-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(1120px, calc(100% - 1.1rem));
  }

  .topbar-content {
    height: 60px;
    padding: 0;
  }

  .brand {
    width: clamp(112px, 36vw, 142px);
  }

  .nav-toggle {
    min-height: 2.15rem;
    padding: 0.36rem 0.55rem;
    font-size: 0.8rem;
  }

  .nav-links {
    padding: 0.72rem;
    gap: 0.24rem;
  }

  .nav-links a {
    min-height: 2.1rem;
    font-size: 0.88rem;
    padding: 0.42rem 0.58rem;
  }

  .nav-mobile-cta.btn-small {
    font-size: 0.88rem;
    min-height: 2.2rem;
    padding: 0.46rem 0.74rem;
  }

  .topbar .nav-mobile-actions {
    grid-template-columns: 1fr;
  }

  .nav-mobile-phone.btn-small {
    font-size: 0.84rem;
    min-height: 2.2rem;
    padding: 0.46rem 0.64rem;
  }

  .home-gallery-grid {
    grid-template-columns: 1fr;
  }

  .home-gallery-item-wide {
    grid-column: span 1;
  }

  .home-gallery-item,
  .home-gallery-item img {
    min-height: 190px;
  }

  .hero.section-pad {
    padding: 2.6rem 0;
  }

  .hero-copy,
  .hero-step {
    padding: 0.82rem;
  }

  .hero-copy h1 {
    font-size: clamp(1.2rem, 6.4vw, 1.48rem);
    line-height: 1.14;
  }

  .hero .lead {
    margin: 0.72rem 0 1.02rem;
    font-size: 0.92rem;
    line-height: 1.52;
  }

  .hero-metrics {
    margin-top: 1rem;
    gap: 0.45rem;
  }

  .hero-metrics article {
    padding: 0.56rem;
  }

  .hero-metrics strong {
    font-size: 0.98rem;
  }

  .hero-metrics span {
    margin-top: 0.08rem;
    font-size: 0.86rem;
    line-height: 1.34;
  }

  .hero-step-eyebrow {
    font-size: 0.73rem;
    padding: 0.18rem 0.58rem;
  }

  .hero-step h2 {
    font-size: clamp(1.24rem, 5.6vw, 1.38rem);
    margin-bottom: 0.42rem;
  }

  .hero-step p {
    font-size: 0.92rem;
    line-height: 1.5;
    margin-bottom: 0.45rem;
  }

  .hero-course-form {
    margin-top: 0.35rem;
    gap: 0.42rem;
  }

  .hero-course-form select {
    min-height: 2.7rem;
    font-size: 0.94rem;
  }

  .btn {
    font-size: 0.94rem;
    padding: 0.62rem 1.02rem;
  }

  .btn-small {
    font-size: 0.88rem;
    padding: 0.48rem 0.78rem;
  }

  .footer-with-reviews {
    padding-top: 2.2rem;
  }

  .footer-reviews {
    margin-bottom: 1.25rem;
    padding-bottom: 0.85rem;
  }

  .footer-quote {
    padding: 0.68rem 0.7rem;
  }

  .footer-quote p {
    font-size: 0.9rem;
    line-height: 1.48;
    margin-bottom: 0.52rem;
  }

  .footer-layout-rich {
    gap: 0.72rem;
  }

  .footer-brand-column h2 {
    font-size: clamp(1.38rem, 7vw, 1.62rem);
  }

  .footer-brand-column p {
    font-size: 0.88rem;
    line-height: 1.42;
  }

  .footer-company-mini {
    font-size: 0.86rem;
    gap: 0.08rem;
  }

  .footer-company-mini strong {
    font-size: 0.92rem;
  }

  .footer-layout-rich > div > p > strong {
    font-size: 0.92rem;
  }

  .footer-layout-rich > div:not(.footer-brand-column):not(.footer-cta-column) a {
    font-size: 0.88rem;
    line-height: 1.34;
  }

  .footer-cta-column .btn {
    width: 100%;
    min-width: 0;
    min-height: 38px;
  }

  .footer-bottom {
    margin-top: 0.68rem;
    padding-top: 0.58rem;
  }

  .footer-bottom p {
    font-size: 0.78rem;
    line-height: 1.35;
  }

  .cookie-consent {
    width: calc(100vw - 0.9rem);
    left: 0.45rem;
    right: 0.45rem;
    bottom: max(0.45rem, env(safe-area-inset-bottom));
    padding: 0.7rem;
  }

  .cookie-consent-title {
    font-size: 0.94rem;
  }

  .cookie-consent-text {
    font-size: 0.84rem;
    line-height: 1.45;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .silver-webgl-wrap {
    display: none;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* GUI/UX refinement: consistent panel depth and clearer affordance */
.hero-copy,
.hero-card,
.hero-metrics article,
.offer-card,
.tool-card,
.quote,
.faq details,
.steps article,
.price-card,
.strefa-panel,
.gallery-grid figure {
  border: 1px solid rgba(99, 121, 149, 0.28) !important;
  box-shadow: 0 10px 24px rgba(3, 10, 20, 0.16) !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.section-heading,
.section-lead {
  max-width: 72ch;
}

.section-lead {
  line-height: 1.62;
  color: #5a6a82;
}

.footer-layout-rich > div:not(.footer-brand-column):not(.footer-cta-column) p {
  margin: 0.14rem 0;
}

.footer-brand-column p {
  max-width: 38ch;
}

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

.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.faq summary::after {
  content: "+";
  color: #344a68;
  font-weight: 800;
  line-height: 1;
}

.faq details[open] summary::after {
  content: "−";
}

@media (hover: hover) and (pointer: fine) {
  .home-course-media:hover img,
  .home-course-media:focus-visible img,
  .home-gallery-item:hover img,
  .home-gallery-item:focus-visible img {
    transform: scale(1.025);
  }

  .offer-card:hover,
  .tool-card:hover,
  .quote:hover,
  .steps article:hover,
  .gallery-grid figure:hover {
    transform: translateY(-2px);
    border-color: rgba(253, 224, 0, 0.42) !important;
    box-shadow: 0 16px 30px rgba(3, 10, 20, 0.24) !important;
  }

  .footer-layout-rich > div:not(.footer-brand-column):not(.footer-cta-column) a:hover,
  .footer-layout-rich > div:not(.footer-brand-column):not(.footer-cta-column) a:focus-visible {
    color: #fff2a2;
    opacity: 1;
  }
}

/* Silver 2.0 — production visual system */
.reveal,
.reveal.active {
  opacity: 1;
  transform: none;
}

.topbar {
  background: rgba(4, 10, 19, 0.9);
  border-bottom-color: rgba(157, 177, 205, 0.22);
  box-shadow: 0 10px 40px rgba(1, 5, 12, 0.22);
}

.topbar-content {
  width: min(1380px, calc(100% - 3rem));
  height: 84px;
  gap: clamp(1rem, 2vw, 2rem);
}

.brand {
  flex-basis: clamp(164px, 13vw, 190px);
  width: clamp(164px, 13vw, 190px);
}

.nav-links a {
  padding-inline: 0.78rem;
  font-size: 0.96rem;
}

.topbar-actions {
  gap: 1rem;
}

.topbar-actions .topbar-phone {
  min-width: 9rem;
}

.topbar-phone strong {
  font-size: 1.02rem;
}

.btn {
  min-height: 3.15rem;
  padding: 0.82rem 1.55rem;
  font-size: 1.02rem;
}

.btn-small {
  min-height: 2.75rem;
  padding: 0.66rem 1.1rem;
  font-size: 0.96rem;
}

.main-home .hero {
  min-height: min(820px, calc(100svh - 84px));
  display: grid;
  align-items: center;
}

.main-home .hero.section-pad {
  padding: clamp(5rem, 8vw, 8rem) 0;
}

.hero::after {
  background:
    linear-gradient(90deg, rgba(3, 9, 18, 0.95) 0%, rgba(4, 11, 22, 0.82) 42%, rgba(4, 11, 22, 0.32) 72%, rgba(4, 11, 22, 0.58) 100%),
    linear-gradient(180deg, rgba(4, 10, 20, 0.16) 0%, rgba(4, 10, 20, 0.22) 70%, #06101f 100%);
}

.hero-layout {
  grid-template-columns: minmax(0, 1.18fr) minmax(360px, 0.72fr);
  gap: clamp(2.5rem, 6vw, 6.5rem);
  align-items: center;
}

.hero-copy {
  max-width: 780px;
  padding: 0;
  border: 0 !important;
  background: transparent;
  box-shadow: none !important;
  backdrop-filter: none;
}

.hero-copy h1 {
  max-width: 13ch;
  font-size: clamp(3rem, 5.7vw, 5.4rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
  font-weight: 800;
}

.hero .lead {
  max-width: 58ch;
  margin: 1.6rem 0 2rem;
  font-size: clamp(1.12rem, 1.55vw, 1.32rem);
  line-height: 1.65;
}

.hero-metrics {
  margin-top: 2.5rem;
  gap: 0;
  border-top: 1px solid rgba(174, 193, 218, 0.32);
}

.hero-metrics article {
  padding: 1.15rem 1.1rem 0 0;
  border: 0 !important;
  background: transparent;
  box-shadow: none !important;
}

.hero-metrics article + article {
  padding-left: 1.1rem;
  border-left: 1px solid rgba(174, 193, 218, 0.25) !important;
}

.hero-metrics strong {
  font-size: clamp(1.05rem, 1.4vw, 1.28rem);
}

.hero-metrics span {
  margin-top: 0.3rem;
  font-size: 0.95rem;
  line-height: 1.45;
}

.main-home .hero-step {
  max-width: 500px;
  padding: clamp(1.5rem, 2.5vw, 2.25rem);
  border: 1px solid rgba(160, 181, 210, 0.34) !important;
  border-radius: var(--radius-lg);
  background: linear-gradient(150deg, rgba(10, 22, 39, 0.94), rgba(5, 13, 26, 0.86));
  box-shadow: 0 32px 70px rgba(0, 0, 0, 0.42) !important;
  backdrop-filter: blur(18px);
}

.hero-step h2 {
  margin-top: 0.25rem;
  font-size: clamp(1.8rem, 2.5vw, 2.35rem);
}

.main-home .hero-step p:not(.hero-step-eyebrow) {
  font-size: 1.05rem;
}

.hero-course-form select {
  min-height: 3.35rem;
  padding-inline: 0.9rem;
  border-radius: 0.65rem;
}

.home-section-heading h2,
.home-gallery-head h2,
.home-story-copy h2,
.footer-heading h2 {
  font-size: clamp(2.35rem, 4.2vw, 4rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.home-section-heading .section-lead,
.home-story-copy > p:not(.eyebrow) {
  font-size: clamp(1.04rem, 1.35vw, 1.2rem);
  line-height: 1.7;
}

.home-course-grid {
  margin-top: 2.5rem;
  gap: 1.5rem;
}

.home-course-card {
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 60px rgba(1, 7, 16, 0.26);
}

.home-course-media img {
  aspect-ratio: 16 / 10;
}

.home-course-copy {
  padding: clamp(1.35rem, 2.6vw, 2.2rem);
}

.home-course-copy h3 {
  font-size: clamp(1.75rem, 2.6vw, 2.45rem);
  line-height: 1.08;
}

.home-course-copy p:not(.home-course-meta) {
  font-size: 1.05rem;
  line-height: 1.65;
}

.home-service-strip {
  margin-top: 1.5rem;
  padding: 1.4rem 1.6rem;
  border-radius: var(--radius-md);
}

.home-service-strip strong {
  font-size: 1.25rem;
}

.home-story-layout {
  gap: clamp(2.5rem, 6vw, 6.5rem);
}

.home-story-photos {
  gap: 1rem;
}

.home-story-photo {
  border-radius: var(--radius-lg);
  box-shadow: 0 28px 60px rgba(21, 34, 53, 0.2);
}

.home-story-photo img {
  min-height: 440px;
}

.home-story-list {
  margin: 1.5rem 0 2rem;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.8rem;
}

.home-story-list li {
  position: relative;
  padding-left: 2rem;
  font-size: 1.05rem;
}

.home-story-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 1rem;
  height: 0.42rem;
  background: var(--brand);
  transform: skewX(-16deg);
}

.home-gallery-grid {
  margin-top: 2rem;
  gap: 1rem;
}

.home-gallery-item {
  min-height: 300px;
  border-radius: var(--radius-md);
  box-shadow: 0 18px 40px rgba(1, 7, 16, 0.24);
}

.home-gallery-item img {
  min-height: 300px;
}

.home-gallery-item span {
  left: 1.15rem;
  right: 1.15rem;
  bottom: 1rem;
  font-size: 1.08rem;
}

.page-cta {
  position: relative;
  overflow: hidden;
  color: #edf4ff;
  border-top: 1px solid rgba(145, 167, 196, 0.2);
  background:
    radial-gradient(circle at 86% 18%, rgba(253, 224, 0, 0.15), transparent 28%),
    linear-gradient(135deg, #0c1b2f, #07111f);
}

.page-cta::after {
  content: "";
  position: absolute;
  right: -8vw;
  bottom: -10rem;
  width: 34vw;
  height: 18rem;
  border: 1px solid rgba(253, 224, 0, 0.22);
  transform: skewX(-18deg) rotate(-8deg);
  pointer-events: none;
}

.page-cta-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
}

.page-cta-copy {
  max-width: 760px;
}

.page-cta-copy h2 {
  margin: 0.3rem 0 0;
  color: #f4f8ff;
  font-size: clamp(2.4rem, 4.8vw, 4.6rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.page-cta-copy p:not(.eyebrow) {
  margin: 1.1rem 0 0;
  color: #cbd8e9;
  font-size: 1.12rem;
  line-height: 1.65;
}

.page-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  flex: 0 0 auto;
}

.footer {
  position: relative;
  overflow: hidden;
  border-top-color: rgba(145, 166, 195, 0.24);
  background:
    radial-gradient(circle at 88% 12%, rgba(253, 224, 0, 0.1), transparent 28%),
    linear-gradient(145deg, #071324 0%, #030912 72%);
}

.footer.section-pad {
  padding: clamp(5rem, 7vw, 7rem) 0 2.5rem;
}

.footer-layout-rich {
  grid-template-columns: minmax(320px, 1.25fr) minmax(150px, 0.65fr) minmax(210px, 0.8fr) minmax(250px, 0.85fr);
  gap: clamp(2rem, 4vw, 4.5rem);
}

.footer-brand-column {
  gap: 0.55rem;
}

.footer-logo {
  width: clamp(160px, 16vw, 210px);
}

.footer-brand-column h2 {
  margin-top: 0.55rem;
  font-size: clamp(2rem, 2.7vw, 2.65rem);
}

.footer-brand-column p {
  font-size: 1rem;
  line-height: 1.65;
}

.footer-layout-rich > div > p:first-child {
  margin-top: 0.4rem;
  margin-bottom: 1rem;
}

.footer-layout-rich > div > p > strong {
  font-size: 1.12rem;
}

.footer-layout-rich > div:not(.footer-brand-column):not(.footer-cta-column) p {
  margin: 0.35rem 0;
}

.footer-layout-rich > div:not(.footer-brand-column):not(.footer-cta-column) a {
  font-size: 1rem;
  line-height: 1.65;
}

.footer-cta-column {
  display: grid;
  justify-content: stretch;
  gap: 0.7rem;
  padding: 1.5rem;
  border: 1px solid rgba(154, 176, 207, 0.28);
  border-radius: var(--radius-lg);
  background: rgba(12, 25, 43, 0.72);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.24);
}

.footer-cta-kicker {
  margin: 0;
  color: var(--brand);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-cta-title {
  margin: 0;
  color: #f4f8ff;
  font-size: 1.55rem;
  line-height: 1.15;
}

.footer-cta-text {
  margin: 0 0 0.35rem;
  color: #bfcde1;
  line-height: 1.55;
}

.footer-cta-column .btn {
  width: 100%;
}

.footer-cta-phone {
  color: #ffe85f !important;
  font-weight: 800;
  text-align: center;
}

.footer-bottom {
  margin-top: 3rem;
  padding-top: 1.4rem;
}

@media (max-width: 1180px) {
  .topbar-content {
    width: min(1280px, calc(100% - 2rem));
  }

  .hero-layout {
    grid-template-columns: minmax(0, 1fr) minmax(340px, 0.72fr);
    gap: 2rem;
  }

  .hero-copy h1 {
    font-size: clamp(2.8rem, 5vw, 4.6rem);
  }

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

  .page-cta-inner {
    align-items: start;
    flex-direction: column;
  }

  .footer-layout-rich .footer-brand-column,
  .footer-layout-rich .footer-cta-column {
    grid-column: auto;
  }
}

@media (max-width: 980px) {
  .container {
    width: min(1280px, calc(100% - 2rem));
  }

  .topbar-content {
    height: 68px;
  }

  .main-home .hero {
    min-height: auto;
  }

  .hero-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

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

  .main-home .hero-step {
    max-width: 680px;
  }

  .home-story-layout {
    gap: 2.5rem;
  }
}

@media (max-width: 740px) {
  .section-pad {
    padding: 4.25rem 0;
  }

  .main-home .hero.section-pad {
    padding: 4.5rem 0 4rem;
  }

  .hero-copy h1 {
    font-size: clamp(2.4rem, 12vw, 3.7rem);
  }

  .hero .lead {
    margin: 1.2rem 0 1.5rem;
    font-size: 1.05rem;
  }

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

  .hero-metrics article,
  .hero-metrics article + article {
    padding: 0.9rem 0;
    border-left: 0 !important;
    border-bottom: 1px solid rgba(174, 193, 218, 0.22) !important;
  }

  .home-course-grid,
  .home-story-photos {
    grid-template-columns: 1fr;
  }

  .home-story-photo img {
    min-height: 280px;
  }

  .home-gallery-grid {
    grid-template-columns: 1fr;
  }

  .home-gallery-item-wide {
    grid-column: auto;
  }

  .home-gallery-item,
  .home-gallery-item img {
    min-height: 250px;
  }

  .footer-layout-rich {
    grid-template-columns: 1fr;
    gap: 2.25rem;
  }

  .footer-layout-rich .footer-brand-column,
  .footer-layout-rich .footer-cta-column {
    grid-column: auto;
  }

  .footer-cta-column {
    max-width: 520px;
  }

  .page-cta-actions {
    width: 100%;
  }

  .page-cta-actions .btn {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .container {
    width: calc(100% - 1.5rem);
  }

  .topbar-content {
    height: 64px;
  }

  .brand {
    width: clamp(126px, 38vw, 150px);
  }

  .main-home .hero.section-pad {
    padding: 3.75rem 0 3.25rem;
  }

  .hero-copy,
  .hero-step {
    padding: 0;
  }

  .hero-copy h1 {
    font-size: clamp(2.25rem, 12.5vw, 3.2rem);
    line-height: 1;
  }

  .main-home .hero-step {
    padding: 1.25rem;
  }

  .home-course-copy {
    padding: 1.25rem;
  }

  .home-section-heading h2,
  .home-gallery-head h2,
  .home-story-copy h2,
  .footer-heading h2 {
    font-size: clamp(2rem, 10vw, 2.8rem);
  }

  .home-service-strip {
    padding: 1.15rem;
  }

  .footer.section-pad {
    padding-top: 4rem;
  }

  .footer-brand-column h2 {
    font-size: 2rem;
  }

  .page-cta-copy h2 {
    font-size: clamp(2.2rem, 12vw, 3.1rem);
  }
}

/* Silver 2.1 — production finish: deliberate crops and a real mobile composition */
html,
body {
  max-width: 100%;
  overflow-x: clip;
}

.hero-bg-image {
  object-position: 52% 54%;
}

.hero-copy h1,
.home-section-heading h2,
.home-gallery-head h2,
.home-story-copy h2,
.page-cta-copy h2 {
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

.home-course-media img {
  object-position: center 58%;
}

.home-story-photo-main img {
  object-position: 51% center;
}

.home-story-photo-detail img {
  object-position: 45% center;
}

.home-gallery-item:nth-child(3) img {
  object-position: 52% 34%;
}

.home-gallery-item:nth-child(4) img {
  object-position: 43% center;
}

.cookie-consent {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.2rem 1rem;
  align-items: center;
  width: min(960px, calc(100vw - 2rem));
  border-left: 3px solid var(--brand);
  background: rgba(6, 14, 27, 0.97);
  backdrop-filter: blur(18px);
}

.cookie-consent-title,
.cookie-consent-text {
  grid-column: 1;
}

.cookie-consent-actions {
  grid-column: 2;
  grid-row: 1 / span 2;
  margin: 0;
}

@media (min-width: 981px) {
  .main-home .hero {
    min-height: min(780px, calc(100svh - 84px));
  }

  .hero-copy h1 {
    max-width: 13.5ch;
    font-size: clamp(3.2rem, 4.7vw, 4.45rem);
  }

  .home-story-photo-main {
    transform: translateY(-1.5rem);
  }

  .home-story-photo-detail {
    transform: translateY(1.5rem);
  }
}

@media (max-width: 980px) {
  .silver-webgl-wrap {
    display: none !important;
  }

  .topbar nav {
    position: fixed;
    top: 68px;
    left: 0.75rem;
    right: 0.75rem;
    max-height: calc(100svh - 80px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .nav-links a {
    min-height: 46px;
    padding: 0.72rem 0.85rem;
    font-size: 1rem;
  }

  .nav-toggle {
    min-width: 74px;
    min-height: 44px;
    justify-content: center;
  }
}

@media (max-width: 740px) {
  .container {
    width: calc(100% - 1.5rem);
  }

  .section-pad {
    padding: 3.75rem 0;
  }

  .topbar-content {
    height: 64px;
  }

  .topbar nav {
    top: 64px;
    left: 0.55rem;
    right: 0.55rem;
    max-height: calc(100svh - 72px);
  }

  .brand {
    width: clamp(132px, 39vw, 154px);
  }

  .nav-toggle {
    padding: 0.55rem 0.7rem;
    font-size: 0.82rem;
  }

  .topbar .nav-mobile-actions {
    gap: 0.55rem;
    margin-top: 0.55rem;
  }

  .topbar .nav-mobile-actions .btn {
    min-height: 46px;
  }

  .main-home .hero,
  .main-home .hero.section-pad {
    min-height: auto;
    padding: 0 0 3rem;
    background: #071323;
  }

  .hero-bg-image {
    inset: 0 0 auto;
    width: 100%;
    height: clamp(27rem, 112vw, 31rem);
    object-position: 59% center;
    filter: saturate(0.92) contrast(1.04);
  }

  .hero::after {
    inset: 0 0 auto;
    height: clamp(28rem, 116vw, 32rem);
    background:
      linear-gradient(180deg, rgba(3, 8, 16, 0.1) 0%, rgba(3, 9, 18, 0.22) 42%, rgba(5, 13, 25, 0.9) 78%, #071323 100%),
      linear-gradient(90deg, rgba(3, 8, 16, 0.5), rgba(3, 8, 16, 0.08) 76%);
  }

  .hero-layout {
    grid-template-columns: minmax(0, 1fr);
    padding-top: clamp(19.5rem, 80vw, 22rem);
    gap: 1.15rem;
  }

  .hero-copy {
    width: 100%;
    min-width: 0;
    max-width: none;
    padding: 0;
    border-left: 0;
    background: transparent;
    box-shadow: none !important;
    backdrop-filter: none;
  }

  .hero-copy h1 {
    max-width: 12ch;
    font-size: clamp(2.15rem, 10vw, 2.65rem);
    line-height: 0.99;
    letter-spacing: -0.04em;
    text-wrap: balance;
  }

  .eyebrow {
    max-width: 100%;
    white-space: normal;
    text-wrap: balance;
  }

  .hero .lead {
    max-width: 38rem;
    margin: 1rem 0 1.3rem;
    font-size: 1rem;
    line-height: 1.58;
  }

  .hero-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
  }

  .hero-actions .btn {
    min-width: 0;
    min-height: 48px;
    padding-inline: 0.75rem;
  }

  .hero-metrics {
    display: grid;
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(76%, 1fr);
    gap: 0.65rem;
    margin-top: 1.5rem;
    padding: 0 0 0.35rem;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: inline mandatory;
    scrollbar-width: none;
    border-top: 0;
  }

  .hero-metrics::-webkit-scrollbar,
  .home-story-photos::-webkit-scrollbar,
  .home-gallery-grid::-webkit-scrollbar {
    display: none;
  }

  .hero-metrics article,
  .hero-metrics article + article {
    min-height: 106px;
    padding: 0.95rem;
    scroll-snap-align: start;
    border: 1px solid rgba(132, 158, 191, 0.3) !important;
    background: rgba(8, 19, 35, 0.88) !important;
  }

  .hero-metrics strong {
    font-size: 1.06rem;
  }

  .hero-metrics span {
    margin-top: 0.28rem;
    font-size: 0.9rem;
    line-height: 1.42;
  }

  .main-home .hero-step {
    width: 100%;
    max-width: none;
    padding: 1.2rem;
    border-color: rgba(152, 179, 213, 0.38) !important;
    background: #0a1a2e;
    box-shadow: 0 22px 46px rgba(0, 0, 0, 0.28) !important;
    backdrop-filter: none;
  }

  .hero-step h2 {
    font-size: 1.65rem;
  }

  .hero-course-form select,
  .hero-course-form .btn,
  .hero-step > .btn {
    min-height: 50px;
  }

  .home-section-heading h2,
  .home-gallery-head h2,
  .home-story-copy h2,
  .footer-heading h2 {
    max-width: 15ch;
    font-size: clamp(2rem, 9vw, 2.65rem);
    line-height: 1.03;
  }

  .home-section-heading .section-lead,
  .home-story-copy > p:not(.eyebrow) {
    font-size: 1rem;
    line-height: 1.62;
  }

  .home-course-grid {
    gap: 1rem;
    margin-top: 1.75rem;
  }

  .home-course-media img {
    aspect-ratio: 16 / 10;
  }

  .home-course-copy {
    padding: 1.15rem;
  }

  .home-course-copy h3 {
    font-size: 1.65rem;
  }

  .home-service-strip {
    align-items: stretch;
    flex-direction: column;
    padding: 1.15rem;
  }

  .home-service-strip .btn {
    width: 100%;
  }

  .home-story-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .home-story-photos {
    display: grid;
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 86%;
    gap: 0.7rem;
    margin-inline: -0.75rem;
    padding-inline: 0.75rem;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: inline mandatory;
    scrollbar-width: none;
  }

  .home-story-photo {
    scroll-snap-align: center;
  }

  .home-story-photo img {
    min-height: 260px;
    aspect-ratio: 4 / 3;
  }

  .home-gallery-head {
    align-items: start;
    flex-direction: column;
  }

  .home-gallery-grid {
    display: grid;
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 84%;
    gap: 0.7rem;
    margin: 1.6rem -0.75rem 0;
    padding: 0 0.75rem 0.35rem;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: inline mandatory;
    scrollbar-width: none;
  }

  .home-gallery-item,
  .home-gallery-item-wide {
    grid-column: auto;
    min-height: 260px;
    scroll-snap-align: center;
  }

  .home-gallery-item img {
    min-height: 260px;
  }

  .page-cta-copy h2 {
    max-width: 13ch;
    font-size: clamp(2.25rem, 10vw, 3rem);
  }

  .cookie-consent {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.2rem 0.75rem;
    align-items: center;
    width: calc(100vw - 1rem);
    left: 0.5rem;
    right: 0.5rem;
    bottom: max(0.5rem, env(safe-area-inset-bottom));
    padding: 0.8rem;
  }

  .cookie-consent[hidden] {
    display: none !important;
  }

  .cookie-consent-title,
  .cookie-consent-text {
    grid-column: 1;
  }

  .cookie-consent-title {
    font-size: 0.94rem;
  }

  .cookie-consent-text {
    margin-top: 0.12rem;
    font-size: 0.78rem;
    line-height: 1.38;
  }

  .cookie-consent-actions {
    grid-column: 2;
    grid-row: 1 / span 2;
    margin: 0;
  }

  .cookie-consent-actions .btn {
    min-height: 44px;
    padding-inline: 1rem;
  }
}

@media (max-width: 390px) {
  .hero-copy h1 {
    font-size: 2.12rem;
  }

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

  .cookie-consent {
    grid-template-columns: 1fr;
  }

  .cookie-consent-actions {
    grid-column: 1;
    grid-row: auto;
    margin-top: 0.45rem;
  }

  .cookie-consent-actions .btn {
    width: 100%;
  }
}
