:root {
  --bg-body: #f7f3ec;
  --bg-section: #fbf8f1;
  --bg-card: #ffffff;
  --bg-card-alt: #fcfbf6;
  --text-primary: #1f1f24;
  --text-muted: #6f6f7b;
  --accent: #c79d2a;
  --accent-soft: rgba(199, 157, 42, 0.12);
  --border-subtle: #ded6c5;
  --danger: #c14b4b;
  --max-width: 1280px;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --shadow-soft: 0 18px 45px rgba(31, 31, 36, 0.12);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family:
    "Outfit",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  background: radial-gradient(circle at top, #ffffff 0, #f7f3ec 55%);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

main {
  padding: 50px;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.98),
    rgba(255, 255, 255, 0.92),
    transparent
  );
  border-bottom: 1px solid rgba(31, 31, 36, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-primary);
}

.logo-mark {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: radial-gradient(
    circle at 30% 20%,
    #fff,
    #d4ae36 40%,
    #b88619 70%,
    #f7f3ec 100%
  );
  box-shadow: 0 0 18px rgba(199, 157, 42, 0.22);
}

nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links {
  display: flex;
  gap: 24px;
  font-size: 0.9rem;
  color: var(--text-primary);
}

.nav-links a {
  position: relative;
  padding-bottom: 4px;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.2s ease-out;
}

.nav-links a:hover::after {
  width: 100%;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(31, 31, 36, 0.06);
}

.lang-btn {
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.8rem;
  padding: 4px 10px;
  border-radius: 999px;
  cursor: pointer;
  transition:
    background 0.15s ease-out,
    color 0.15s ease-out;
}

.lang-btn.active {
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 500;
}

.hero {
  padding: 72px 0 56px;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: 48px;
  align-items: center;
}

.hero-copy h1 {
  font-size: clamp(2.4rem, 4vw, 3.2rem);
  line-height: 1.1;
  margin-bottom: 16px;
}

.hero-copy p {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 520px;
  margin-bottom: 24px;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.badge {
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(31, 31, 36, 0.1);
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.8);
}

.badge-accent {
  border-color: var(--accent-soft);
  background: var(--accent-soft);
  color: var(--accent);
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
}

.btn-primary {
  border: none;
  border-radius: 999px;
  padding: 12px 24px;
  background: linear-gradient(135deg, #f5c453, #f08a2b);
  color: #050509;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
  transition:
    transform 0.12s ease-out,
    box-shadow 0.12s ease-out;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7);
}

.btn-ghost {
  border-radius: 999px;
  padding: 10px 18px;
  border: 1px solid rgba(31, 31, 36, 0.12);
  background: transparent;
  color: var(--text-primary);
  font-size: 0.85rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-meta {
  display: flex;
  gap: 24px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.hero-meta span strong {
  color: var(--accent);
}

.hero-visual {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 20px;
  border: 1px solid rgba(31, 31, 36, 0.08);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hero-visual-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.hero-visual-pill {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(199, 157, 42, 0.08);
  border: 1px solid rgba(199, 157, 42, 0.16);
  color: var(--text-primary);
}

.hero-visual-mock {
  background: var(--bg-card-alt);
  border-radius: var(--radius-md);
  padding: 16px;
  border: 1px solid rgba(31, 31, 36, 0.05);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 16px;
  align-items: center;
}

.hero-visual-mock h3 {
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.hero-visual-mock p {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.hero-visual-mock .pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.pill {
  font-size: 0.7rem;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(199, 157, 42, 0.08);
  color: var(--text-primary);
}

.hero-visual-mock .value {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--accent);
}

.hero-visual-mock .label {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.hero-ad {
  margin-top: 12px;
  border-radius: var(--radius-md);
  border: 1px dashed rgba(31, 31, 36, 0.12);
  padding: 10px;
  font-size: 0.75rem;
  color: var(--text-muted);
  background: #ffffff;
  text-align: center;
}

.section {
  padding: 56px 0;
}

.section-header {
  margin-bottom: 32px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.section-title {
  font-size: 1.6rem;
}

.section-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 520px;
}

.country-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.country-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 20px;
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  transition:
    transform 0.12s ease-out,
    box-shadow 0.12s ease-out,
    border-color 0.12s ease-out,
    background 0.12s ease-out;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.country-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft);
  border-color: rgba(199, 157, 42, 0.3);
  background: var(--bg-card-alt);
}

.country-flag {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid rgba(31, 31, 36, 0.1);
}

.country-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.country-title-row h3 {
  font-size: 1rem;
  color: var(--text-primary);
}

.country-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.country-tag {
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(199, 157, 42, 0.08);
  color: var(--text-primary);
  align-self: flex-start;
}

.calculators-section {
  background: var(--bg-section);
  border-top: 1px solid rgba(31, 31, 36, 0.08);
  border-bottom: 1px solid rgba(31, 31, 36, 0.08);
}

.calculator-tabs {
  display: inline-flex;
  padding: 4px;
  border-radius: 999px;
  background: rgba(31, 31, 36, 0.06);
  margin-bottom: 24px;
}

.calculator-tab {
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.8rem;
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
}

.calculator-tab.active {
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 500;
}

.calculator-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.calculator-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 16px;
  border: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 8px;
  cursor: pointer;
  transition:
    transform 0.12s ease-out,
    box-shadow 0.12s ease-out,
    border-color 0.12s ease-out,
    background 0.12s ease-out;
}

.calculator-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft);
  border-color: rgba(199, 157, 42, 0.3);
  background: var(--bg-card-alt);
}

.calculator-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: radial-gradient(circle at top, var(--accent-soft), transparent);
  border: 1px solid rgba(31, 31, 36, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: var(--accent);
}

.calculator-title {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-primary);
}

.calculator-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.calculator-tag {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.ad-block {
  margin: 32px 0;
  border-radius: var(--radius-md);
  border: 1px dashed rgba(31, 31, 36, 0.16);
  padding: 16px;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
  background: #ffffff;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.step-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 18px;
  border: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.step-label {
  font-size: 0.75rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.step-title {
  font-size: 0.95rem;
  font-weight: 500;
}

.step-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.content-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.content-image {
  height: 120px;
  background: linear-gradient(135deg, #f3efe7, #e9e4d9);
}

.content-body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.content-title {
  font-size: 0.95rem;
  font-weight: 500;
}

.content-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.content-link {
  margin-top: 4px;
  font-size: 0.8rem;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

footer {
  border-top: 1px solid rgba(31, 31, 36, 0.12);
  padding: 32px 0 24px;
  background: #f7f3ec;
  margin-top: 40px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 2fr 2fr;
  gap: 24px;
  align-items: flex-start;
}

.footer-logo {
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.footer-text {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-ad {
  border-radius: var(--radius-md);
  border: 1px dashed rgba(31, 31, 36, 0.16);
  padding: 12px;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
  background: #ffffff;
}

.footer-bottom {
  margin-top: 24px;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
  opacity: 0.7;
}

@media (max-width: 960px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero {
    padding-top: 40px;
  }

  .hero-visual {
    order: -1;
  }

  .country-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .calculator-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .steps-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .content-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .header-inner {
    gap: 16px;
  }

  .nav-links {
    display: none;
  }
}

@media (max-width: 640px) {
  .calculator-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-meta {
    flex-direction: column;
    gap: 8px;
  }
}

.calc-btn {
  margin-top: 12px;
  display: inline-block;
  padding: 8px 14px;
  border-radius: 8px;
  background: linear-gradient(135deg, #f5c453, #f08a2b);
  color: #000;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.85rem;
  transition:
    transform 0.12s ease-out,
    box-shadow 0.12s ease-out;
}

.calc-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.disclaimer {
  margin-top: 16px;
  font-size: 0.75rem;
  color: #888;
  line-height: 1.5;
  max-width: 700px;
}

#calculate {
  margin: 50px 0;
}
