* {
  box-sizing: border-box;
}

:root {
  --background: #f5f5f3;
  --surface: #ffffff;
  --surface-muted: #eeeeeb;
  --border: #d9d9d4;
  --text: #171717;
  --muted: #6d6d67;
  --accent: #1d5fd1;
  --accent-hover: #164da9;
  --radius: 12px;
}

html {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--background);
}

body {
  margin: 0;
  min-width: 320px;
}

.container {
  width: min(1080px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.header-inner {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo {
  color: var(--text);
  font-size: 18px;
  font-weight: 750;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.tagline {
  color: var(--muted);
  font-size: 13px;
}

.hero {
  padding: 76px 0 38px;
  max-width: 720px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.hero h1 {
  margin: 0;
  font-size: clamp(38px, 6vw, 64px);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.hero-text {
  max-width: 620px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.6;
}

.converter-card {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

.converter-grid {
  display: grid;
  grid-template-columns: 1.1fr 1.5fr auto 1.5fr;
  align-items: end;
  gap: 14px;
}

.field label {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 700;
}

input,
select {
  width: 100%;
  height: 48px;
  padding: 0 13px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  font: inherit;
  outline: none;
}

input:focus,
select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(29, 95, 209, 0.12);
}

.swap-button {
  width: 48px;
  height: 48px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-muted);
  color: var(--text);
  font-size: 21px;
  cursor: pointer;
}

.swap-button:hover {
  background: #e3e3df;
}

.result {
  margin-top: 24px;
  padding: 22px;
  border-radius: 9px;
  background: var(--surface-muted);
}

.result-label {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.result strong {
  display: block;
  overflow-wrap: anywhere;
  font-size: clamp(28px, 5vw, 46px);
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.rate-text {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 56px 0;
}

.info-card {
  min-height: 190px;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.info-number {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.info-card h2 {
  margin: 42px 0 8px;
  font-size: 18px;
}

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

.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding: 28px 0 70px;
  border-top: 1px solid var(--border);
}

.about h2 {
  margin: 0;
  font-size: 25px;
  letter-spacing: -0.03em;
}

.about > p {
  padding-top: 3px;
}

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.site-footer .container {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  font-size: 12px;
}

@media (max-width: 760px) {
  .container {
    width: min(100% - 28px, 1080px);
  }

  .header-inner {
    min-height: 58px;
  }

  .tagline {
    display: none;
  }

  .hero {
    padding-top: 52px;
  }

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

  .swap-button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .info-grid,
  .about {
    grid-template-columns: 1fr;
  }

  .info-grid {
    margin: 36px 0;
  }

  .about {
    gap: 18px;
    padding-bottom: 48px;
  }

  .site-footer .container {
    padding: 15px 0;
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .converter-grid {
    grid-template-columns: 1fr;
  }

  .swap-button {
    grid-column: auto;
  }

  .converter-card {
    padding: 16px;
  }
}