/* ── HOW IT WORKS ── */
.gis-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
.gis-step { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 24px 20px; text-align: center; position: relative; box-shadow: var(--shadow-sm); }
.gis-step__num { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg,#00c68e,#0082c8); color: #fff; font-size: 20px; font-weight: 800; display: flex; align-items: center; justify-content: center; margin: 0 auto 14px; }
.gis-step h3 { margin: 0 0 8px; font-size: 16px; }
.gis-step p  { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }

/* ── TRUST & USE CASES ── */
.gis-trust-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; }
.gis-trust-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); display: flex; gap: 16px; align-items: flex-start; }
.gis-trust-icon { width: 44px; height: 44px; flex-shrink: 0; color: #0082c8; }
.gis-trust-card h4 { margin: 0 0 6px; font-size: 15px; }
.gis-trust-card p  { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }

/* ── PRICING ── */
.gis-pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.gis-price-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 24px 18px; text-align: center; box-shadow: var(--shadow-sm); transition: transform .2s; }
.gis-price-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.gis-price-card.popular { border-color: #00c68e; box-shadow: 0 0 0 2px #00c68e33, var(--shadow-lg); position: relative; }
.gis-price-card.popular::before { content: "Самый популярный"; position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: linear-gradient(90deg,#00c68e,#0082c8); color: #fff; font-size: 11px; font-weight: 700; padding: 3px 12px; border-radius: 50px; text-transform: uppercase; letter-spacing: .5px; white-space: nowrap; }
.gis-price-card .tokens { font-size: 28px; font-weight: 800; color: var(--heading-color); }
.gis-price-card .usd    { font-size: 14px; color: var(--muted); margin: 4px 0 14px; }
.gis-price-card .per-link { font-size: 12px; color: #00c68e; font-weight: 700; margin-bottom: 14px; }
.gis-price-card .btn    { width: 100%; justify-content: center; }

/* ── FAQ ── */
.gis-faq details { border-bottom: 1px solid var(--border); }
.gis-faq details:last-child { border-bottom: none; }
.gis-faq summary { padding: 16px 4px; font-size: 16px; font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.gis-faq summary::-webkit-details-marker { display: none; }
.gis-faq summary::after { content: "+"; font-size: 20px; color: #0082c8; }
.gis-faq details[open] summary::after { content: "−"; }
.gis-faq details p { padding: 0 4px 16px; margin: 0; color: var(--muted); line-height: 1.7; }

/* ── FINAL CTA ── */
.gis-final-cta { background: linear-gradient(135deg, #0f172a 0%, #0f2c40 100%); border-radius: var(--radius); padding: 48px 32px; text-align: center; color: #fff; }
.gis-final-cta h2 { color: #fff; font-size: clamp(22px,4vw,36px); margin: 0 0 12px; }
.gis-final-cta p  { color: #94a3b8; font-size: 16px; max-width: 580px; margin: 0 auto 28px; }

/* ── TOOLTIPS (si-term) ── */
.si-term { border-bottom: 1px dashed var(--brand, #0078d4); cursor: help; position: relative; color: var(--text-color, #333); font-weight: 600; }
.si-term:hover { color: var(--brand, #0078d4); }
.si-term::after { content: attr(data-tooltip); position: absolute; bottom: 125%; left: 50%; transform: translateX(-50%); background: #1e293b; color: #fff; padding: 8px 12px; border-radius: 6px; font-size: 13px; font-weight: 400; line-height: 1.4; white-space: pre-wrap; width: max-content; max-width: 250px; text-align: center; box-shadow: 0 4px 6px rgba(0,0,0,0.15); opacity: 0; visibility: hidden; transition: opacity 0.2s ease, transform 0.2s ease; z-index: 100; pointer-events: none; }
.si-term::before { content: ''; position: absolute; bottom: 115%; left: 50%; transform: translateX(-50%); border-width: 6px; border-style: solid; border-color: #1e293b transparent transparent transparent; opacity: 0; visibility: hidden; transition: opacity 0.2s ease; z-index: 100; }
.si-term:hover::after { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(-5px); }
.si-term:hover::before { opacity: 1; visibility: visible; }

/* ── OPPORTUNITY COST CALCULATOR ── */
.calc-wrapper { background: linear-gradient(135deg, #0f172a, #1e3a4c); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 12px; padding: 40px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15); margin: 40px auto; width: 100%; box-sizing: border-box; }
.calc-header { text-align: center; margin-bottom: 32px; }
.calc-title { font-size: 24px; font-weight: 800; color: #ffffff; margin: 0 0 12px 0; }
.calc-subtitle { font-size: 15px; color: #94a3b8; margin: 0; }
.calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 24px; }
.calc-group { display: flex; flex-direction: column; text-align: left; }
.calc-label { font-size: 14px; font-weight: 600; color: #ffffff; margin-bottom: 8px; }
.calc-input { width: 100%; padding: 14px 16px; background: #ffffff; border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 8px; font-size: 15px; color: #0f172a; outline: none; transition: border-color 0.2s, box-shadow 0.2s; box-sizing: border-box; }
.calc-input:focus { border-color: #00c68e; box-shadow: 0 0 0 3px rgba(0, 198, 142, 0.25); }
.calc-btn-full { width: 100%; background: #00c68e; color: #ffffff; font-size: 16px; font-weight: 700; padding: 16px; border: none; border-radius: 8px; cursor: pointer; transition: background 0.2s; }
.calc-btn-full:hover { background: #00b07d; }
.calc-result { display: none; margin-top: 24px; padding: 20px; border-radius: 8px; background: rgba(0, 0, 0, 0.2); border: 1px solid rgba(0, 198, 142, 0.2); text-align: center; color: #e2e8f0; font-size: 16px; line-height: 1.6; }
.calc-result strong { color: #ffffff; }
.calc-result .highlight-red { color: #ef4444; font-weight: 700; font-size: 18px; }
.calc-result .highlight-green { color: #00c68e; font-weight: 800; display: block; margin-top: 12px; padding-top: 12px; border-top: 1px solid rgba(0, 198, 142, 0.2); }

/* ── API SECTION ── */
.si-card--api-revamped { background: linear-gradient(135deg, #0f172a 0%, #16213e 100%); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 12px; padding: 40px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15); color: #ffffff; margin: 40px auto; }
.section-title--compact { font-size: clamp(24px, 4vw, 32px); margin: 0 0 12px 0; text-align: center; font-weight: 800; color: #ffffff; }
.section-description--compact { color: #94a3b8; text-align: center; max-width: 700px; margin: 0 auto 32px auto; font-size: 16px; line-height: 1.6; }
.section-description--compact strong { color: #ffffff; }
.api-features-compact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 36px; }
.api-feature-compact-item { background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.05); border-radius: 8px; padding: 20px; text-align: center; transition: transform 0.2s, background 0.2s; }
.api-feature-compact-item:hover { transform: translateY(-3px); background: rgba(255, 255, 255, 0.06); }
.api-feature-compact-item p { margin: 0; font-size: 14px; color: #cbd5e1; line-height: 1.5; }
.api-feature-compact-item strong { color: #ffffff; display: block; margin-bottom: 6px; font-size: 16px; }
.api-code-showcase { background: #0b1120; border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 8px; overflow: hidden; box-shadow: inset 0 2px 10px rgba(0,0,0,0.3); }
.code-tabs { display: flex; background: #1e293b; border-bottom: 1px solid rgba(255, 255, 255, 0.1); overflow-x: auto; }
.tab-btn { background: transparent; border: none; color: #94a3b8; padding: 12px 24px; font-size: 14px; font-weight: 600; cursor: pointer; border-bottom: 2px solid transparent; transition: all 0.2s; font-family: inherit; white-space: nowrap; }
.tab-btn:hover { color: #ffffff; background: rgba(255, 255, 255, 0.05); }
.tab-btn.active { color: #00c68e; border-bottom-color: #00c68e; background: rgba(0, 198, 142, 0.05); }
.code-block-wrapper { position: relative; padding: 24px 20px; }
.code-block-content { margin: 0; overflow-x: auto; scrollbar-width: thin; scrollbar-color: #475569 #0b1120; }
.code-block-content::-webkit-scrollbar { height: 8px; }
.code-block-content::-webkit-scrollbar-track { background: #0b1120; }
.code-block-content::-webkit-scrollbar-thumb { background-color: #475569; border-radius: 10px; }
.code-block-content code { font-family: 'Consolas', 'Monaco', 'Courier New', monospace; font-size: 14px; line-height: 1.6; color: #e2e8f0; }
.copy-code-btn { position: absolute; top: 16px; right: 16px; background: rgba(255, 255, 255, 0.1); color: #ffffff; border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 6px; padding: 6px 14px; font-size: 12px; font-weight: 600; cursor: pointer; transition: all 0.2s; font-family: inherit; }
.copy-code-btn:hover { background: rgba(255, 255, 255, 0.2); border-color: rgba(255, 255, 255, 0.3); }

/* ── YOUTUBE VIDEO ── */
.video-container { position: relative; width: 100%; max-width: 900px; aspect-ratio: 16 / 9; margin: 0 auto; border-radius: 12px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3); overflow: hidden; background-color: #000; }
.video-container iframe, .video-container lite-youtube { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none; }
.video-container lite-youtube { background-size: cover !important; background-position: center !important; }

/* ── RESPONSIVE & UTILS ── */
.text-green { color: #00c68e; } .text-red { color: #ef4444; } .text-muted { color: var(--muted); }
.urgency-high { color: #ef4444; font-weight: 700; } .urgency-medium { color: #f59e0b; font-weight: 700; }
@media(max-width: 768px) { .calc-grid { grid-template-columns: 1fr; gap: 16px; } .calc-wrapper { padding: 24px 20px; } .api-features-compact-grid { grid-template-columns: 1fr; } .si-card--api-revamped { padding: 24px 20px; } }
@media(max-width: 640px) { .gis-pricing-grid { grid-template-columns: 1fr 1fr; } }
@media(max-width: 400px) { .gis-pricing-grid { grid-template-columns: 1fr; } }