/* =========================================================
   KOMERCJA GDYNIA — LANDING MVP
   Paweł Bach — Pośrednik Komercyjny Gdynia
   ========================================================= */

:root {
  --teal: #0f766e;
  --teal-dark: #115e59;
  --navy: #1e293b;
  --black: #111827;
  --gray-900: #0f172a;
  --gray-700: #334155;
  --gray-600: #475569;
  --gray-500: #64748b;
  --gray-200: #e2e8f0;
  --gray-100: #f1f5f9;
  --gray-50: #f8fafc;
  --white: #ffffff;

  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 28px;

  --shadow-soft: 0 20px 60px rgba(15, 23, 42, 0.10);
  --shadow-card: 0 14px 40px rgba(15, 23, 42, 0.08);

  --max: 1160px;
}

/* RESET */

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--black);
  background: var(--white);
  line-height: 1.5;
}

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

a {
  color: inherit;
}

button,
input,
textarea {
  font: inherit;
}

/* GLOBAL */

.page {
  overflow-x: hidden;
}

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

.section {
  padding: 74px 0;
}

.section-light {
  background: var(--gray-50);
}

.section-dark {
  background: var(--black);
  color: var(--white);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--teal);
  border-radius: 99px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 860px;
  margin-bottom: 22px;
  color: var(--black);
  font-size: clamp(42px, 7vw, 82px);
  line-height: 0.96;
  letter-spacing: -0.065em;
  font-weight: 900;
}

h2 {
  margin-bottom: 18px;
  color: var(--black);
  font-size: clamp(32px, 4.4vw, 56px);
  line-height: 1;
  letter-spacing: -0.045em;
  font-weight: 880;
}

h3 {
  margin-bottom: 10px;
  color: var(--black);
  font-size: 22px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 820;
}

.lead {
  max-width: 740px;
  margin-bottom: 28px;
  color: var(--gray-700);
  font-size: clamp(18px, 2.2vw, 23px);
  line-height: 1.45;
}

.text {
  color: var(--gray-700);
  font-size: 17px;
}

.muted {
  color: var(--gray-500);
  font-size: 14px;
}

.section-dark h2,
.section-dark h3,
.section-dark p {
  color: var(--white);
}

.section-dark .lead {
  color: rgba(255, 255, 255, 0.78);
}

/* BUTTONS */

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 15px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--teal);
  color: var(--white);
  text-decoration: none;
  font-size: 16px;
  font-weight: 850;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  box-shadow: 0 12px 28px rgba(15, 118, 110, 0.24);
}

.btn:hover {
  transform: translateY(-1px);
  background: var(--teal-dark);
  box-shadow: 0 16px 34px rgba(15, 118, 110, 0.28);
}

.btn-secondary {
  background: var(--white);
  color: var(--black);
  border-color: var(--gray-200);
  box-shadow: none;
}

.btn-secondary:hover {
  background: var(--gray-50);
  box-shadow: none;
}

.btn-dark {
  background: var(--black);
  color: var(--white);
  box-shadow: 0 12px 30px rgba(17, 24, 39, 0.20);
}

.btn-full {
  width: 100%;
}

/* HERO */

.hero {
  position: relative;
  min-height: 92vh;
  padding: 28px 0 72px;
  display: flex;
  align-items: center;
  background:
    radial-gradient(circle at 85% 20%, rgba(15, 118, 110, 0.12), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 52px;
  align-items: center;
}

.hero-content {
  padding-top: 26px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 26px;
  padding: 9px 14px;
  border: 1px solid rgba(15, 118, 110, 0.20);
  border-radius: 999px;
  background: rgba(240, 253, 250, 0.88);
  color: var(--teal-dark);
  font-size: 13px;
  font-weight: 850;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.hero-point {
  padding: 9px 12px;
  border: 1px solid var(--gray-200);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  color: var(--gray-700);
  font-size: 14px;
  font-weight: 700;
}

.hero-visual {
  position: relative;
}

.hero-image-card {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--navy);
  box-shadow: var(--shadow-soft);
}

.hero-image-card img {
  width: 100%;
  height: 100%;
  min-height: 560px;
  object-fit: cover;
  filter: saturate(0.88) contrast(1.02);
}

.hero-image-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 30%, rgba(17, 24, 39, 0.58) 100%),
    linear-gradient(90deg, rgba(17, 24, 39, 0.14), transparent 50%);
}

.hero-floating-card {
  position: absolute;
  left: -24px;
  bottom: 32px;
  width: min(340px, 86%);
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-card);
}

.hero-floating-card strong {
  display: block;
  margin-bottom: 6px;
  color: var(--black);
  font-size: 22px;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.hero-floating-card span {
  display: block;
  color: var(--gray-600);
  font-size: 14px;
}

/* CALCULATOR + FORM */

.lead-grid {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 28px;
  align-items: start;
}

.card {
  border: 1px solid rgba(15, 23, 42, 0.10);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-card);
}

.calculator {
  overflow: hidden;
}

.calculator-head {
  padding: 28px;
  background: linear-gradient(135deg, var(--teal) 0%, var(--navy) 100%);
  color: var(--white);
}

.calculator-head h2 {
  margin-bottom: 10px;
  color: var(--white);
  font-size: clamp(30px, 3.3vw, 44px);
}

.calculator-head p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.80);
}

.calculator-body {
  padding: 28px;
}

.form-card {
  padding: 28px;
}

.field {
  margin-bottom: 18px;
}

label {
  display: block;
  margin-bottom: 8px;
  color: var(--black);
  font-size: 14px;
  font-weight: 850;
}

input,
textarea {
  width: 100%;
  padding: 15px 16px;
  border: 1px solid rgba(15, 23, 42, 0.16);
  border-radius: 14px;
  outline: none;
  background: var(--gray-50);
  color: var(--black);
  font-size: 17px;
  transition: border 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

input:focus,
textarea:focus {
  border-color: rgba(15, 118, 110, 0.70);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.10);
}

textarea {
  min-height: 112px;
  resize: vertical;
}

.result-box {
  margin-top: 24px;
  padding: 24px;
  border: 1px solid rgba(15, 118, 110, 0.22);
  border-radius: 22px;
  background: #f0fdfa;
}

.result-label {
  color: var(--teal);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.result-value {
  margin-top: 10px;
  color: var(--black);
  font-size: clamp(42px, 5vw, 64px);
  line-height: 0.95;
  letter-spacing: -0.06em;
  font-weight: 950;
}

.result-note {
  margin-top: 12px;
  color: var(--gray-600);
  font-size: 14px;
}

.form-note {
  margin-top: 14px;
  color: var(--gray-500);
  font-size: 14px;
  text-align: center;
}

/* PROBLEM */

.problem-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 48px;
  align-items: start;
}

.problem-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.problem-item {
  padding: 20px;
  border: 1px solid rgba(15, 23, 42, 0.10);
  border-radius: 18px;
  background: var(--white);
}

.problem-item span {
  display: block;
  margin-bottom: 8px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.problem-item strong {
  display: block;
  color: var(--black);
  font-size: 18px;
  line-height: 1.18;
}

/* PROCESS */

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.process-card {
  padding: 24px;
  border: 1px solid rgba(15, 23, 42, 0.10);
  border-radius: 22px;
  background: var(--white);
}

.process-number {
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.10);
  color: var(--teal);
  font-weight: 950;
}

/* =========================
   PERSPEKTYWA
========================= */

.perspective-card {
  padding: 28px;
}

.perspective-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 22px;
}

.perspective-choice {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  border: 1px solid rgba(15, 23, 42, 0.10);
  border-radius: 18px;
  background: var(--white);
  color: var(--black);
  font-size: 17px;
  font-weight: 850;
  cursor: pointer;
  transition: border 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.perspective-choice:hover {
  transform: translateY(-1px);
  border-color: rgba(15, 118, 110, 0.35);
  background: var(--gray-50);
}

.perspective-choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.perspective-dot {
  width: 18px;
  height: 18px;
  border: 2px solid var(--gray-200);
  border-radius: 999px;
  position: relative;
  flex-shrink: 0;
}

.perspective-choice input:checked + .perspective-dot {
  border-color: var(--teal);
}

.perspective-choice input:checked + .perspective-dot::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 999px;
  background: var(--teal);
}

.perspective-choice:has(input:checked) {
  border-color: rgba(15, 118, 110, 0.45);
  background: #f0fdfa;
}

.perspective-result {
  margin-top: 22px;
  padding: 22px;
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: 18px;
  background: var(--gray-50);
}

.perspective-result p {
  margin-bottom: 0;
  color: var(--gray-700);
  font-size: 18px;
  line-height: 1.45;
}

.perspective-text {
  margin-top: 26px;
}

.perspective-text p {
  color: var(--gray-700);
  font-size: 18px;
  line-height: 1.45;
}

.perspective-text p:last-child {
  margin-bottom: 0;
}

@media (max-width: 700px) {
  .perspective-options {
    grid-template-columns: 1fr;
  }

  .perspective-card {
    padding: 22px;
  }
}

.perspective-insight {
  margin-top: 28px;
  padding: 26px;
  border-left: 4px solid var(--teal);
  border-radius: 18px;
  background: #f0fdfa;
}

.perspective-insight p {
  max-width: 820px;
  margin-bottom: 10px;
  color: var(--black);
  font-size: 19px;
  line-height: 1.45;
  font-weight: 650;
}

.perspective-insight p:last-child {
  margin-bottom: 0;
  color: var(--gray-700);
  font-size: 18px;
  font-weight: 500;
}

/* PROFILE */

.profile-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 44px;
  align-items: center;
}

.profile-photo {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--navy);
  box-shadow: var(--shadow-card);
}

.profile-photo img {
  width: 100%;
  height: 440px;
  object-fit: cover;
}

.profile-box {
  padding: 36px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.04);
}

/* FAQ */

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

.faq-item {
  padding: 22px 0;
  border-bottom: 1px solid var(--gray-200);
}

.faq-item h3 {
  margin-bottom: 8px;
  font-size: 20px;
}

.faq-item p {
  margin-bottom: 0;
  color: var(--gray-700);
}

/* FINAL CTA */

.final-cta {
  text-align: center;
}

.final-cta h2 {
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}

.final-cta .lead {
  margin-left: auto;
  margin-right: auto;
}

/* FOOTER */

.footer {
  padding: 34px 0;
  border-top: 1px solid var(--gray-200);
  background: var(--white);
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  justify-content: space-between;
  align-items: center;
  color: var(--gray-600);
  font-size: 14px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links a {
  color: var(--gray-600);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--teal);
}

/* MOBILE */

@media (max-width: 900px) {
  .section {
    padding: 56px 0;
  }

  .hero {
    min-height: auto;
    padding-top: 22px;
  }

  .hero-grid,
  .lead-grid,
  .problem-grid,
  .profile-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    gap: 34px;
  }

  .hero-image-card,
  .hero-image-card img {
    min-height: 420px;
  }

  .hero-floating-card {
    left: 18px;
    bottom: 18px;
  }

  .lead-grid {
    gap: 22px;
  }

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

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

  .profile-photo img {
    height: 360px;
  }
}

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

  .section {
    padding: 46px 0;
  }

  .hero {
    padding-bottom: 50px;
  }

  h1 {
    font-size: 44px;
  }

  .lead {
    font-size: 18px;
  }

  .btn-row {
    display: grid;
    grid-template-columns: 1fr;
  }

  .btn {
    width: 100%;
  }

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

  .hero-image-card,
  .hero-image-card img {
    min-height: 360px;
  }

  .hero-floating-card {
    width: calc(100% - 36px);
    padding: 18px;
  }

  .calculator-head,
  .calculator-body,
  .form-card {
    padding: 22px;
  }

  .result-value {
    font-size: 46px;
  }

  .profile-box {
    padding: 24px;
  }

  .footer-grid {
    display: block;
  }

  .footer-links {
    margin-top: 14px;
  }
}