:root {
  --bg: #0e1116;
  --surface: #161b22;
  --surface-2: #1f2630;
  --text: #e6edf3;
  --muted: #8b949e;
  --accent: #e63946;
  --accent-2: #f1a208;
  --border: #2a313c;
  --radius: 14px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

/* Hero */
.hero {
  background: radial-gradient(ellipse at top, #2a0a0d 0%, var(--bg) 60%);
  padding-bottom: 80px;
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  max-width: 1100px;
  margin: 0 auto;
}

.logo-link { display: block; line-height: 0; }
.logo-img { height: 56px; width: auto; display: block; }

.tg-btn {
  background: #229ED9;
  color: #fff;
  text-decoration: none;
  padding: 8px 18px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  transition: transform .15s, opacity .15s;
}
.tg-btn:hover { transform: translateY(-1px); opacity: .92; }

.hero-banner {
  max-width: 1100px;
  margin: 24px auto 0;
  padding: 0 20px;
  line-height: 0;
}
.hero-banner img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  display: block;
}
.hero-content {
  text-align: center;
  padding: 60px 20px 20px;
  max-width: 800px;
  margin: 0 auto;
}

h1 {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #fff 0%, #f1a208 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.lead {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--muted);
  margin-bottom: 36px;
}

.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  border: none;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s, opacity .15s;
}
.btn.primary {
  background: linear-gradient(135deg, var(--accent) 0%, #c52d39 100%);
  color: #fff;
  box-shadow: 0 6px 24px rgba(230,57,70,.25);
}
.btn.primary:hover { transform: translateY(-1px); box-shadow: 0 10px 28px rgba(230,57,70,.35); }
.btn.ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn.ghost:hover { background: var(--surface); }
.btn.wide { width: 100%; text-align: center; margin-top: 16px; }

/* Sections */
section { padding: 80px 0; }
h2 {
  font-size: clamp(26px, 3.5vw, 36px);
  margin-bottom: 16px;
  font-weight: 700;
}
.muted { color: var(--muted); margin-bottom: 28px; }

/* Features */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.card {
  background: var(--surface);
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: transform .2s, border-color .2s;
}
.card:hover { transform: translateY(-3px); border-color: var(--accent); }
.card-icon { font-size: 32px; margin-bottom: 12px; }
.card h3 { margin-bottom: 8px; font-size: 19px; }
.card p { color: var(--muted); font-size: 15px; }

/* Calculator */
.calc-section { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.calc {
  background: var(--surface-2);
  padding: 28px;
  border-radius: var(--radius);
  max-width: 560px;
  margin-top: 24px;
  border: 1px solid var(--border);
}
.calc-row { margin-bottom: 14px; }
.calc-row label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.5px; }
.calc-input {
  display: flex;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color .15s;
}
.calc-input:focus-within { border-color: var(--accent); }
.calc-input input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 22px;
  font-weight: 600;
  padding: 14px 16px;
  outline: none;
  width: 100%;
  min-width: 0;
}
.calc-input select {
  background: var(--surface);
  border: none;
  border-left: 1px solid var(--border);
  color: var(--text);
  padding: 0 14px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  outline: none;
}
.swap {
  display: block;
  margin: 4px auto;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 18px;
  cursor: pointer;
  transition: transform .2s, border-color .2s;
}
.swap:hover { transform: rotate(180deg); border-color: var(--accent); }
.rate {
  margin-top: 16px;
  padding: 12px 16px;
  background: var(--bg);
  border-radius: 8px;
  font-size: 14px;
  color: var(--muted);
  text-align: center;
  line-height: 1.5;
}
.rate b { color: var(--accent-2); font-weight: 700; }
.rate-meta {
  margin-top: 4px;
  font-size: 12px;
  color: #6e7681;
  letter-spacing: 0.3px;
}

/* Steps */
.steps { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.steps li { display: flex; gap: 14px; align-items: flex-start; }
.steps span {
  flex-shrink: 0;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #c52d39);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}
.steps h4 { margin-bottom: 4px; font-size: 16px; }
.steps p { color: var(--muted); font-size: 14px; }

/* Contacts */
.contacts { background: var(--surface); border-top: 1px solid var(--border); }
.contacts-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; margin-top: 20px; }
.contacts-grid h4 { font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 8px; }
.contacts-grid a { color: var(--accent-2); text-decoration: none; font-weight: 600; }
.contacts-grid a:hover { text-decoration: underline; }

/* Badge */
.badge {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(241, 162, 8, 0.12);
  border: 1px solid rgba(241, 162, 8, 0.4);
  color: var(--accent-2);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 24px;
  letter-spacing: 0.3px;
}

/* FAQ */
.faq { background: var(--surface); border-top: 1px solid var(--border); }
.faq-grid { display: grid; gap: 12px; margin-top: 20px; }
.faq details {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  transition: border-color .15s;
}
.faq details[open] { border-color: var(--accent); }
.faq summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 16px;
  list-style: none;
  position: relative;
  padding-right: 28px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  color: var(--muted);
  transition: transform .2s;
}
.faq details[open] summary::after { content: '−'; }
.faq details p { margin-top: 12px; color: var(--muted); font-size: 15px; }

/* Disabled select */
.calc-input select:disabled { opacity: 0.85; cursor: not-allowed; }

/* Footer */
footer {
  padding: 28px 0;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}
