:root {
  --bg: #f3efe8;
  --surface: #ffffff;
  --ink: #10131a;
  --muted: #4e5666;
  --line: #d5d9e0;
  --brand: #d9480f;
  --brand-dark: #a1330b;
  --accent: #0c5a7a;
  --radius: 14px;
  --shadow: 0 16px 34px rgba(16, 19, 26, 0.1);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 90% -10%, rgba(12, 90, 122, 0.18), transparent 42%),
    radial-gradient(circle at 0% 20%, rgba(217, 72, 15, 0.12), transparent 40%),
    var(--bg);
  line-height: 1.6;
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background-image:
    var(--kassa-wm1, url("../img/gear.svg")),
    var(--kassa-wm2, url("../img/wrench.svg")),
    var(--kassa-wm3, url("../img/piston.svg"));
  background-repeat: no-repeat, no-repeat, no-repeat;
  background-position: -4% 12%, 102% 52%, 6% 88%;
  background-size: 520px auto, 520px auto, 440px auto;
  opacity: 0.12;
}

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

.container {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(243, 239, 232, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  overflow: visible;
}

.topbar::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: url("../img/gear.svg"), url("../img/wrench.svg");
  background-repeat: no-repeat, no-repeat;
  background-position: 4% 50%, 96% 50%;
  background-size: 110px 110px, 100px 100px;
  opacity: 0.18;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  position: relative;
  z-index: 1;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Oswald", sans-serif;
  font-size: 1.25rem;
  letter-spacing: 0.5px;
}

.logo img {
  width: 62px;
  height: 62px;
  max-width: 62px;
  max-height: 62px;
  object-fit: contain;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--line);
  padding: 4px;
}

.logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: linear-gradient(150deg, var(--brand), var(--accent));
}

.logo-image {
  width: 62px;
  height: 62px;
  max-width: 62px;
  max-height: 62px;
  object-fit: contain;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--line);
  padding: 4px;
}

.logo-text {
  display: inline-block;
}

.nav-links {
  display: flex;
  gap: 22px;
  font-weight: 600;
}

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

.nav-links a.active,
.nav-links a:hover {
  color: var(--ink);
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  font-size: 1.2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 700;
  border: 1px solid transparent;
  transition: 0.2s ease;
}

.btn-primary {
  background: var(--brand);
  color: #fff;
}

.btn-primary:hover {
  background: var(--brand-dark);
}

.btn-ghost {
  border-color: var(--line);
  color: var(--ink);
  background: #fff;
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.hero {
  padding: 78px 0 50px;
}

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

.kicker {
  display: inline-block;
  margin-bottom: 10px;
  padding: 4px 11px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--accent);
  background: rgba(12, 90, 122, 0.12);
}

h1,
h2,
h3 {
  font-family: "Oswald", sans-serif;
  line-height: 1.2;
  margin: 0;
}

h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  margin-bottom: 16px;
}

.lead {
  color: var(--muted);
  max-width: 62ch;
}

.hero-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 22px;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
}

.stat-card strong {
  font-size: 1.35rem;
}

.hero-panel {
  background: linear-gradient(165deg, #1d2734 0%, #0e1522 100%);
  color: #f6f7fa;
  border-radius: calc(var(--radius) + 2px);
  border: 1px solid #253243;
  padding: 26px;
  box-shadow: var(--shadow);
}

.hero-panel ul {
  margin: 0;
  padding-left: 18px;
}

.section {
  padding: 56px 0;
}

.section-title {
  margin-bottom: 14px;
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
}

.section-sub {
  color: var(--muted);
  margin-top: 0;
  margin-bottom: 28px;
}

.grid {
  display: grid;
  gap: 18px;
}

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

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: 0 10px 20px rgba(16, 19, 26, 0.06);
}

.card h3 {
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.list-clean {
  margin: 0;
  padding-left: 18px;
}

.band {
  background: #121926;
  color: #eef2f7;
  border-top: 1px solid #2e394d;
  border-bottom: 1px solid #2e394d;
}

.band .section-sub {
  color: #b9c3d6;
}

.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.testimonial {
  border-left: 4px solid var(--brand);
}

.page-head {
  padding: 60px 0 30px;
}

.page-head h1 {
  margin-bottom: 8px;
}

.contact-wrap {
  display: grid;
  gap: 22px;
  grid-template-columns: 0.95fr 1.05fr;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact-list li {
  margin-bottom: 10px;
}

.form-row {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

label {
  font-weight: 700;
  font-size: 0.95rem;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 11px 12px;
  font: inherit;
  background: #fff;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(12, 90, 122, 0.25);
  border-color: var(--accent);
}

.notice {
  margin-top: 12px;
  padding: 9px 11px;
  border-radius: 10px;
  font-size: 0.94rem;
  display: none;
}

.notice.ok {
  display: block;
  background: #e9f8ef;
  color: #184d27;
  border: 1px solid #a7e0b7;
}

.notice.error {
  display: block;
  background: #fff1f1;
  color: #832424;
  border: 1px solid #efb0b0;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
  font-size: 0.95rem;
  background: #fff;
}

th,
td {
  border: 1px solid var(--line);
  padding: 10px;
  text-align: left;
  vertical-align: top;
}

th {
  background: #f1f5fb;
  font-weight: 700;
}

.table-wrap {
  overflow-x: auto;
  width: 100%;
}

.footer {
  border-top: 1px solid var(--line);
  padding: 24px 0 34px;
  color: var(--muted);
  font-size: 0.95rem;
  position: relative;
  overflow: hidden;
  background: rgba(243, 239, 232, 0.8);
}

.footer::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: url("../img/piston.svg"), url("../img/gear.svg");
  background-repeat: no-repeat, no-repeat;
  background-position: 3% 45%, 97% 45%;
  background-size: 110px 110px, 120px 120px;
  opacity: 0.2;
}

.footer .container {
  position: relative;
  z-index: 1;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-logo {
  width: 56px;
  height: 56px;
  object-fit: contain;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 3px;
}

.workflow-showcase {
  margin-bottom: 18px;
}

.workflow-card {
  overflow: hidden;
}

.workflow-card img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
}

.workflow-card figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.95rem;
}

.section,
.page-head,
.hero {
  position: relative;
}

.section::after,
.page-head::after {
  content: "";
  position: absolute;
  right: 2%;
  top: 12px;
  width: 84px;
  height: 84px;
  pointer-events: none;
  background: url("../img/gear.svg") no-repeat center/contain;
  opacity: 0.07;
}

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

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

@media (max-width: 920px) {
  .hero-grid,
  .grid-3,
  .grid-2,
  .contact-wrap {
    grid-template-columns: 1fr;
  }

  .nav-links {
    position: absolute;
    top: 74px;
    left: 0;
    right: 0;
    background: #f7f4ed;
    border-bottom: 1px solid var(--line);
    display: none;
    flex-direction: column;
    gap: 0;
    z-index: 40;
    box-shadow: 0 16px 24px rgba(0, 0, 0, 0.08);
  }

  .nav-links a {
    padding: 14px 4vw;
    border-top: 1px solid #ebe1cf;
  }

  .nav-links.show {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }

  .logo-image {
    width: 50px;
    height: 50px;
  }

  .logo img {
    width: 50px;
    height: 50px;
    max-width: 50px;
    max-height: 50px;
  }

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