:root {
  --ink: #102033;
  --muted: #5b6675;
  --line: #d9e2ec;
  --panel: #ffffff;
  --soft: #f4f7fb;
  --navy: #0c2340;
  --blue: #1d70b8;
  --teal: #0f8b8d;
  --gold: #c58a24;
  --green: #167a4a;
  --danger: #b42318;
  --shadow: 0 14px 35px rgba(16, 32, 51, 0.12);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--soft);
  color: var(--ink);
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
}

.site-header {
  align-items: center;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(217, 226, 236, 0.8);
  display: flex;
  gap: 28px;
  justify-content: space-between;
  padding: 16px 8%;
  position: sticky;
  top: 0;
  z-index: 20;
}

.logo {
  color: var(--navy);
  font-size: 23px;
  font-weight: 800;
  letter-spacing: 0;
  text-decoration: none;
  white-space: nowrap;
}

.logo span {
  color: var(--blue);
}

.nav {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: flex-end;
}

.nav a {
  color: #465364;
  font-size: 15px;
  font-weight: 650;
  text-decoration: none;
}

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

.button,
.nav .button {
  align-items: center;
  background: var(--blue);
  border: 1px solid var(--blue);
  border-radius: 6px;
  color: #fff;
  display: inline-flex;
  font-weight: 750;
  justify-content: center;
  min-height: 42px;
  padding: 9px 16px;
  text-decoration: none;
}

.button.secondary {
  background: #fff;
  color: var(--navy);
  border-color: var(--line);
}

.hero {
  background:
    linear-gradient(90deg, rgba(12, 35, 64, 0.92) 0%, rgba(12, 35, 64, 0.75) 45%, rgba(12, 35, 64, 0.2) 100%),
    url("assets/hero-finance.png") center / cover no-repeat;
  color: #fff;
  min-height: 620px;
  padding: 82px 8% 64px;
}

.hero-inner {
  max-width: 690px;
}

.eyebrow {
  color: #a9d7ea;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.05;
  margin-bottom: 20px;
}

.hero p {
  color: #e4edf7;
  font-size: 18px;
  margin-bottom: 28px;
  max-width: 650px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.section {
  padding: 74px 8%;
}

.section.white {
  background: #fff;
}

.section-title {
  color: var(--navy);
  font-size: 32px;
  line-height: 1.2;
  margin-bottom: 14px;
}

.section-lead {
  color: var(--muted);
  max-width: 850px;
}

.grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  margin-top: 34px;
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(16, 32, 51, 0.06);
  padding: 24px;
}

.card h3 {
  color: var(--navy);
  font-size: 19px;
  margin-bottom: 10px;
}

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

.service-card {
  border-top: 4px solid var(--blue);
}

.team-card {
  display: grid;
  gap: 14px;
}

.avatar {
  align-items: center;
  background: #e8f2fa;
  border: 2px solid var(--blue);
  border-radius: 50%;
  color: var(--navy);
  display: flex;
  font-weight: 800;
  height: 62px;
  justify-content: center;
  width: 62px;
}

.role {
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.badge {
  background: var(--navy);
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  font-size: 12px;
  font-weight: 700;
  margin-top: 8px;
  padding: 4px 10px;
}

.footer {
  background: var(--navy);
  color: #fff;
  padding: 42px 8%;
  text-align: center;
}

.footer a {
  color: #fff;
  font-weight: 750;
}

.address-block {
  color: #d9e4ef;
  display: grid;
  gap: 4px;
  margin: 22px auto 0;
  max-width: 760px;
}

.address-block strong {
  color: #fff;
}

.copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: #b8c5d4;
  font-size: 14px;
  margin-top: 24px;
  padding-top: 20px;
}

.planner-shell {
  padding: 28px 8% 70px;
}

.planner-hero {
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 42px 8%;
}

.planner-hero h1 {
  color: var(--navy);
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.12;
  max-width: 850px;
}

.planner-hero p {
  color: var(--muted);
  font-size: 17px;
  margin-top: 12px;
  max-width: 920px;
}

.planner-layout {
  display: grid;
  gap: 22px;
  grid-template-columns: minmax(280px, 390px) minmax(0, 1fr);
}

.input-panel,
.output-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.input-panel {
  align-self: start;
  overflow: hidden;
  position: sticky;
  top: 86px;
}

.panel-head {
  background: var(--navy);
  color: #fff;
  padding: 18px 20px;
}

.panel-head h2 {
  font-size: 20px;
}

.tabs {
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px;
}

.tab-btn {
  background: #f3f7fb;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 750;
  min-height: 36px;
  padding: 7px 10px;
}

.tab-btn.active {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

.tab-page {
  display: none;
  padding: 18px;
}

.tab-page.active {
  display: block;
}

.field {
  display: grid;
  gap: 6px;
  margin-bottom: 14px;
}

.field label {
  color: #344154;
  font-size: 13px;
  font-weight: 700;
}

.field input,
.field select,
.field textarea {
  background: #fffdf2;
  border: 1px solid #d8c375;
  border-radius: 6px;
  color: var(--ink);
  font: inherit;
  min-height: 40px;
  padding: 8px 10px;
  width: 100%;
}

.field textarea {
  line-height: 1.55;
  resize: vertical;
}

.helper {
  color: var(--muted);
  font-size: 12px;
}

.results-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  padding: 18px;
}

.kpi {
  background: #f7fbfd;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
}

.kpi span {
  color: var(--muted);
  display: block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.kpi strong {
  color: var(--navy);
  display: block;
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.15;
  margin-top: 8px;
}

.kpi.good strong {
  color: var(--green);
}

.tables {
  display: grid;
  gap: 18px;
  padding: 0 18px 18px;
}

.table-box {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: auto;
}

.table-title {
  background: #edf5fb;
  color: var(--navy);
  font-weight: 800;
  padding: 12px 14px;
}

table {
  border-collapse: collapse;
  width: 100%;
}

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

th:first-child,
td:first-child {
  text-align: left;
}

th {
  background: #fbfdff;
  color: #344154;
  font-size: 13px;
}

td {
  color: #344154;
  font-size: 14px;
}

.recommendation {
  background: #fff8e9;
  border: 1px solid #f1d19a;
  border-radius: 8px;
  color: #523405;
  font-weight: 750;
  margin: 0 18px 18px;
  padding: 14px 16px;
}

.blog-layout {
  display: grid;
  gap: 22px;
  grid-template-columns: minmax(300px, 0.9fr) minmax(320px, 1.1fr);
}

.blog-editor,
.blog-preview {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.blog-form {
  padding: 18px;
}

.blog-article {
  padding: 26px;
}

.blog-meta {
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.blog-article h2 {
  color: var(--navy);
  font-size: 30px;
  line-height: 1.2;
  margin-bottom: 18px;
}

.blog-article p {
  color: #344154;
  margin-bottom: 14px;
}

@media (max-width: 980px) {
  .planner-layout,
  .results-grid,
  .blog-layout {
    grid-template-columns: 1fr;
  }

  .input-panel {
    position: static;
  }
}

@media (max-width: 720px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 5%;
  }

  .nav {
    justify-content: flex-start;
  }

  .hero,
  .section,
  .planner-shell,
  .planner-hero,
  .footer {
    padding-left: 5%;
    padding-right: 5%;
  }

  .hero {
    min-height: 560px;
  }

  th,
  td {
    min-width: 120px;
  }
}
