:root {
  --bg: #f7f8f4;
  --surface: #ffffff;
  --surface-soft: #edf7f2;
  --text: #172321;
  --muted: #66736f;
  --line: #d9e1dc;
  --primary: #0e766d;
  --primary-dark: #0e3b43;
  --accent: #d88c1f;
  --accent-soft: #fff4df;
  --dark: #0e2e35;
  --dark-soft: #123f3d;
  --radius-lg: 22px;
  --radius-md: 14px;
  --shadow: 0 22px 55px rgba(14, 46, 53, 0.13);
  --container: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

body.menu-open {
  overflow: hidden;
}

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

button,
input,
textarea {
  font: inherit;
}

img {
  max-width: 100%;
}

.container {
  width: min(calc(100% - 40px), var(--container));
  margin-inline: auto;
}

.section {
  padding: 104px 0;
}

.section-muted {
  background: #edf5f0;
}

.section-dark {
  color: #ffffff;
  background: linear-gradient(135deg, var(--dark), var(--dark-soft));
}

.site-header {
  position: fixed;
  z-index: 1000;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(247, 248, 244, 0.86);
  border-bottom: 1px solid rgba(217, 225, 220, 0.78);
  backdrop-filter: blur(18px);
}

.nav-wrap {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  box-shadow: 0 10px 22px rgba(14, 118, 109, 0.2);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 0.95rem;
  font-weight: 600;
}

.main-nav a {
  transition: color 0.2s ease;
}

.main-nav a:hover {
  color: var(--primary);
}

.nav-cta {
  padding: 10px 16px;
  color: #ffffff !important;
  background: var(--primary-dark);
  border-radius: 8px;
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: transparent;
  border: 0;
}

.menu-button span:not(.sr-only) {
  display: block;
  width: 100%;
  height: 2px;
  margin: 5px 0;
  background: var(--text);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.hero {
  min-height: 92vh;
  display: grid;
  align-items: center;
  padding-top: 160px;
  overflow: hidden;
  background:
    linear-gradient(115deg, rgba(247, 248, 244, 0.92), rgba(237, 247, 242, 0.86)),
    url("https://images.unsplash.com/photo-1554224155-6726b3ff858f?auto=format&fit=crop&w=1800&q=80") center / cover;
}

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

.eyebrow {
  margin: 0 0 14px;
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1,
h2 {
  line-height: 1.04;
}

h1 {
  max-width: 820px;
  margin-bottom: 24px;
  font-size: clamp(3rem, 6.4vw, 5.9rem);
}

h2 {
  margin-bottom: 20px;
  font-size: clamp(2rem, 4.2vw, 3.8rem);
}

h3 {
  margin-bottom: 12px;
  font-size: 1.35rem;
  letter-spacing: 0;
}

.hero-text,
.section-heading > p,
.about-copy > p,
.contact-card > div > p {
  color: var(--muted);
  font-size: 1.08rem;
}

.hero-text {
  max-width: 650px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 9px;
  cursor: pointer;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: #ffffff;
  background: var(--primary);
  box-shadow: 0 14px 30px rgba(14, 118, 109, 0.24);
}

.button-primary:hover {
  box-shadow: 0 20px 36px rgba(14, 118, 109, 0.3);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.8);
  border-color: var(--line);
}

.hero-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.hero-notes span {
  padding: 7px 11px;
  color: #465653;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
}

.hero-visual {
  position: relative;
  min-height: 500px;
  display: grid;
  place-items: center;
}

.workflow-board {
  position: relative;
  z-index: 2;
  width: min(100%, 460px);
  padding: 30px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.96);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.workflow-top {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 9px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
}

.fortnox-mark {
  display: grid;
  gap: 8px;
  margin-top: 24px;
  padding: 18px;
  background: #f7f8f4;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.fortnox-mark span {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
}

.fortnox-mark img {
  width: min(100%, 220px);
  height: auto;
  display: block;
}

.status-dot {
  width: 9px;
  height: 9px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 6px rgba(216, 140, 31, 0.16);
}

.flow-line {
  display: grid;
  gap: 12px;
  margin: 28px 0;
}

.flow-step {
  display: grid;
  grid-template-columns: 42px 1fr;
  column-gap: 14px;
  row-gap: 2px;
  align-items: center;
  padding: 16px;
  background: #f7f8f4;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.flow-step small {
  grid-row: span 2;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: #ffffff;
  background: var(--primary-dark);
  border-radius: 8px;
  font-weight: 800;
}

.flow-step strong,
.flow-step span {
  display: block;
}

.flow-step span {
  color: var(--muted);
  font-size: 0.88rem;
}

.flow-step.active {
  border-color: rgba(14, 118, 109, 0.32);
  box-shadow: 0 12px 26px rgba(14, 118, 109, 0.1);
}

.task-list {
  display: grid;
  gap: 10px;
}

.task-list div {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: #40514d;
  font-size: 0.92rem;
}

.task-list span {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  margin-top: 8px;
  background: var(--accent);
  border-radius: 50%;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 52px;
}

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

.service-card {
  min-height: 280px;
  padding: 30px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 55px rgba(15, 23, 42, 0.1);
}

.service-card p,
.step p {
  color: var(--muted);
}

.icon-box {
  width: fit-content;
  min-width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  margin-bottom: 38px;
  padding: 0 12px;
  color: var(--primary);
  background: var(--surface-soft);
  border-radius: 10px;
  font-weight: 800;
}

.split-grid,
.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 80px;
}

.principles {
  display: grid;
  gap: 16px;
}

.principles div {
  padding: 24px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.principles strong,
.principles span {
  display: block;
}

.principles span {
  margin-top: 5px;
  color: var(--muted);
}

.section-dark .eyebrow {
  color: #93e6d6;
}

.about-copy p {
  color: #d7e6e2;
  font-size: 1.04rem;
}

.about-copy p:last-child {
  margin-bottom: 0;
  color: #ffffff;
  font-weight: 700;
}

.section-dark .section-heading > p {
  color: #d7e6e2;
}

.contact-section {
  background: linear-gradient(180deg, #f7f8f4, #edf7f2);
}

.contact-card {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 70px;
  padding: 56px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.independent-note {
  max-width: 560px;
  margin-top: 22px;
  padding: 14px 16px;
  color: #5b4b27;
  background: var(--accent-soft);
  border: 1px solid #f2d8a8;
  border-radius: 10px;
  font-size: 0.9rem;
}

.contact-form {
  display: grid;
  gap: 16px;
}

.contact-form label {
  display: grid;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 700;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 15px;
  color: var(--text);
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 12px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(14, 118, 109, 0.11);
}

.contact-form textarea {
  resize: vertical;
}

.site-footer {
  padding: 30px 0;
  color: #cbd5e1;
  background: var(--dark);
}

.footer-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-brand {
  color: #ffffff;
}

.footer-wrap p {
  margin: 0;
  font-size: 0.85rem;
}

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

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

.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;
}

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

  .hero-grid,
  .split-grid,
  .about-grid,
  .contact-card {
    grid-template-columns: 1fr;
  }

  .hero-grid,
  .split-grid,
  .about-grid,
  .contact-card {
    gap: 48px;
  }

  .hero {
    padding-top: 130px;
  }

  .hero-visual {
    min-height: 430px;
  }

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

  .service-card {
    min-height: auto;
  }

  .icon-box {
    margin-bottom: 28px;
  }

  .menu-button {
    display: block;
  }

  .main-nav {
    position: fixed;
    inset: 76px 0 auto;
    min-height: calc(100vh - 76px);
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 30px 20px;
    background: rgba(247, 248, 244, 0.98);
  }

  .main-nav.open {
    display: flex;
  }

  .main-nav a {
    padding: 16px 8px;
    border-bottom: 1px solid var(--line);
  }

  .nav-cta {
    margin-top: 8px;
    text-align: center;
    border-bottom: 0 !important;
  }
}

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

  .section {
    padding: 72px 0;
  }

  .hero {
    padding-top: 120px;
  }

  h1 {
    font-size: clamp(2.7rem, 14vw, 4.5rem);
  }

  .hero-actions,
  .hero-actions .button {
    width: 100%;
  }

  .hero-visual {
    min-height: 360px;
  }

  .workflow-board {
    padding: 22px;
  }

  .flow-step {
    grid-template-columns: 38px 1fr;
  }

  .contact-card {
    padding: 28px;
  }

  .footer-wrap {
    flex-direction: column;
    align-items: flex-start;
  }
}

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

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