:root {
  --ink: #050b22;
  --navy: #042e72;
  --blue: #0b6cff;
  --sky: #38b6ff;
  --mint: #2de3a7;
  --paper: #f6f8fe;
  --muted: #5c6685;
  --line: #e1e7f2;
  font-family: Inter, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
a {
  color: inherit;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
a:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 6px;
  border-radius: 4px;
}
.wrap {
  width: min(1080px, calc(100% - 64px));
  margin-inline: auto;
}
.skip {
  position: absolute;
  left: 16px;
  top: -100px;
  background: #fff;
  padding: 16px;
  z-index: 2;
}
.skip:focus {
  top: 12px;
}
.header {
  height: 108px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.logo {
  width: 178px;
  height: auto;
  display: block;
}
.back {
  font-size: 14px;
  color: var(--muted);
  font-weight: 500;
}
.back span {
  margin-left: 12px;
  font-size: 20px;
}
.intro {
  text-align: center;
  padding: 60px 0 34px;
}
.eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.19em;
  color: var(--navy);
  margin: 0 0 17px;
}
h1,
h2,
.price {
  font-family: Sora, sans-serif;
}
h1 {
  font-size: clamp(36px, 5vw, 58px);
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 1.16;
  margin: 0;
}
h1 span {
  color: var(--blue);
}
.lead {
  font-size: 18px;
  line-height: 1.65;
  color: var(--muted);
  margin: 19px 0 0;
}
.quote-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: 0 14px 60px #042e7208;
  overflow: hidden;
  position: relative;
}
.quote-card:before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--navy), var(--blue), var(--sky));
}
.quote-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 29px 36px;
  gap: 20px;
}
.quote-top h2 {
  font-size: 15px;
  line-height: 1.6;
  font-weight: 500;
  margin: 0;
}
.quote-top h2 span {
  display: block;
  font-family: Inter, sans-serif;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  background: var(--paper);
  border-radius: 40px;
  padding: 10px 14px;
  margin: 0;
}
.status:before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}
.status[data-state='fresh'] {
  color: #096b4c;
  background: #e9faf4;
}
.status[data-state='unavailable'],
.status[data-state='expired'] {
  color: #8a5504;
  background: #fff6e5;
}
.quote-value {
  text-align: center;
  padding: 14px 16px 37px;
}
.conversion {
  font-size: 15px;
  color: var(--muted);
  margin: 0 0 12px;
}
.price-line {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 16px;
  min-height: 98px;
}
.price {
  font-size: clamp(48px, 8vw, 86px);
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -0.06em;
  font-variant-numeric: tabular-nums;
}
.currency {
  font-size: 19px;
  color: var(--muted);
  font-weight: 500;
}
.reference-label {
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
  margin: 12px 0 0;
}
.quote-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fafbff;
  border-top: 1px solid var(--line);
  padding: 21px 36px;
  gap: 12px;
}
.small-label {
  font-size: 9px;
  letter-spacing: 0.13em;
  font-weight: 700;
  color: var(--muted);
  margin: 0 0 7px;
}
#timestamp {
  font-size: 13px;
  margin: 0;
  line-height: 1.5;
}
.timezone {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}
.timezone span {
  margin-left: 8px;
}
.refresh-note {
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
  margin: 18px 0 0;
}
.details {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 42px;
  padding: 44px 8px 30px;
}
.detail-number {
  font-size: 11px;
  color: var(--blue);
  font-weight: 600;
  letter-spacing: 0.1em;
}
.details h2 {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 13px 0 10px;
}
.details p {
  font-size: 13px;
  line-height: 1.75;
  color: var(--muted);
  margin: 0;
}
.disclaimer {
  font-size: 11px;
  line-height: 1.8;
  color: var(--muted);
  padding: 18px 0 30px;
  max-width: 870px;
}
.footer {
  border-top: 1px solid var(--line);
  padding: 24px 0 30px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 11px;
  color: var(--muted);
}
.footer nav {
  display: flex;
  gap: 22px;
}
.notice {
  text-align: center;
  color: #8a5504;
  line-height: 1.6;
}
@media (max-width: 640px) {
  .wrap {
    width: calc(100% - 36px);
  }
  .header {
    height: 82px;
  }
  .logo {
    width: 140px;
  }
  .back {
    font-size: 11px;
  }
  .back span {
    margin-left: 4px;
  }
  .intro {
    padding: 39px 0 28px;
  }
  .lead {
    font-size: 15px;
    margin-top: 14px;
  }
  .quote-card {
    border-radius: 22px;
  }
  .quote-top {
    padding: 23px 20px;
    align-items: flex-start;
    gap: 12px;
  }
  .quote-top h2 {
    font-size: 12px;
    max-width: 135px;
  }
  .status {
    font-size: 10px;
    padding: 8px 9px;
    max-width: 148px;
    line-height: 1.4;
  }
  .quote-value {
    padding: 12px 12px 29px;
  }
  .price-line {
    min-height: 68px;
    gap: 10px;
  }
  .currency {
    font-size: 15px;
  }
  .reference-label {
    font-size: 10px;
    max-width: 240px;
    margin: 12px auto 0;
  }
  .quote-bottom {
    padding: 18px 20px;
    align-items: flex-end;
  }
  .timezone {
    font-size: 10px;
  }
  #timestamp {
    font-size: 11px;
    max-width: 205px;
  }
  .small-label {
    font-size: 8px;
  }
  .refresh-note {
    font-size: 10px;
  }
  .details {
    grid-template-columns: 1fr;
    gap: 25px;
    padding: 35px 5px 25px;
  }
  .details > div {
    position: relative;
    padding-left: 35px;
  }
  .detail-number {
    position: absolute;
    left: 0;
    top: 2px;
  }
  .details h2 {
    margin-top: 0;
  }
  .details p {
    font-size: 12px;
  }
  .disclaimer {
    font-size: 10px;
    padding-bottom: 24px;
  }
  .footer {
    flex-direction: column;
    gap: 16px;
    font-size: 10px;
  }
}
.header {
  width: 100%;
  padding-inline: max(32px, calc((100% - 1080px) / 2));
  background: var(--navy);
  border-bottom: 0;
}
.header .back {
  color: #fff;
}
@media (max-width: 640px) {
  .header {
    padding-inline: 18px;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .quote-card {
    animation: appear 0.4s ease-out;
  }
  @keyframes appear {
    from {
      opacity: 0;
      transform: translateY(8px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}
