:root {
  --ink: #14213d;
  --muted: #52606d;
  --line: #d8e1ea;
  --panel: #ffffff;
  --soft: #f3f7fb;
  --accent: #0f766e;
  --accent-dark: #0b5f59;
  --warm: #f59e0b;
  --danger: #b42318;
  --shadow: 0 18px 45px rgba(20, 33, 61, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: #f7fafc;
  line-height: 1.5;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 4vw, 56px);
  background: rgba(247, 250, 252, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: white;
  background: var(--accent);
  border-radius: 8px;
  font-size: 0.9rem;
}

.top-nav,
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--muted);
  font-size: 0.95rem;
}

.top-nav a,
.site-footer a {
  text-decoration: none;
}

.top-nav a:hover,
.site-footer a:hover {
  color: var(--accent);
}

main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 560px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  align-items: center;
  gap: clamp(28px, 6vw, 72px);
  padding: 56px 0 42px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(247, 250, 252, 0.96) 0%, rgba(247, 250, 252, 0.86) 45%, rgba(247, 250, 252, 0.35) 100%);
}

.hero-image {
  position: absolute;
  inset: 24px 0 28px auto;
  z-index: -2;
  width: min(760px, 68vw);
  height: calc(100% - 52px);
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(3.6rem, 9vw, 7rem);
  line-height: 0.9;
  letter-spacing: 0;
}

.hero-text {
  max-width: 680px;
  margin: 24px 0;
  color: var(--muted);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.button.primary {
  color: white;
  background: var(--accent);
}

.button.primary:hover {
  background: var(--accent-dark);
}

.button.secondary {
  color: var(--ink);
  background: white;
  border-color: var(--line);
}

.button.secondary:hover {
  border-color: var(--accent);
}

.hero-panel,
.tool-card,
.price-card,
.legal-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero-panel {
  align-self: end;
  display: grid;
  gap: 14px;
  padding: clamp(24px, 5vw, 40px);
}

.panel-label,
.price-card small,
.hint {
  color: var(--muted);
}

.hero-panel strong {
  font-size: clamp(1.7rem, 4vw, 3rem);
}

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

.tool-card {
  padding: clamp(20px, 3vw, 28px);
}

.tool-card.wide {
  grid-column: 1 / -1;
}

.tool-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 18px;
}

h2 {
  margin: 0;
  font-size: clamp(1.45rem, 2.4vw, 2.15rem);
  line-height: 1.1;
}

label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-weight: 800;
}

input,
select {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: white;
  font: inherit;
}

input:focus,
select:focus,
button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(15, 118, 110, 0.22);
  outline-offset: 2px;
}

.hint {
  margin: 10px 0 16px;
  font-size: 0.92rem;
}

.hint span {
  color: var(--ink);
  font-weight: 700;
}

.icon-button {
  flex: 0 0 auto;
  min-width: 52px;
  height: 42px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--accent);
  background: white;
  font-size: 0.8rem;
  font-weight: 800;
  cursor: pointer;
}

.converter-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 14px;
}

.result-box {
  min-height: 68px;
  margin-top: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
  overflow-wrap: anywhere;
}

.result-box strong {
  display: block;
  margin-bottom: 4px;
  font-size: 1.1rem;
}

.result-box.error {
  color: var(--danger);
  border-color: rgba(180, 35, 24, 0.3);
  background: #fff4f2;
}

.pricing-band,
.notice-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: clamp(26px, 5vw, 44px) 0;
  border-top: 1px solid var(--line);
}

.pricing-band p,
.notice-band p {
  max-width: 760px;
  color: var(--muted);
}

.price-card {
  display: grid;
  gap: 12px;
  min-width: 240px;
  max-width: 360px;
  padding: 24px;
}

.price {
  font-size: 3rem;
  font-weight: 900;
  line-height: 1;
}

.notice-band {
  grid-template-columns: 1fr;
  padding-bottom: 64px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 28px clamp(18px, 4vw, 56px);
  border-top: 1px solid var(--line);
  background: white;
}

.site-footer p {
  margin: 6px 0 0;
  color: var(--muted);
}

.cookie-banner {
  position: fixed;
  right: 18px;
  bottom: 18px;
  left: 18px;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  max-width: 920px;
  margin: 0 auto;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: var(--shadow);
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner p {
  margin: 4px 0 0;
  color: var(--muted);
}

.paypal-buttons {
  min-height: 46px;
}

.legal-main {
  max-width: 900px;
  padding: 48px 0 72px;
}

.legal-card {
  padding: clamp(22px, 4vw, 40px);
}

.legal-card h1 {
  margin: 0 0 10px;
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  line-height: 0.95;
}

.legal-card h2 {
  margin-top: 28px;
  font-size: 1.25rem;
}

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

.legal-action {
  display: grid;
  gap: 10px;
  max-width: 420px;
  margin-top: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.legal-action p {
  margin: 0;
}

@media (max-width: 780px) {
  .site-header,
  .site-footer,
  .cookie-banner {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero,
  .tool-grid,
  .pricing-band,
  .converter-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 36px;
  }

  .hero::before {
    background: linear-gradient(180deg, rgba(247, 250, 252, 0.94) 0%, rgba(247, 250, 252, 0.72) 100%);
  }

  .hero-image {
    inset: 12px 0 auto;
    width: 100%;
    height: 320px;
    opacity: 0.42;
  }

  .price-card {
    width: 100%;
  }
}
