/* ============================================================
   LM MEDIA — Łukasz Matuszewski
   Minimalist editorial design system
   Palette: black / white / blue accent
   ============================================================ */

:root {
  --black: #0A0A0A;
  --white: #FFFFFF;
  --paper: #FAFAFA;
  --ink: #0A0A0A;
  --muted: #525252;
  --faint: #A3A3A3;
  --line: #E5E5E5;
  --line-dark: #262626;
  --blue: #0055FF;
  --blue-2: #00A2FF;
  --grad: linear-gradient(90deg, #0055FF 0%, #00A2FF 100%);
  --font-head: 'Manrope', sans-serif;
  --font-body: 'Inter', sans-serif;
  --container: 1200px;
  --pad: 24px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}


 .preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 99999;
  display: flex;
  flex-flow: row nowrap;
  justify-content: center;
  align-items: center;
  background: #ffffff;
  
  opacity: 1;
  visibility: visible;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.preloader.hide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.spinner {
  border: 1px solid transparent;
  border-radius: 3px;
  position: relative;
}

.spinner:before {
  content: '';
  box-sizing: border-box;
  position: absolute;
  top: 50%;
  left: 50%;
  width: 45px;
  height: 45px;
  margin-top: -22px;
  margin-left: -22px;
  border-radius: 50%;
  border: 1px solid #575757;
  border-top-color: #ffffff;
  animation: spinner .9s linear infinite;
}

@-webkit-keyframes spinner {
  to {
    transform: rotate(360deg);
  }
}

@keyframes spinner {
  to {
    transform: rotate(360deg);
  }
}
img {
  max-width: 100%;
  display: block;
}

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

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

::selection {
  background: var(--blue);
  color: var(--white);
}

/* ---------- Typography ---------- */

h1, h2, h3 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

h1 {
  font-size: clamp(2.5rem, 6vw, 4.25rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
}

h3 {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.lead {
  font-size: 1.125rem;
  color: var(--muted);
  max-width: 34em;
}

.eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 20px;
}

.eyebrow::before {
  content: "";
  display: inline-block;
  width: 24px;
  height: 2px;
  background: var(--grad);
  vertical-align: middle;
  margin-right: 10px;
  transform: translateY(-2px);
}

.accent {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 24px;
  padding-top: 18px;
  padding-bottom: 18px;
}

.brand {
  font-family: var(--font-head);
  font-size: 1.35rem;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: baseline;
  white-space: nowrap;

}

.brand img {
  padding: 5px;
  width: 150px;
}

.brand-l { font-weight: 800; color: var(--black); }
.brand-m {
  font-weight: 800;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.brand-media {
  font-weight: 400;
  color: var(--black);
  margin-left: 8px;
  letter-spacing: 0.28em;
  font-size: 1.05rem;
}

.brand--light .brand-l,
.brand--light .brand-media { color: var(--white); }

.nav-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 28px;
}

.nav-links a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--muted);
  padding: 4px 0;
  border-bottom: 1px solid transparent;
  transition: color 0.25s ease, border-color 0.25s ease;
}

.nav-links a:hover {
  color: var(--black);
}

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

.nav-links .nav-cta {
  color: var(--white);
  background: var(--blue);
  padding: 8px 20px;
  border: 1px solid var(--blue);
  transition: background 0.25s ease, color 0.25s ease;
}

.nav-links .nav-cta:hover {
  background: var(--blue-2);
  border-color: var(--blue-2);
  color: var(--white);
}

.nav-links a.nav-cta[aria-current="page"] {
  color: var(--white);
  border-bottom-color: var(--black);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 14px 32px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: opacity 0.25s ease, background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.btn--primary {
  background: var(--grad);
  color: var(--white);
}

.btn--primary:hover { opacity: 0.88; }

.btn--outline {
  background: transparent;
  color: var(--black);
  border-color: var(--black);
}

.btn--outline:hover {
  background: var(--black);
  color: var(--white);
}

.btn--outline-light {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

.btn--outline-light:hover {
  background: var(--white);
  color: var(--black);
}

/* ---------- Hero ---------- */

.hero {
  padding: 20px 0 88px;
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 64px;
  align-items: center;
}

.hero p.lead { margin: 28px 0 40px; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.hero-logo {

  padding: 38px;

}

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

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 40px;
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.hero-meta span {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
}

/* ---------- Sections ---------- */

.section { padding: 96px 0; }
.section--paper { background: var(--paper); }
.section--tight { padding: 72px 0; }

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

.section-head p {
  color: var(--muted);
  max-width: 26em;
  font-size: 0.98rem;
}

/* ---------- Service rows (home) ---------- */

.service-rows { border-top: 1px solid var(--line); }

.service-row {
  display: grid;
  grid-template-columns: 90px 1fr 1.2fr auto;
  gap: 32px;
  align-items: center;
  padding: 36px 0;
  border-bottom: 1px solid var(--line);
  transition: background 0.25s ease;
}

.service-row:hover { background: var(--paper); }

.service-row .num {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  color: var(--faint);
  letter-spacing: 0.08em;
}

.service-row h3 { transition: color 0.25s ease; }
.service-row:hover h3 { color: var(--blue); }

.service-row p {
  color: var(--muted);
  font-size: 0.95rem;
}

.service-row .row-link {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--black);
  white-space: nowrap;
  border-bottom: 1px solid var(--black);
  padding-bottom: 2px;
  transition: color 0.25s ease, border-color 0.25s ease;
}

.service-row .row-link:hover {
  color: var(--blue);
  border-color: var(--blue);
}

/* ---------- Process grid ---------- */

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--line);
}

.process-item {
  padding: 40px 32px;
  border-right: 1px solid var(--line);
}

.process-item:last-child { border-right: none; }

.process-item .num {
  display: block;
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  margin-bottom: 44px;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.process-item h3 { margin-bottom: 12px; font-size: 1.1rem; }
.process-item p { color: var(--muted); font-size: 0.92rem; }

/* ---------- Dark CTA band ---------- */

.band-dark {
  background: var(--black);
  color: var(--white);
  padding: 104px 0;
}

.band-dark h2 { color: var(--white); max-width: 16em; }
.band-dark .lead { color: #A3A3A3; margin: 20px 0 40px; }

/* ---------- Services page ---------- */

.page-hero {
  padding: 88px 0 64px;
  border-bottom: 1px solid var(--line);
}

.page-hero .lead { margin-top: 24px; }

.service-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
  padding: 80px 0;
  border-bottom: 1px solid var(--line);
}

.service-block:last-of-type { border-bottom: none; }

.service-block:nth-of-type(even) .service-media { order: 2; }

.service-media {
  border: 1px solid var(--line);
  overflow: hidden;
}

.service-media img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  filter: grayscale(1);
}

.service-body .num {
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  display: block;
  margin-bottom: 20px;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.service-body h2 { margin-bottom: 18px; }
.service-body > p { color: var(--muted); margin-bottom: 28px; }

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

.check-list li {
  padding: 14px 0 14px 28px;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
  color: var(--ink);
  position: relative;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 22px;
  width: 12px;
  height: 2px;
  background: var(--grad);
}

/* ---------- About page ---------- */

.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 72px;
  align-items: start;
}

.about-photo {
  border: 1px solid var(--line);
  overflow: hidden;
}

.about-photo img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  filter: grayscale(1);
}

.about-body h1 { margin-bottom: 28px; }
.about-body p { color: var(--muted); margin-bottom: 20px; }
.about-body p strong { color: var(--ink); font-weight: 600; }

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--line);
}

.value-item {
  padding: 36px 28px;
  border-right: 1px solid var(--line);
}

.value-item:last-child { border-right: none; }

.value-item .num {
  display: block;
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--faint);
  margin-bottom: 28px;
}

.value-item h3 { font-size: 1.05rem; margin-bottom: 10px; }
.value-item p { font-size: 0.9rem; color: var(--muted); }

/* ---------- Contact page ---------- */

.contact-hero {
  background: var(--black);
  color: var(--white);
  padding: 96px 0;
}

.contact-hero h1 { color: var(--white); }
.contact-hero .lead { color: #A3A3A3; margin-top: 24px; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 72px;
  align-items: start;
}

.contact-rows { border-top: 1px solid var(--line); }

.contact-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}

.contact-row .label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--faint);
}

.contact-row a {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 600;
  transition: color 0.25s ease;
}

.contact-row a:hover { color: var(--blue); }

.contact-row span.value { font-size: 1.05rem; }

.contact-note {
  margin-top: 28px;
  font-size: 0.85rem;
  color: var(--faint);
}

.form-field { margin-bottom: 32px; }

.form-field label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 6px;
}

.form-field input,
.form-field textarea {
  width: 100%;
  border: none;
  border-bottom: 1px solid var(--black);
  background: transparent;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  padding: 10px 0;
  resize: vertical;
  transition: border-color 0.25s ease;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-bottom-color: var(--blue);
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--line-dark);
  color: var(--white);
  padding: 72px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
}

.footer-tag {
  color: #A3A3A3;
  font-size: 0.92rem;
  margin-top: 16px;
  max-width: 24em;
}

.footer-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #737373;
  margin-bottom: 18px;
}

.footer-col a,
.footer-col p {
  display: block;
  color: #D4D4D4;
  font-size: 0.95rem;
  margin-bottom: 10px;
  transition: color 0.25s ease;
}

.footer-col a:hover { color: var(--blue-2); }

.footer-bottom {
  border-top: 1px solid var(--line-dark);
  padding-top: 24px;
  padding-bottom: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.8rem;
  color: #737373;
}

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .hero-grid,
  .service-block,
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .service-block:nth-of-type(even) .service-media { order: 0; }

  .process-grid,
  .values-grid {
    grid-template-columns: 1fr 1fr;
  }

  .process-item:nth-child(2),
  .value-item:nth-child(2) { border-right: none; }

  .process-item:nth-child(1),
  .process-item:nth-child(2) { border-bottom: 1px solid var(--line); }

  .service-row {
    grid-template-columns: 60px 1fr;
  }

  .service-row p { grid-column: 2; }
  .service-row .row-link { grid-column: 2; justify-self: start; }

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

  .hero { padding: 64px 0; }
  .section { padding: 72px 0; }
}

@media (max-width: 620px) {
  .process-grid,
  .values-grid { grid-template-columns: 1fr; }

  .process-item,
  .value-item {
    border-right: none;
    border-bottom: 1px solid var(--line);
  }

  .process-item:last-child,
  .value-item:last-child { border-bottom: none; }

  .nav { padding-top: 14px; padding-bottom: 14px; }
  .nav-links { gap: 6px 18px; }
  .hero-actions .btn { width: 100%; text-align: center; }
  .contact-row { grid-template-columns: 1fr; gap: 4px; }
}

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