/* =========================================================
   Tokens
   ========================================================= */
:root {
  --ink:        #1B2027;   /* asphalt */
  --ink-soft:   #2B323C;
  --paper:      #F7F4EC;   /* warm off-white */
  --sand:       #EBE0C4;   /* Sandomierz sandstone */
  --sand-deep:  #D8C79E;
  --route:      #C74B2E;   /* road / jersey red-orange */
  --route-dark: #A83C22;
  --forest:     #3E6B4C;   /* safety green */
  --slate:      #565C63;
  --line:       #E0D8C2;
  --white:      #FFFFFF;

  --font-head: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", sans-serif;

  --max-w: 1160px;
  --radius: 6px;
  --shadow: 0 10px 30px rgba(27, 32, 39, 0.08);
}

/* =========================================================
   Reset & base
   ========================================================= */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.05;
  margin: 0 0 0.5em;
  color: var(--ink);
  letter-spacing: 0.2px;
}

h1 { font-size: clamp(2.6rem, 5.2vw, 4.4rem); font-weight: 700; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; color: var(--slate); max-width: 62ch; }

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

ul { list-style: none; margin: 0; padding: 0; }

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

.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--white);
  padding: 10px 16px;
  z-index: 200;
}
.skip-link:focus {
  left: 16px;
  top: 16px;
}

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

/* =========================================================
   Buttons
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 26px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.98rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--route);
  color: var(--white);
}
.btn-primary:hover { background: var(--route-dark); }

.btn-ghost {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: var(--paper); }

/* =========================================================
   Header
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 244, 236, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-mark { color: var(--route); display: flex; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-family: var(--font-head); font-size: 1.15rem; font-weight: 700; }
.brand-text small { font-size: 0.72rem; color: var(--slate); }

.primary-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.primary-nav ul {
  display: flex;
  gap: 26px;
}
.primary-nav a:not(.btn) {
  font-weight: 600;
  font-size: 0.96rem;
  position: relative;
  padding-bottom: 4px;
}
.primary-nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 2px;
  background: var(--route);
  transition: right 0.2s ease;
}
.primary-nav a:not(.btn):hover::after { right: 0; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--ink);
  display: block;
}

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative;
  overflow: hidden;
  padding: 84px 0 70px;
  background: linear-gradient(180deg, var(--sand) 0%, var(--paper) 78%);
}

.hero-route {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.55;
}
.hero-route svg { width: 100%; height: 100%; }
.route-line {
  stroke: var(--route);
  stroke-dasharray: 1600;
  stroke-dashoffset: 1600;
  animation: draw-route 2.4s ease-out 0.2s forwards;
}
.route-dot { fill: var(--forest); opacity: 0; animation: fade-in 0.6s ease-out 2.2s forwards; }
.route-dot--end { fill: var(--route); }

@keyframes draw-route {
  to { stroke-dashoffset: 0; }
}
@keyframes fade-in {
  to { opacity: 1; }
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.eyebrow {
  font-weight: 600;
  color: var(--forest);
  margin-bottom: 14px;
  font-size: 0.95rem;
}

.hero-lede {
  font-size: 1.15rem;
  max-width: 56ch;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin: 28px 0 46px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  max-width: 620px;
  border-top: 1px solid var(--sand-deep);
  padding-top: 22px;
  margin: 0;
}
.hero-stats dt {
  font-size: 0.78rem;
  text-transform: none;
  color: var(--slate);
  margin-bottom: 4px;
}
.hero-stats dd {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.05rem;
}

/* =========================================================
   Sections (shared)
   ========================================================= */
.section {
  padding: 88px 0;
}

.section-head {
  max-width: 620px;
  margin-bottom: 44px;
}

/* =========================================================
   About
   ========================================================= */
.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: start;
}

.about-panel {
  background: var(--ink);
  border-radius: var(--radius);
  padding: 8px 32px;
}

.about-facts li {
  display: flex;
  gap: 18px;
  padding: 26px 0;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.about-facts li:last-child { border-bottom: none; }

.fact-num {
  font-family: var(--font-head);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--route);
  min-width: 2.2ch;
}
.about-facts h3 { color: var(--white); margin-bottom: 6px; }
.about-facts p { color: rgba(247,244,236,0.72); margin-bottom: 0; }

/* =========================================================
   Services
   ========================================================= */
.services {
  background: var(--sand);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.card {
  background: var(--paper);
  border: 1px solid var(--sand-deep);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--route);
}

.card-icon {
  width: 46px;
  height: 46px;
  color: var(--route);
  margin-bottom: 18px;
}
.card-icon svg { width: 100%; height: 100%; }

.card p { margin-bottom: 0; font-size: 0.96rem; }

/* =========================================================
   Why choose us
   ========================================================= */
.why-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 64px;
  align-items: start;
}

.why-copy p { font-size: 1.05rem; }

.why-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 34px;
}
.why-list h3 {
  border-left: 3px solid var(--forest);
  padding-left: 14px;
  margin-bottom: 8px;
}
.why-list p {
  padding-left: 17px;
  margin-bottom: 0;
  font-size: 0.96rem;
}

/* =========================================================
   Contact
   ========================================================= */
.contact { background: var(--ink); }
.contact h2, .contact-info p { color: var(--paper); }
.contact-info p { color: rgba(247,244,236,0.72); }

.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 60px;
}

.contact-details {
  margin-top: 32px;
  display: grid;
  gap: 22px;
}
.contact-details dt {
  font-size: 0.78rem;
  color: var(--route);
  font-weight: 600;
  margin-bottom: 4px;
}
.contact-details dd {
  margin: 0;
  color: var(--paper);
  font-size: 1rem;
}
.contact-details a { text-decoration: underline; text-underline-offset: 3px; }

.contact-form {
  background: var(--paper);
  border-radius: var(--radius);
  padding: 34px;
}

.form-row {
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
}
.form-row label {
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 6px;
}
.form-row input,
.form-row select,
.form-row textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 11px 13px;
  border: 1.5px solid var(--sand-deep);
  border-radius: 4px;
  background: var(--white);
  color: var(--ink);
  resize: vertical;
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  border-color: var(--route);
}
.form-row.has-error input,
.form-row.has-error textarea {
  border-color: var(--route);
}
.field-error {
  color: var(--route-dark);
  font-size: 0.82rem;
  min-height: 1.2em;
  margin-top: 4px;
}

.form-submit { width: 100%; margin-top: 4px; }

.form-status {
  margin: 14px 0 0;
  font-size: 0.92rem;
  min-height: 1.4em;
}
.form-status.success { color: var(--forest); }
.form-status.error { color: var(--route-dark); }

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
  background: var(--ink-soft);
  color: rgba(247,244,236,0.75);
  padding-top: 60px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand strong {
  font-family: var(--font-head);
  color: var(--white);
  font-size: 1.15rem;
}
.footer-brand p { color: rgba(247,244,236,0.6); margin-top: 10px; }

.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.footer-nav h4 {
  color: var(--white);
  font-family: var(--font-head);
  font-size: 1rem;
  margin-bottom: 14px;
  font-weight: 600;
}
.footer-nav li { margin-bottom: 10px; font-size: 0.92rem; }
.footer-nav a:hover { color: var(--white); }

.footer-bottom {
  padding: 22px 24px;
  font-size: 0.82rem;
  color: rgba(247,244,236,0.5);
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 880px) {
  .about-grid,
  .why-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .card-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .why-list { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-nav { grid-template-columns: repeat(3, minmax(0,1fr)); }
}

@media (max-width: 640px) {
  .nav-toggle { display: flex; }

  .primary-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 20px 24px 28px;
    gap: 18px;
    display: none;
  }
  .primary-nav.is-open { display: flex; }
  .primary-nav ul {
    flex-direction: column;
    gap: 16px;
  }
  .nav-cta { align-self: flex-start; }

  .hero { padding: 56px 0 46px; }
  .hero-stats { grid-template-columns: 1fr; gap: 14px; }

  .section { padding: 60px 0; }

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

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