﻿:root {
  --bg: #141414;
  --text: #ffffff;
  --muted: #d0d0d0;
  --surface: #1d1d1d;
  --surface-soft: #2b2728;
  --card: #252525;
  --border: #3a3a3a;
  --accent: #2c6c94;
  --accent-hover: #3d82ad;
  --cta: #ff6b00;
  --cta-hover: #ff8433;
  --input-bg: #bdbdbd;
  --input-text: #181818;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --radius-pill: 999px;
  --space-xs: 0.6rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.25rem;
  --space-xl: 3.25rem;
  --field-stroke: #ffffff;
}

:root[data-theme="light"] {
  --bg: #f4f7fb;
  --text: #0f172a;
  --muted: #4b5563;
  --surface: #ffffff;
  --surface-soft: #f0f2f6;
  --card: #ffffff;
  --border: #e5e7eb;
  --accent: #2c6c94;
  --accent-hover: #225776;
  --cta: #ff6b00;
  --cta-hover: #e25f00;
  --input-bg: #eef1f5;
  --input-text: #0f172a;
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  --field-stroke: #141414;
}

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

html {
  scroll-behavior: smooth;
}

section[id] {
  scroll-margin-top: 92px;
}

body {
  margin: 0;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

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

.container {
  width: min(1200px, 90%);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background-color: rgba(20, 20, 20, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

:root[data-theme="light"] .site-header {
  background-color: rgba(244, 247, 251, 0.92);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.jmiszewicz {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  white-space: nowrap;
}

.jmiszewicz-logo {
  display: block;
  width: auto;
  height: clamp(32px, 4vw, 44px);
}

:root[data-theme="light"] .jmiszewicz-logo {
  filter: brightness(0) saturate(100%);
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.menu-toggle {
  display: none;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  border-radius: var(--radius-pill);
  padding: 0.45rem 0.95rem;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.3s ease, color 0.3s ease, background-color 0.3s ease;
}

.menu-toggle:hover,
.menu-toggle:focus-visible {
  border-color: var(--cta);
  color: var(--cta);
}

.nav-list a {
  color: var(--muted);
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-list a:hover,
.nav-list a:focus-visible {
  color: var(--cta);
}

.theme-toggle {
  border: 1px solid #ffffff;
  background: #ffffff;
  color: #141414;
  border-radius: var(--radius-pill);
  padding: 0.45rem 0.95rem;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.mobile-theme-item {
  display: none;
  width: 100%;
}

.mobile-theme-toggle {
  width: 100%;
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
  background: transparent;
  color: #ffffff;
}

:root[data-theme="light"] .theme-toggle {
  border-color: #141414;
  background: #141414;
  color: #ffffff;
}

:root[data-theme="light"] .theme-toggle:hover,
:root[data-theme="light"] .theme-toggle:focus-visible {
  background: transparent;
  color: #141414;
}

.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: var(--space-xl) 0;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.4rem;
  max-width: 1040px;
}

.hero-kicker {
  margin: 0;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: 0.9rem;
}

.hero h1 {
  margin: 0;
  line-height: 1.28;
  font-size: clamp(2.1rem, 7vw, 4rem);
  max-width: 34ch;
  text-wrap: balance;
}

.hero-line-mobile {
  display: none;
}

.hero p {
  margin: 0;
  color: var(--muted);
  max-width: 64ch;
}

.desktop-break {
  display: none;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-width: 220px;
  padding: 1.05rem 2.05rem;
  border-radius: var(--radius-pill);
  font-weight: 700;
  color: #ffffff;
  background-color: var(--cta);
  border: none;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.cta-button:hover,
.cta-button:focus-visible {
  background-color: var(--cta-hover);
  transform: translateY(-1px);
}

.hero .cta-button {
  margin-top: var(--space-xs);
}

.intro,
.services,
.faq,
.contact {
  padding: var(--space-xl) 0;
}

.intro-lead {
  margin: 0 0 var(--space-sm);
  color: var(--accent);
  font-weight: 700;
}

.intro-flow {
  display: grid;
  gap: var(--space-lg);
}

.intro-item {
  margin: 0;
  max-width: 78ch;
  color: var(--muted);
  padding: 1.1rem 1.2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background:
    linear-gradient(135deg, rgba(44, 108, 148, 0.1), transparent 60%),
    var(--card);
  box-shadow: var(--shadow);
  transition: transform 0.6s ease, box-shadow 0.6s ease, border-color 0.6s ease;
}

.intro-item h3 {
  margin: 0 0 0.55rem;
  color: var(--accent);
  font-size: 1rem;
  letter-spacing: 0.02em;
}

.intro-item p {
  margin: 0;
}

.intro-item:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
}

.section-close {
  margin: var(--space-sm) 0 0;
  font-weight: 700;
}

.services-container {
  width: min(1200px, 90%);
}

.intro h2,
.services h2,
.faq h2,
.contact h2 {
  margin: 0 0 1.25rem;
  font-size: clamp(1.5rem, 4vw, 2rem);
  color: #ffffff;
}

:root[data-theme="light"] .intro h2,
:root[data-theme="light"] .services h2,
:root[data-theme="light"] .faq h2,
:root[data-theme="light"] .contact h2 {
  color: #141414;
}

.services-intro {
  margin: 0 0 var(--space-md);
  max-width: 80ch;
  color: var(--muted);
  padding: 0.4rem 0 0.4rem 1rem;
  border: 0;
  border-left: 3px solid var(--accent);
  line-height: 1.75;
}

.services-quick-label {
  margin: 0 0 var(--space-sm);
  color: var(--accent);
  font-weight: 700;
}

h2.section-close {
  margin: var(--space-md) 0 0;
  padding-top: var(--space-xs);
  color: #ffffff !important;
}

:root[data-theme="light"] h2.section-close {
  color: #141414 !important;
}

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

.services-quick {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.8rem;
  margin-bottom: var(--space-lg);
}

.quick-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--card);
  box-shadow: var(--shadow);
  padding: 1rem 1.1rem;
  transition: transform 0.6s ease, box-shadow 0.6s ease, border-color 0.6s ease;
}

.quick-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
}

.quick-card h3 {
  margin: 0 0 0.3rem;
  font-size: 1rem;
  color: var(--accent);
}

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

.services-cta {
  margin-top: var(--space-lg);
}

.services-cta-quick {
  margin-top: var(--space-sm);
  margin-bottom: calc(var(--space-xl) + 0.4rem);
}

.services-grid {
  margin-top: var(--space-sm);
}

.service-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background-color: var(--card);
  box-shadow: var(--shadow);
  padding: 1.35rem;
  transition: transform 0.6s ease, box-shadow 0.6s ease, border-color 0.6s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
}

.service-card h3 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.15rem, 2.2vw, 1.35rem);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.service-card-no-badge h3 {
  margin-top: 1.65rem;
}

.service-badge {
  margin: 0 0 0.55rem;
  width: fit-content;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #ffffff;
  background-color: var(--accent);
}

.service-lead {
  margin: 0 0 0.8rem;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.98rem;
  overflow-wrap: anywhere;
}

.service-description {
  margin: 0 0 var(--space-sm);
  color: var(--muted);
}

.service-points {
  margin: var(--space-sm) 0 0;
  padding-left: 1.1rem;
  color: var(--text);
}

.service-points li + li {
  margin-top: 0.35rem;
}

.service-card-main {
  border-color: var(--border);
  background: var(--card);
  padding: 1.35rem;
  text-align: left;
}

.faq {
  padding-top: var(--space-sm);
}

.faq-intro {
  margin: 0 0 var(--space-md);
  max-width: 80ch;
  color: var(--muted);
  padding: 0.4rem 0 0.4rem 1rem;
  border: 0;
  border-left: 3px solid var(--accent);
  line-height: 1.75;
}

.faq-list {
  display: grid;
  gap: 0.75rem;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--card);
  padding: 0.95rem 1.05rem;
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.faq-item:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}

.faq-item summary {
  display: block;
  width: calc(100% + 2.1rem);
  margin: -0.95rem -1.05rem 0;
  padding: 0.95rem 1.05rem;
  cursor: pointer;
  font-weight: 700;
  color: var(--text);
  list-style: none;
  overflow-wrap: anywhere;
  word-break: break-word;
}

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

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

.contact-content {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background-color: var(--surface-soft);
  box-shadow: var(--shadow);
  padding: 1.8rem;
}

.contact-content p {
  margin: 0 0 var(--space-sm);
  color: var(--muted);
}

.contact-form {
  margin-top: 1.1rem;
}

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

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  position: relative;
  border: 1px solid var(--field-stroke);
  border-radius: var(--radius-md);
  padding: 0.6rem 0.9rem 0.7rem;
}

.form-field::after {
  content: none;
}

:root[data-theme="light"] .form-field::after {
  content: none;
}

.form-field label {
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  color: var(--field-stroke);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.form-field input,
.form-field textarea {
  width: 100%;
  border: 0;
  border-radius: 0;
  padding: 0.45rem 0 0.2rem;
  font: inherit;
  color: var(--text);
  background-color: transparent;
  transition: color 0.3s ease;
}

.form-field textarea {
  resize: vertical;
  min-height: 140px;
  padding-top: 0.55rem;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
}

.form-field:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(44, 108, 148, 0.25);
}

.form-field:focus-within::after {
  content: none;
}

.consent {
  margin-top: 1rem;
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.legal-note {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.legal-note a,
.consent a,
.site-footer a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-note a:hover,
.consent a:hover,
.site-footer a:hover {
  color: var(--accent-hover);
}

.consent input {
  margin-top: 0.2rem;
  width: 1.05rem;
  height: 1.05rem;
  accent-color: var(--accent);
}

.form-submit {
  margin-top: 1rem;
  min-width: 160px;
  cursor: pointer;
}

.form-submit:disabled {
  opacity: 0.75;
  cursor: not-allowed;
}

.form-modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 60;
}

.form-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.form-modal-card {
  position: relative;
  width: min(520px, 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 1.2rem 1.25rem;
}

.form-modal-close {
  position: absolute;
  top: 0.45rem;
  right: 0.45rem;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  border-radius: var(--radius-pill);
  width: 2rem;
  height: 2rem;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.3s ease, color 0.3s ease;
}

.form-modal-close:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.form-modal-card h3 {
  margin: 0 0 0.45rem;
}

.form-modal-card p {
  margin: 0;
  color: var(--muted);
}

.form-modal-countdown {
  margin-top: 0.6rem !important;
  font-size: 0.9rem;
}

.form-modal-ok {
  margin-top: 0.95rem;
  min-width: 120px;
  padding: 0.7rem 1rem;
}

.honeycomb {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.site-footer {
  border-top: 1px solid var(--border);
  background-color: var(--surface);
}

.site-footer p {
  margin: 0;
  padding: 0.4rem 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
}

.site-footer p:first-child {
  padding-top: 1.1rem;
}

.site-footer p:last-child {
  padding-bottom: 1.1rem;
}

.policy {
  padding: var(--space-xl) 0;
}

.policy h1 {
  margin: 0 0 0.65rem;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
}

.policy h2 {
  margin: 0 0 0.55rem;
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
}

.policy-date {
  margin: 0 0 var(--space-md);
  color: var(--muted);
}

.policy-alert {
  margin: 0 0 var(--space-md);
  padding: 0.65rem 0.9rem;
  border-left: 3px solid var(--cta);
  color: var(--muted);
}

.policy-block {
  margin-bottom: var(--space-md);
  padding: 1rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--card);
}

.policy-block p {
  margin: 0.45rem 0;
  color: var(--muted);
}

.policy a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

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

.policy-block ul {
  margin: 0.35rem 0 0;
  padding-left: 1.2rem;
}

.policy-back {
  min-width: 120px;
  padding: 0.65rem 1rem;
}

.reveal-up {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 860px) {
  .header-content {
    flex-wrap: wrap;
    row-gap: 0.8rem;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .header-actions .menu-toggle,
  .header-actions .theme-toggle {
    width: 110px;
    min-width: 110px;
    padding: 0.45rem 0.95rem;
    font-size: 0.9rem;
    line-height: 1;
    justify-content: center;
  }

  .site-nav {
    order: 3;
    width: 100%;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, opacity 0.35s ease;
  }

  .site-nav.is-open {
    max-height: 240px;
    opacity: 1;
  }

  .nav-list {
    width: 100%;
    align-items: flex-start;
    flex-direction: column;
    gap: 0.75rem;
    padding-top: 0.65rem;
  }

  .header-actions .theme-toggle {
    display: none;
  }

  .mobile-theme-item {
    display: block;
    margin-top: 0.25rem;
  }

  .header-actions {
    margin-left: auto;
  }

  .hero {
    min-height: auto;
    padding: calc(var(--space-xl) + 0.65rem) 0 calc(var(--space-xl) + 0.25rem);
  }

  .hero-line-desktop {
    display: none;
  }

  .hero-line-mobile {
    display: block;
  }
}

@media (min-width: 840px) {
  .services-quick {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .desktop-break {
    display: block;
  }

  .intro-item {
    max-width: min(74ch, 70%);
  }

  .intro-item.intro-left {
    justify-self: start;
    text-align: left;
  }

  .intro-item.intro-right {
    justify-self: end;
    text-align: left;
  }

  .hero {
    min-height: calc(100vh - 72px);
    padding: calc(var(--space-xl) + 1rem) 0 var(--space-xl);
  }

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

  .service-card {
    min-height: 225px;
  }

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

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

@media (prefers-reduced-motion: reduce) {
  .reveal-up {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
