:root {
  --ink: #101614;
  --muted: #64706a;
  --paper: #f7faf5;
  --white: #fff;
  --green: #0f766d;
  --green-dark: #073f3a;
  --warm: #d79a2b;
  --line: #d8e0d7;
  --shadow: 0 24px 70px rgba(16, 22, 20, .14);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

a { color: inherit; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 68px;
  padding: 12px clamp(18px, 5vw, 72px);
  background: rgba(247, 250, 245, .9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  text-decoration: none;
}

.brand span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: var(--green);
  color: var(--white);
  font-size: 13px;
}

.contact-link {
  color: var(--green);
  font-weight: 800;
  text-decoration: none;
}

main { overflow: hidden; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, .65fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
  min-height: calc(100svh - 68px);
  padding: clamp(54px, 8vw, 110px) clamp(18px, 6vw, 84px);
  background:
    linear-gradient(90deg, rgba(7, 63, 58, .95), rgba(7, 63, 58, .7)),
    url("https://kaipreikiant.lt/assets/hero-workspace.webp") center/cover;
  color: var(--white);
}

.hero-copy { max-width: 880px; }

.eyebrow {
  margin: 0 0 12px;
  color: var(--warm);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 920px;
  margin-bottom: 22px;
  font-size: clamp(42px, 6vw, 82px);
  line-height: .98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(31px, 4vw, 54px);
  line-height: 1.04;
}

.hero p {
  max-width: 760px;
  color: rgba(255, 255, 255, .86);
  font-size: clamp(18px, 2vw, 23px);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 13px 20px;
  border: 0;
  border-radius: 8px;
  background: var(--green);
  color: var(--white);
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

.button:hover { background: var(--green-dark); }
.button.full { width: 100%; }

.hero-panel,
.calculator-card,
.result-card {
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 8px;
  background: rgba(255, 255, 255, .1);
  box-shadow: var(--shadow);
}

.hero-panel {
  padding: 28px;
  backdrop-filter: blur(12px);
}

.hero-panel strong {
  display: block;
  margin-bottom: 12px;
  font-size: 28px;
}

.hero-panel ul {
  display: grid;
  gap: 10px;
  margin: 20px 0 0;
  padding-left: 18px;
  color: rgba(255, 255, 255, .82);
}

.calculator-section,
.value-case,
.solution,
.contact {
  padding: clamp(64px, 8vw, 110px) clamp(18px, 6vw, 84px);
}

.value-case {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 54px);
  align-items: start;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.value-case h2 {
  max-width: 780px;
}

.value-copy {
  display: grid;
  gap: 16px;
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid var(--line);
  border-left: 6px solid var(--green);
  border-radius: 8px;
  background: #f6faf6;
  box-shadow: var(--shadow);
}

.value-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 19px;
}

.value-copy strong {
  color: var(--green-dark);
  font-size: clamp(22px, 2.5vw, 32px);
  line-height: 1.12;
}

.section-heading {
  max-width: 840px;
  margin-bottom: 34px;
}

.section-heading p {
  color: var(--muted);
  font-size: 18px;
}

.calculator-grid {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(360px, .75fr);
  gap: 24px;
  align-items: start;
}

.calculator-card,
.result-card {
  background: var(--white);
  border-color: var(--line);
  padding: clamp(20px, 3vw, 34px);
}

label {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--ink);
  font-weight: 850;
}

input {
  width: 100%;
  min-height: 48px;
  border: 1px solid #c8d2ca;
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--ink);
  font: inherit;
  font-weight: 650;
}

input:focus {
  outline: 3px solid rgba(15, 118, 109, .18);
  border-color: var(--green);
}

.manual-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 14px;
}

.manual-fields {
  margin: 18px 0 4px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.manual-title {
  margin-bottom: 16px;
  color: var(--muted);
  font-weight: 750;
}

[hidden] {
  display: none !important;
}

details {
  margin: 8px 0 20px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

summary {
  margin-bottom: 14px;
  color: var(--green);
  font-weight: 900;
  cursor: pointer;
}

.status {
  min-height: 24px;
  margin: 14px 0 0;
  color: var(--muted);
  font-weight: 750;
}

.result-card h3 {
  margin-bottom: 22px;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.08;
}

.result-list {
  display: grid;
  gap: 12px;
}

.result-list div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}

.result-list span {
  color: var(--muted);
  font-weight: 750;
}

.result-list strong {
  color: var(--green);
  font-size: 22px;
  text-align: right;
}

.note {
  margin: 18px 0 0;
  color: var(--muted);
}

.solution {
  display: grid;
  grid-template-columns: minmax(0, .75fr) minmax(0, 1fr);
  gap: 28px;
  background: #edf4ef;
}

.solution p {
  color: var(--muted);
  font-size: 20px;
}

.contact {
  background: var(--green-dark);
  color: var(--white);
}

.contact address {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  font-style: normal;
  font-size: 22px;
  font-weight: 900;
}

@media (max-width: 900px) {
  .hero,
  .calculator-grid,
  .value-case,
  .solution {
    grid-template-columns: 1fr;
  }

  .hero {
    align-items: end;
    min-height: auto;
  }
}

@media (max-width: 640px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .contact-link {
    font-size: 14px;
  }

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

  h1 {
    font-size: clamp(38px, 12vw, 56px);
  }

  .result-list div {
    display: grid;
  }

  .result-list strong {
    text-align: left;
  }
}
