:root {
  --bg: #0b1220;
  --panel: #121b2e;
  --panel-2: #0f1727;
  --border: rgba(255, 255, 255, 0.08);
  --text: #f5f7fb;
  --muted: #a8b3c8;
  --primary: #6d5efc;
  --primary-2: #8b7cff;
  --radius: 18px;
  --shadow: 0 12px 35px rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(109, 94, 252, 0.18), transparent 30%),
    radial-gradient(circle at top right, rgba(23, 201, 100, 0.1), transparent 25%),
    var(--bg);
  color: var(--text);
  padding: 28px 16px 40px;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
}

.hero {
  text-align: center;
  margin-bottom: 24px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
  text-decoration: none;
  padding: 14px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  transition: 0.2s ease;
}

.brand-link:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}

.brand-text {
  color: #eef2fb;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.hero h1 {
  margin: 0 0 10px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.hero-description {
  max-width: 760px;
  margin: 10px auto 0;
  color: #a8b3c8;
  font-size: 16px;
  line-height: 1.6;
}

.hero-secondary-title {
  margin: 22px 0 10px;
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.hero-secondary-text {
  max-width: 760px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 22px;
  align-items: start;
}

.card,
.info-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.card-header {
  padding: 18px 20px 0;
}

.card-header h2 {
  margin: 0;
  font-size: 22px;
  letter-spacing: -0.02em;
}

.card-header p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.card-body {
  padding: 20px;
}

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

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.field.full {
  grid-column: 1 / -1;
}

.field.hidden {
  display: none;
}

label {
  font-size: 13px;
  font-weight: 700;
  color: #eef2fb;
}

input,
select {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 13px 14px;
  background: var(--panel-2);
  color: var(--text);
  font-size: 14px;
  outline: none;
}

input:focus,
select:focus {
  border-color: rgba(139, 124, 255, 0.6);
  box-shadow: 0 0 0 3px rgba(139, 124, 255, 0.12);
}

.hint {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.inline {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.check {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
}

.check input {
  width: auto;
  margin: 0;
  accent-color: var(--primary);
}

.buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.single-button {
  justify-content: flex-start;
}

button {
  border: 0;
  cursor: pointer;
  border-radius: 12px;
  padding: 14px 18px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.01em;
  transition: 0.18s ease;
}

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

.btn-secondary {
  color: #fff;
  background: #21304c;
  border: 1px solid var(--border);
  min-width: 220px;
}

.summary-top {
  padding: 20px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(109, 94, 252, 0.14), rgba(109, 94, 252, 0.04));
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 12px;
  font-weight: 800;
  color: #e7ebff;
  margin-bottom: 10px;
}

.total {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.total-label {
  color: #e0e6f7;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.total-amount {
  font-size: clamp(34px, 5vw, 50px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.04em;
}

.summary-body {
  padding: 18px 20px 20px;
}

.summary-bottom {
  padding-top: 0;
}

.result-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.result-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.result-name {
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 4px;
}

.result-formula {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.45;
}

.result-value {
  font-size: 15px;
  font-weight: 900;
  white-space: nowrap;
}

.notes {
  margin-top: 18px;
  padding: 14px 15px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.notes strong {
  color: #fff;
}

.country-badge {
  display: inline-block;
  margin-top: 12px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(23, 201, 100, 0.12);
  color: #c4ffe2;
  border: 1px solid rgba(23, 201, 100, 0.2);
  font-size: 12px;
  font-weight: 800;
}

.foot {
  margin-top: 18px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.soft-box {
  margin-top: 16px;
  padding: 14px 15px;
  border-radius: 14px;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.02);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.pill {
  display: inline-flex;
  margin-right: 8px;
  margin-bottom: 8px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  font-size: 12px;
  color: #e5ebfb;
  font-weight: 700;
}

.content-list {
  margin: 16px 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.7;
}

.content-list li {
  margin-bottom: 8px;
}

.info-sections {
  margin-top: 30px;
}

.info-sections .container {
  display: grid;
  gap: 22px;
}

.info-card {
  padding: 22px;
}

.info-card h2 {
  margin: 0 0 18px;
  font-size: 24px;
  letter-spacing: -0.02em;
}

.info-card h3 {
  margin: 0 0 8px;
  font-size: 16px;
}

.info-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
  font-size: 14px;
}

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

.faq-list {
  display: grid;
  gap: 14px;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
  padding: 18px;
}

.faq-item h3 {
  margin: 0 0 8px;
  font-size: 16px;
  line-height: 1.4;
  color: #f5f7fb;
}

.faq-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
  font-size: 14px;
}

.calculator-legal-note {
  margin-top: 25px;
  color: #9aa7c2;
  font-size: 13px;
  line-height: 1.6;
}

.tool-footer {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  color: var(--muted);
}

.tool-footer p {
  margin: 0 0 14px;
  font-size: 16px;
  color: #ffffff;
}

.tool-footer-links {
  display: flex;
  justify-content: center;
  gap: 22px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.tool-footer-links a {
  color: #f5f7fb;
  text-decoration: none;
  font-size: 15px;
  font-weight: 800;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(109, 94, 252, 0.14);
  border: 1px solid rgba(139, 124, 255, 0.28);
  transition: 0.2s ease;
}

.tool-footer-links a:hover {
  color: #ffffff;
  background: rgba(109, 94, 252, 0.24);
  border-color: rgba(139, 124, 255, 0.42);
}

.no-print {
  display: block;
}

@media (max-width: 920px) {
  .layout,
  .info-grid {
    grid-template-columns: 1fr;
  }

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

  .single-button {
    justify-content: stretch;
  }

  .btn-secondary {
    width: 100%;
  }

  .brand-text {
    font-size: 16px;
  }
}

@media print {
  @page {
    margin: 12mm;
  }

  html,
  body {
    background: #fff !important;
    color: #000 !important;
    padding: 0;
  }

  body * {
    visibility: hidden;
  }

  .print-area,
  .print-area * {
    visibility: visible;
  }

  .print-area {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
  }

  .hero {
    text-align: left;
    margin-bottom: 18px;
  }

  .hero-description,
  .hero-secondary-text {
    max-width: none;
    color: #333 !important;
  }

  .layout {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .buttons,
  .soft-box,
  .brand-link,
  .hint,
  .no-print,
  .info-sections,
  .tool-footer {
    display: none !important;
  }

  .card,
  .info-card {
    box-shadow: none !important;
    border: 1px solid #ddd !important;
    background: #fff !important;
  }

  .summary-top {
    background: #fff !important;
    border-bottom: 1px solid #ddd !important;
  }

  input,
  select {
    color: #000 !important;
    background: #fff !important;
    border: 1px solid #ddd !important;
    padding: 10px 12px;
  }

  .notes,
  .foot {
    background: #fff !important;
    border: 1px solid #ddd !important;
    color: #333 !important;
    padding: 12px;
    border-radius: 10px;
  }

  .result-formula,
  .country-badge,
  .total-label,
  .card-header p {
    color: #444 !important;
  }

  .result-row {
    border-bottom: 1px solid #ddd !important;
  }

  .result-value,
  .total-amount,
  .hero h1,
  .hero-secondary-title,
  .card-header h2,
  label {
    color: #000 !important;
  }
}