/* ============ Base ============ */
:root {
  --blue: #1a6bff;
  --blue-dark: #1558d6;
  --blue-deep: #0f4bbf;
  --ink: #101828;
  --ink-soft: #475467;
  --bg-section: #eaf2fd;
  --white: #ffffff;
  --radius-card: 24px;
  --shadow-card: 0 12px 30px rgba(16, 24, 40, 0.08);
  --container: 1180px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

/* ============ Header ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid #eef2f7;
  box-shadow: 0 4px 14px rgba(16, 24, 40, 0.04);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.brand span {
  font-size: 20px;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: 0.2px;
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 40px;
}

.main-nav a {
  font-size: 15px;
  font-weight: 600;
  color: var(--blue);
  padding: 8px 0;
  transition: color 0.2s ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--blue-deep);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle svg {
  width: 26px;
  height: 26px;
  stroke: var(--blue);
}

/* ============ Hero ============ */
.hero {
  background: #f4f8fe;
  padding: 96px 0 110px;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: 64px;
}

.hero h1 {
  font-size: clamp(34px, 3.3vw, 50px);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.4px;
  max-width: 600px;
}

.hero p {
  margin-top: 24px;
  max-width: 430px;
  font-size: 15px;
  color: var(--ink-soft);
}

.hero-cta {
  margin-top: 40px;
  display: inline-flex;
}

.hero-cta img {
  width: 160px;
  height: auto;
  border-radius: 14px;
  box-shadow: 0 8px 20px rgba(16, 24, 40, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hero-cta:hover img {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(16, 24, 40, 0.16);
}

/* ============ Calculator card ============ */
.calc-card {
  background: var(--white);
  border-radius: 20px;
  box-shadow: var(--shadow-card);
  padding: 30px 28px;
  width: 100%;
  max-width: 480px;
  justify-self: end;
}

.calc-row {
  display: grid;
  grid-template-columns: 130px 1fr;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.calc-row label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}

.calc-row input {
  width: 100%;
  height: 40px;
  border: none;
  border-radius: 999px;
  background: #e9edf3;
  padding: 0 18px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  outline: none;
}

.calc-row input:focus {
  box-shadow: 0 0 0 2px rgba(26, 107, 255, 0.35);
}

.calc-row input[readonly] {
  color: var(--blue);
}

.calc-row input::-webkit-outer-spin-button,
.calc-row input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.calc-row input[type="number"] {
  -moz-appearance: textfield;
  appearance: textfield;
}

.calc-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 20px;
}

.calc-checks {
  display: flex;
  align-items: center;
  gap: 18px;
}

.calc-check {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
}

.calc-check input {
  width: 16px;
  height: 16px;
  accent-color: var(--blue);
  cursor: pointer;
}

.btn-calc {
  border: none;
  cursor: pointer;
  background: var(--blue);
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
  padding: 10px 22px;
  border-radius: 999px;
  transition: background 0.2s ease, transform 0.15s ease;
}

.btn-calc:hover {
  background: var(--blue-dark);
}

.btn-calc:active {
  transform: scale(0.97);
}

.calc-error {
  margin-top: 14px;
  font-size: 13px;
  font-weight: 600;
  color: #d92d20;
}

/* ============ Result modal ============ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal[aria-hidden="true"] {
  display: none;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 16, 30, 0.72);
}

.modal-panel {
  position: relative;
  background: var(--white);
  border-radius: 22px;
  box-shadow: 0 24px 60px rgba(16, 24, 40, 0.35);
  padding: 32px 30px;
  width: 100%;
  max-width: 460px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  border: none;
  background: none;
  font-size: 26px;
  line-height: 1;
  color: var(--ink-soft);
  cursor: pointer;
}

.modal-close:hover {
  color: var(--ink);
}

.modal-title {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 20px;
}

.result-card {
  background: var(--white);
  border-radius: 16px;
  padding: 20px 24px;
}

.result-yellow {
  background: #fdf0c0;
}

.result-green {
  background: #cff5df;
}

.result-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.result-amount {
  margin-top: 6px;
  font-size: 30px;
  font-weight: 800;
}

.result-heading {
  font-size: 15px;
  font-weight: 700;
  margin: 22px 0 12px;
}

.result-table {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.result-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  font-size: 14px;
  color: #1d2939;
}

.result-row .row-amount {
  font-weight: 700;
  white-space: nowrap;
}

/* ============ Section shell ============ */
.section {
  padding: 96px 0;
}

.section-head {
  margin-bottom: 48px;
}

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 14px;
}

.section-head h2 {
  font-size: clamp(30px, 3.4vw, 42px);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.4px;
  max-width: 560px;
}

.bg-blue {
  background: var(--bg-section);
}

/* ============ Steps ============ */
.steps {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
}

.step {
  display: flex;
  align-items: center;
  gap: 18px;
  background: var(--white);
  border-radius: 16px;
  padding: 14px 18px;
  box-shadow: 0 6px 16px rgba(16, 24, 40, 0.06);
}

.step img {
  width: 44px;
  height: 44px;
  border-radius: 12px;
}

.step p {
  font-size: 16px;
  font-weight: 700;
}

/* ============ Advantages ============ */
.advantages {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  width: 100%;
}

.adv-card {
  background: var(--white);
  border: 1px solid #e4ecf8;
  border-left: 4px solid var(--blue);
  border-radius: 16px;
  padding: 34px 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 17px;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(16, 24, 40, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.adv-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px rgba(16, 24, 40, 0.1);
}

/* ============ Footer ============ */
.site-footer {
  background: var(--white);
  border-top: 1px solid #eef2f7;
  padding: 56px 0 48px;
}

.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-brand img {
  width: 44px;
  height: 44px;
  border-radius: 10px;
}

.footer-brand span {
  font-size: 24px;
  font-weight: 800;
  color: var(--blue);
}

.footer-cols {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  column-gap: 72px;
  row-gap: 24px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  font-size: 14px;
  font-weight: 600;
  color: var(--blue);
}

.footer-col a:hover {
  color: var(--blue-deep);
}

.footer-copy {
  margin-top: 32px;
  font-size: 13px;
  color: var(--ink-soft);
}

/* ============ Privacy page ============ */
.privacy-hero {
  background: #f4f8fe;
  padding: 72px 0 56px;
  text-align: center;
}

.privacy-hero h1 {
  font-size: clamp(32px, 3.6vw, 44px);
  font-weight: 800;
}

.privacy-body {
  background: var(--bg-section);
  padding: 40px 0 96px;
}

.privacy-paper {
  background: var(--white);
  border-radius: 18px;
  box-shadow: var(--shadow-card);
  padding: 56px 60px;
  max-width: 960px;
  margin: 0 auto;
}

.privacy-paper p,
.privacy-paper li {
  font-size: 15px;
  color: #1d2939;
  margin-bottom: 14px;
}

.privacy-paper h2 {
  font-size: 18px;
  font-weight: 700;
  margin: 26px 0 12px;
}

.privacy-paper ul {
  padding-left: 20px;
  list-style: disc;
}

/* ============ Responsive ============ */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .calc-card {
    justify-self: start;
  }

  .advantages {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
  }

  .footer-cols {
    gap: 48px;
  }

  .privacy-paper {
    padding: 36px 28px;
  }
}

@media (max-width: 680px) {
  .container {
    padding: 0 20px;
  }

  .hero {
    padding: 64px 0 72px;
  }

  .section {
    padding: 64px 0;
  }

  .main-nav {
    position: fixed;
    inset: 72px 0 auto 0;
    background: var(--white);
    box-shadow: 0 14px 24px rgba(16, 24, 40, 0.1);
    transform: translateY(-130%);
    transition: transform 0.25s ease;
  }

  .main-nav.open {
    transform: translateY(0);
  }

  .main-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 20px 16px;
  }

  .main-nav a {
    display: block;
    padding: 14px 0;
    border-bottom: 1px solid #f0f4fa;
  }

  .nav-toggle {
    display: block;
  }

  .calc-card {
    padding: 26px 22px;
  }

  .calc-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .calc-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .calc-checks {
    justify-content: flex-start;
  }

  .btn-calc {
    width: 100%;
    padding: 12px 22px;
  }

  .footer-cols {
    flex-direction: column;
    gap: 24px;
  }
}

/* ============ Account delete page ============ */
.delete-card {
  background: var(--white);
  border-radius: 18px;
  box-shadow: var(--shadow-card);
  padding: 40px;
  max-width: 560px;
  margin: 0 auto;
}

.delete-note {
  font-size: 15px;
  color: var(--ink-soft);
  margin-bottom: 26px;
}

.delete-card .btn-calc {
  width: 100%;
  margin-top: 10px;
  padding: 12px 22px;
}

.msg-text {
  font-size: 15px;
  color: #1d2939;
  margin-bottom: 20px;
}

@media (max-width: 680px) {
  .delete-card {
    padding: 26px 22px;
  }
}
