/* index.css — стили лендинга forex.events */

/* ── Обёртка ── */
.page-wrap {
    max-width: 1000px;
    margin: 0 auto;
    padding: var(--sticky-h, 130px) 24px 120px;
}

/* ── HERO ── */
.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 0 60px;
}

.hero-tag {
    display: inline-block;
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--green);
    border: 1px solid rgba(46,196,182,0.3);
    border-radius: 20px;
    padding: 5px 14px;
    margin-bottom: 24px;
}

.hero-h1 {
    font-family: var(--mono);
    font-size: clamp(32px, 6vw, 72px);
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text);
    margin-bottom: 20px;
    line-height: 1.1;
}
.hero-h1 span { color: var(--accent); }

.hero-sub {
    font-size: clamp(15px, 2vw, 18px);
    line-height: 1.7;
    color: var(--text2);
    max-width: 620px;
    margin-bottom: 36px;
}
.hero-sub em { color: var(--green); font-style: normal; font-weight: 600; }

/* ── Кнопки ── */
.btn-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 0;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--accent);
    color: #fff;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    padding: 14px 28px;
    border-radius: var(--r);
    border: none;
    cursor: pointer;
    transition: background 0.15s, transform 0.1s, box-shadow 0.15s;
    white-space: nowrap;
}
.btn-primary:hover {
    background: var(--accent2);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(230, 57, 70, 0.35);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    color: var(--text2);
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    padding: 14px 28px;
    border-radius: var(--r);
    border: 1px solid var(--border2);
    transition: border-color 0.15s, color 0.15s, transform 0.1s;
    white-space: nowrap;
}
.btn-secondary:hover { border-color: var(--green); color: var(--green); transform: translateY(-2px); }

/* ── Секции ── */
.section {
    padding: 72px 0;
}

.section-h2 {
    font-family: var(--mono);
    font-size: clamp(18px, 2.5vw, 28px);
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text);
    text-align: center;
    margin-bottom: 12px;
}

.section-sub {
    text-align: center;
    color: var(--text2);
    font-size: 15px;
    max-width: 580px;
    margin: 0 auto 36px;
    line-height: 1.6;
}

/* ── How it works: 3 шага ── */
.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 48px;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 28px 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    position: relative;
    transition: border-color 0.15s;
}
.step:hover { border-color: var(--border2); }

.step-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface2);
    border-radius: 50%;
    color: var(--green);
    margin-bottom: 16px;
}

.step-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
}

.step-text { font-size: 14px; color: var(--text2); line-height: 1.6; }

/* Числа шагов */
.step::before {
    content: attr(data-n);
    position: absolute;
    top: 14px;
    right: 16px;
    font-family: var(--mono);
    font-size: 11px;
    color: var(--text3);
}

/* ── Features: 6 карточек ── */
.feats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 48px;
    margin-bottom: 32px;
}

.feat-card {
    padding: 24px 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    transition: border-color 0.15s, transform 0.15s;
}
.feat-card:hover { border-color: var(--green); transform: translateY(-2px); }

.feat-icon {
    color: var(--green);
    margin-bottom: 12px;
}

.feat-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
}

.feat-text { font-size: 13px; color: var(--text2); line-height: 1.6; }

/* ── Валюты ── */
.currency-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 12px;
}

.cur {
    font-family: var(--mono);
    font-size: 13px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid var(--border2);
}
.cur--free { color: var(--green); border-color: rgba(46,196,182,0.4); background: rgba(46,196,182,0.06); }
.cur--pro  { color: var(--text3); border-color: var(--border); filter: blur(2px); opacity: 0.5; }

.cur-note {
    text-align: center;
    font-size: 13px;
    color: var(--text3);
    font-family: var(--mono);
}

/* ── NPP секция ── */
.section--npp { background: var(--surface); border-radius: var(--r-lg); padding: 56px 40px; border: 1px solid var(--border); margin: 0 -16px; }

.npp-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
    margin: 36px 0 20px;
}

.npp-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px 8px;
    background: var(--surface2);
    border: 1px solid var(--border2);
    border-radius: var(--r);
    text-align: center;
    transition: border-color 0.15s;
}
.npp-item:hover { border-color: var(--text3); }
.npp-item--mid { border-color: rgba(244,162,97,0.4); }
.npp-item--hot { border-color: rgba(230,57,70,0.4); background: rgba(230,57,70,0.04); }

.npp-name  { font-family: var(--mono); font-size: 10px; font-weight: 600; color: var(--text3); letter-spacing: 0.06em; margin-bottom: 6px; }
.npp-range { font-size: 12px; color: var(--text2); margin-bottom: 6px; }
.npp-pct   { font-family: var(--mono); font-size: 18px; font-weight: 700; color: var(--text); }
.npp-item--mid .npp-pct { color: var(--amber); }
.npp-item--hot .npp-pct { color: var(--accent); }

.npp-note {
    text-align: center;
    font-family: var(--mono);
    font-size: 12px;
    color: var(--text3);
    margin-bottom: 20px;
}

.npp-link {
    display: block;
    text-align: center;
    color: var(--green);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: opacity 0.15s;
}
.npp-link:hover { opacity: 0.75; }

/* ── FAQ ── */
.faq { margin-top: 40px; display: flex; flex-direction: column; gap: 4px; }

.faq-item {
    border: 1px solid var(--border);
    border-radius: var(--r);
    overflow: hidden;
    transition: border-color 0.15s;
}
.faq-item[open] { border-color: var(--border2); }

.faq-q {
    list-style: none;
    padding: 16px 20px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--surface);
    user-select: none;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q::after { content: "+"; font-size: 20px; color: var(--text3); font-weight: 300; flex-shrink: 0; margin-left: 12px; }
.faq-item[open] .faq-q::after { content: "−"; color: var(--green); }
.faq-q:hover { background: var(--surface2); }

.faq-a {
    padding: 0 20px 16px;
    font-size: 14px;
    color: var(--text2);
    line-height: 1.7;
    background: var(--surface);
}

/* ── Final CTA ── */
.section--cta {
    text-align: center;
    border-top: 1px solid var(--border);
    padding: 72px 0 40px;
}

.cta-h2 {
    font-family: var(--mono);
    font-size: clamp(20px, 3vw, 36px);
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text);
    margin-bottom: 12px;
}

.cta-sub {
    font-size: 15px;
    color: var(--text2);
    margin-bottom: 28px;
    line-height: 1.6;
}

.page-note {
    margin-top: 20px;
    font-size: 13px;
    color: var(--text3);
    font-family: var(--mono);
}
.page-note a { color: var(--green); text-decoration: none; }
.page-note a:hover { text-decoration: underline; }

/* ── Футер (fixed) ── */
.cal-footer {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 100;
    padding: 10px 24px 12px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid var(--glass-border);
    text-align: center;
    color: var(--text3);
    font-size: 13px;
}
.cal-footer ul { list-style: none; display: flex; align-items: center; justify-content: center; gap: 20px; margin-bottom: 4px; }
.cal-footer .link { display: inline-flex; align-items: center; gap: 6px; color: var(--text2); text-decoration: none; font-size: 13px; transition: color 0.15s; }
.cal-footer .link:hover { color: var(--accent); }
.cal-footer p { margin: 0; font-size: 12px; }
.cal-footer p a { color: var(--text3); text-decoration: none; transition: color 0.15s; }
.cal-footer p a:hover { color: var(--text2); }

/* ── Светлая тема ── */
html[data-theme="light"] .step,
html[data-theme="light"] .feat-card { background: var(--surface); }
html[data-theme="light"] .section--npp { background: var(--surface2); border-color: var(--border2); }
html[data-theme="light"] .npp-item { background: var(--surface); }
html[data-theme="light"] .faq-q,
html[data-theme="light"] .faq-a { background: var(--surface); }

/* ── Адаптив 900px ── */
@media (max-width: 900px) {
    .npp-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ── Адаптив 768px ── */
@media (max-width: 768px) {
    .page-wrap { padding: var(--sticky-h, 110px) 16px 100px; }
    .hero { padding: 24px 0 40px; min-height: auto; }
    .steps, .feats { grid-template-columns: 1fr; gap: 12px; }
    .section { padding: 48px 0; }
    .section--npp { margin: 0 -8px; padding: 40px 20px; }
    .npp-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .btn-group { flex-direction: column; width: 100%; }
    .btn-primary, .btn-secondary { width: 100%; justify-content: center; }
}

/* ── Адаптив 480px ── */
@media (max-width: 480px) {
    .hero-h1 { font-size: 28px; }
    .npp-grid { grid-template-columns: repeat(2, 1fr); }
    .feats { grid-template-columns: 1fr; }
}
