:root {
  --navy: #101c4d;
  --navy-2: #15235a;
  --ink: #171717;
  --muted: #7b86b7;
  --white: #fff;
  --line: rgba(255,255,255,.18);
  --accent: #f1b61d;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: Arial, Helvetica, sans-serif; color: var(--ink); background: #fff; }
a { color: inherit; }
.container { width: min(1140px, calc(100% - 32px)); margin: 0 auto; }
.hero { padding: 54px 0 70px; background: #f6f7fb; min-height: 100vh; }
.logo { display: block; width: min(310px, 72vw); margin: 0 auto 30px; }
.intro { max-width: 920px; margin: 0 auto 34px; text-align: center; }
.intro h1, .intro h2 { margin: 0 0 12px; color: #182150; font-weight: 700; }
.intro h1 { font-size: clamp(22px, 3vw, 30px); line-height: 1.25; }
.intro h2 { font-size: 24px; }
.intro p { line-height: 1.55; margin: 8px 0; }
.calculator-card { --card-line: rgba(255,255,255,.20); --card-soft: rgba(255,255,255,.86); --card-muted: rgba(255,255,255,.78); max-width: 570px; margin: 0 auto; padding: 34px 36px 30px; color: var(--white); border-radius: 2px; box-shadow: 0 16px 40px rgba(8,18,58,.18); transition: background .22s ease; }
.calculator-card.metal-gold { background: linear-gradient(135deg, #6c4a08 0%, #b78416 52%, #e4bf61 100%) !important; }
.calculator-card.metal-silver { background: linear-gradient(135deg, #56606b 0%, #8b939d 52%, #cfd4da 100%) !important; }
.card-title { text-align: center; margin-bottom: 24px; }
.card-title h2 { margin: 0 0 8px; font-size: 24px; }
.card-title p { margin: 0; font-size: 12px; letter-spacing: .16em; color: var(--card-soft); }
.metal-switch { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; margin: 0 0 26px; border: 1px solid var(--card-line); border-radius: 4px; backdrop-filter: blur(1px); }
.metal-switch label { position: relative; cursor: pointer; }
.metal-switch input { position: absolute; opacity: 0; pointer-events: none; }
.metal-switch span { display: block; text-align: center; padding: 11px 12px; border-radius: 3px; color: var(--card-soft); transition: .16s ease; }
.metal-switch input:checked + span { background: var(--white); color: var(--navy); font-weight: 700; }
.field-block { margin-bottom: 22px; }
.field-block label, .result-block span { display: block; margin: 0 0 8px; font-size: 14px; }
select, input { width: 100%; min-height: 48px; border: 0; outline: none; border-radius: 2px; background: #fff; color: #222; font-size: 16px; }
select { padding: 0 14px; }
input { padding: 0 14px; }
.price-per-gram { margin-top: 14px; font-size: 24px; font-weight: 700; }
.hint { padding: 15px 0 4px; margin: 2px 0 18px; border-top: 1px solid var(--card-line); color: #fff; font-size: 14px; line-height: 1.7; }
.hint p { margin: 2px 0; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.input-with-unit { display: grid; grid-template-columns: 1fr 78px; }
.input-with-unit input { border-radius: 2px 0 0 2px; }
.input-with-unit span { min-height: 48px; display: grid; place-items: center; background: #eef0f6; color: #646b85; border-left: 1px solid #d9dce6; border-radius: 0 2px 2px 0; }
.result-block { margin-top: 4px; }
.result-block strong { display: block; min-height: 39px; font-size: 28px; }
.calculate { width: 100%; min-height: 49px; margin-top: 18px; border: 0; border-radius: 2px; background: #fff; color: var(--navy); font-size: 14px; font-weight: 700; letter-spacing: .03em; cursor: pointer; }
.calculate:hover { background: #f0f2f8; }
.note, .market-status { margin: 18px 0 0; color: var(--card-muted); font-size: 13px; line-height: 1.5; }
.market-status { margin-top: 7px; }
.address-section { padding: 52px 0; text-align: center; }
.address-content p { line-height: 1.7; }
.address-content a { display: inline-block; margin: 4px 0 18px; color: #17245c; font-weight: 700; }
footer { padding: 28px 0; background: #181818; color: #aaa; text-align: center; font-size: 13px; }
footer a { color: #ddd; text-decoration: none; }
@media (max-width: 640px) {
  .hero { padding-top: 34px; }
  .calculator-card { padding: 28px 20px 24px; }
  .form-grid { grid-template-columns: 1fr; gap: 0; }
}
