:root {
  --bg: #3b3b3c;
  --bg-alt: #333334;
  --text: #f5f5f5;
  --text-dim: #e3e3e5;
  --gold-1: #f7e0a1;
  --gold-2: #e0b25a;
  --gold-3: #a9781f;
  --accent: #e0b25a;
  --accent-dark: #c99a3e;
  --card: #343435;
  --border: rgba(214, 175, 90, 0.35);
  --border-soft: rgba(214, 175, 90, 0.22);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
}

.container {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 20px;
}

.hero {
  background: var(--bg);
  border-bottom: 1px solid var(--border-soft);
  padding: 8px 0 17px;
  text-align: center;
}

.logo-img {
  display: block;
  width: 100%;
  max-width: 420px;
  margin: 0 auto -4px;
  height: auto;
}

h1 {
  font-family: 'Anton', sans-serif;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.2px;
  font-size: clamp(26px, 6vw, 34px);
  line-height: 1.15;
  margin: 0 0 4px;
}

h1 .gray { color: var(--text-dim); }
h1 .gold {
  background: linear-gradient(180deg, var(--gold-1), var(--gold-2) 55%, var(--gold-3));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.subtitle {
  color: var(--text-dim);
  font-size: 1.05rem;
  margin: 0 0 28px;
}

.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.btn-primary {
  background: linear-gradient(180deg, var(--gold-1), var(--gold-2));
  color: #2a1f06;
}

#calc-form .btn-primary {
  display: block;
  margin: 0 auto;
}

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

.risk-banner {
  position: relative;
  display: block;
  margin: 0 auto 56px;
  max-width: 420px;
  padding: 18px 58px 18px 16px;
  background: linear-gradient(160deg, rgba(224, 178, 90, 0.16), rgba(224, 178, 90, 0.03));
  border: 2px solid rgba(224, 178, 90, 0.7);
  border-radius: 16px;
  text-decoration: none;
  box-shadow: 0 0 30px rgba(214, 175, 90, 0.15) inset, 0 8px 24px rgba(0, 0, 0, 0.3);
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s, background 0.15s;
}

.risk-banner:hover {
  border-color: var(--gold-1);
  background: linear-gradient(160deg, rgba(224, 178, 90, 0.24), rgba(224, 178, 90, 0.06));
  box-shadow: 0 0 34px rgba(214, 175, 90, 0.3) inset, 0 10px 28px rgba(0, 0, 0, 0.35);
  transform: translateY(-1px);
}

.risk-banner:hover .risk-banner-arrow {
  transform: translate(2px, -2px);
  color: var(--gold-1);
}

.risk-banner-arrow {
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-2);
  transition: transform 0.15s, color 0.15s;
}

.risk-banner-title {
  font-family: 'Anton', sans-serif;
  text-transform: uppercase;
  font-weight: 700;
  font-size: clamp(16px, 5vw, 20px);
  white-space: nowrap;
  line-height: 1.1;
  background: linear-gradient(180deg, var(--gold-1), var(--gold-2) 55%, var(--gold-3));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.risk-banner-sub {
  margin-top: 6px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-dim);
}

main {
  padding: 48px 20px 8px;
}

section {
  margin-bottom: 56px;
}

h2 {
  font-family: 'Anton', sans-serif;
  text-transform: uppercase;
  font-weight: 400;
  font-size: 1.6rem;
  margin-top: 0;
  margin-bottom: 16px;
  color: var(--text);
}

#calculator h2 {
  font-size: 1.2rem;
  background: linear-gradient(180deg, var(--gold-1), var(--gold-2) 55%, var(--gold-3));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

h3 {
  font-size: 1.1rem;
  margin: 24px 0 8px;
  color: var(--gold-1);
  font-weight: 700;
}

.directions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.direction-card {
  flex: 1;
  min-width: 160px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
  text-align: center;
  font-weight: 600;
}

.calculator {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px 28px 28px;
  box-shadow: 0 0 30px rgba(214, 175, 90, 0.08) inset;
}

.field {
  margin-bottom: 20px;
}

label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 0.92rem;
}

input[type="text"] {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-size: 1rem;
}

input[type="text"]:focus {
  outline: 2px solid var(--accent);
}

.amount-row {
  display: flex;
  gap: 10px;
  align-items: stretch;
}

.amount-row input[type="text"] {
  flex: 1 1 auto;
  min-width: 0;
}

.currency-toggle {
  display: flex;
  flex: 0 0 auto;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.currency-btn {
  border: none;
  background: transparent;
  color: var(--text-dim);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0 14px;
  cursor: pointer;
}

.currency-btn.active {
  background: linear-gradient(180deg, var(--gold-1), var(--gold-2));
  color: #2a1f06;
}

@media (max-width: 420px) {
  .amount-row { flex-wrap: wrap; }
  .currency-toggle { flex: 1 1 100%; }
  .currency-btn { flex: 1; padding: 10px 0; }
}

.direction-toggle {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.radio {
  flex: 1 1 calc(50% - 5px);
  min-width: 140px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  padding: 12px 8px;
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  margin-bottom: 0;
  font-weight: 500;
}

.radio span {
  font-size: 0.82rem;
  white-space: nowrap;
}

.radio input {
  accent-color: var(--accent);
}

.result {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.result-header {
  font-weight: 700;
  margin-bottom: 12px;
  font-size: 1.05rem;
  color: var(--gold-1);
}

.result-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  color: var(--text-dim);
}

.result-total {
  color: var(--text);
  font-weight: 700;
  font-size: 1.15rem;
  border-top: 1px solid var(--border);
  margin-top: 8px;
  padding-top: 12px;
}

.error {
  margin-top: 20px;
  color: #ff8a7a;
  font-weight: 500;
}

.result-note {
  margin: 16px 0 0;
  padding: 12px 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 0.88rem;
  color: var(--text-dim);
  font-style: italic;
}

.note {
  color: var(--text-dim);
  font-size: 0.92rem;
}

.contact-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 8px;
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

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

.section-title {
  font-family: 'Anton', sans-serif;
  text-transform: uppercase;
  font-weight: 400;
  line-height: 1.1;
  font-size: clamp(22px, 6vw, 28px);
  margin: 0;
}
.section-title .white { color: var(--text); }
.section-title .gold {
  background: linear-gradient(180deg, var(--gold-1), var(--gold-2) 55%, var(--gold-3));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.sub-title {
  font-family: 'Anton', sans-serif;
  text-transform: uppercase;
  font-weight: 400;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  margin: 22px 0 10px;
  color: var(--gold-1);
}

.divider {
  position: relative;
  height: 2px;
  margin: 14px 0 20px;
  background: linear-gradient(90deg, transparent, var(--gold-2) 50%, transparent);
  opacity: 0.85;
}
.divider::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 8px; height: 8px;
  background: var(--gold-1);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 14px 4px rgba(247, 224, 161, 0.75);
}

.icon {
  width: 20px; height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon-circle {
  flex: 0 0 auto;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 2px solid var(--gold-2);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold-1);
}
.icon-circle .icon { width: 22px; height: 22px; }

.card {
  border: 1.5px solid var(--border);
  border-radius: 20px;
  padding: 4px 18px;
  background: var(--card);
  box-shadow: 0 0 30px rgba(214, 175, 90, 0.08) inset;
  margin-bottom: 14px;
}

.card-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-soft);
}
.card-row:last-child { border-bottom: none; }

.row-text {
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--text);
}
.row-text .gold { color: var(--gold-1); font-weight: 700; }

.standalone {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
}

.v-line {
  flex: 0 0 auto;
  align-self: stretch;
  width: 3px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--gold-1), var(--gold-2) 55%, var(--gold-3));
}

.gold-block {
  text-align: center;
  background: linear-gradient(165deg, #f0c469, #e1ab41 55%, #cc9633);
  border: 2px solid rgba(36, 26, 6, 0.35);
  border-radius: 26px;
  padding: 28px 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.32);
  margin-bottom: 0;
}

.gold-block-text {
  margin: 0;
  color: #241a06;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.5;
}

.gold-block-link {
  display: inline-block;
  margin-top: 14px;
  color: #fff;
  font-weight: 800;
  font-size: 0.9rem;
  text-decoration: none;
  -webkit-text-stroke: 0.6px rgba(36, 26, 6, 0.55);
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.35);
}

.footer {
  padding: 10px 0 24px;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.9rem;
}

.footer .logo-img {
  max-width: 160px;
  margin: 0 auto 12px;
}
