/* ========================================
   ВЕРСИЯ A: «ПУТЬ НКО» — квест-маршрут
   ======================================== */

:root {
    --ink: #22333b;
    --bg: #eef4ef;
    --paper: #ffffff;
    --trail: #a9c3b0;
    --forest: #5e9270;
    --accent: #e07a3f;
    --gold: #e9b84f;
    --sky: #8ab6d6;
    --font: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--ink);
    line-height: 1.7;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
a { color: inherit; text-decoration: none; }
.wrap { max-width: 900px; margin: 0 auto; padding: 0 1.5rem; }

/* Шапка */
.header {
    background: var(--paper);
    border-bottom: 3px dashed var(--trail);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 10;
}
.header .wrap { display: flex; align-items: center; justify-content: space-between; }
.logo { font-weight: 800; font-size: 1.2rem; color: var(--forest); }
.nav { display: flex; gap: 1.5rem; align-items: center; }
.nav__link { font-size: 0.9rem; font-weight: 600; color: var(--ink); opacity: 0.8; }
.nav__link:hover { opacity: 1; }
.nav__link--cta {
    background: var(--accent);
    color: white;
    padding: 0.5rem 1.25rem;
    border-radius: 2rem;
    opacity: 1;
}

/* Карта */
.map {
    padding: 4rem 0 2rem;
    background:
        radial-gradient(circle at 20% 30%, rgba(232, 184, 79, 0.12), transparent 40%),
        radial-gradient(circle at 80% 20%, rgba(138, 182, 214, 0.15), transparent 40%),
        var(--bg);
}
.map__eyebrow {
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 700;
    margin-bottom: 1rem;
}
.map__title {
    font-size: 3rem;
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 1rem;
}
.map__title em {
    font-style: normal;
    color: var(--accent);
    background: rgba(224, 122, 63, 0.12);
    padding: 0 0.25rem;
    border-radius: 0.3rem;
}
.map__sub {
    font-size: 1.1rem;
    color: var(--ink);
    opacity: 0.7;
    margin-bottom: 3rem;
}

/* Маршрут — зигзаг-дорога */
.route {
    position: relative;
    padding: 2rem 0;
}
.route::before {
    content: '';
    position: absolute;
    left: 28px;
    top: 0;
    bottom: 0;
    width: 8px;
    background: repeating-linear-gradient(to bottom, var(--trail) 0 14px, transparent 14px 26px);
    border-radius: 4px;
}
.route__progress {
    position: absolute;
    left: 28px;
    top: 0;
    bottom: 0;
    width: 8px;
    background: var(--forest);
    border-radius: 4px;
    height: 32%;
    transform: translateX(0);
    transition: height 0.6s;
}

.station {
    position: relative;
    padding-left: 76px;
    margin-bottom: 1.75rem;
}
.station__dot {
    position: absolute;
    left: 0;
    top: 0;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--paper);
    border: 4px solid var(--trail);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.1rem;
    z-index: 2;
}
.station--done .station__dot {
    background: var(--forest);
    border-color: var(--forest);
    color: white;
}
.station--current .station__dot {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
    box-shadow: 0 0 0 8px rgba(224, 122, 63, 0.2);
}
.station--finish .station__dot {
    background: var(--gold);
    border-color: var(--gold);
    font-size: 1.4rem;
}
.station__card {
    background: var(--paper);
    border-radius: 1.25rem;
    padding: 1.5rem 2rem;
    box-shadow: 0 6px 20px rgba(34, 51, 59, 0.06);
}
.station--current .station__card {
    border: 3px solid var(--accent);
    box-shadow: 0 10px 30px rgba(224, 122, 63, 0.15);
}
.station__card--locked { opacity: 0.55; }
.station__num {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent);
    font-weight: 700;
}
.station__card h2 { font-size: 1.4rem; margin: 0.25rem 0 0.5rem; }
.station__card p { opacity: 0.75; font-size: 0.95rem; }
.station__link {
    display: inline-block;
    margin-top: 0.75rem;
    font-weight: 700;
    color: var(--forest);
}
.station__link:hover { color: var(--accent); }

/* Прогресс */
.progress { padding: 3rem 0; }
.section-title {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
}
.progress__panel {
    background: var(--paper);
    border-radius: 1.25rem;
    padding: 2rem;
    box-shadow: 0 6px 20px rgba(34, 51, 59, 0.06);
}
.progress__bar {
    height: 14px;
    background: #dfe8e2;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1.5rem;
}
.progress__bar span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--forest), var(--accent));
    border-radius: 8px;
}
.progress__info {
    display: flex;
    gap: 3rem;
    flex-wrap: wrap;
}
.progress__info strong { font-size: 1.6rem; font-weight: 800; color: var(--forest); display: block; }
.progress__info p { opacity: 0.6; font-size: 0.85rem; }

/* Значки */
.badges {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.5rem;
}
.badge {
    background: var(--paper);
    border: 2px solid var(--forest);
    color: var(--forest);
    padding: 0.6rem 1.25rem;
    border-radius: 2rem;
    font-weight: 700;
    font-size: 0.9rem;
}
.badge--locked {
    border-color: #c5cfc9;
    color: #b0b9b4;
    background: transparent;
}

/* Общие подзаголовки секций */
.section-sub { opacity: 0.6; margin-bottom: 1.5rem; font-size: 0.95rem; }

/* Достижения */
.achievements { padding: 3rem 0; background: var(--paper); border-top: 3px dashed var(--trail); border-bottom: 3px dashed var(--trail); }
.achievements__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}
.trophy {
    background: var(--bg);
    border: 2px solid var(--trail);
    border-radius: 1rem;
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.2s;
}
.trophy:hover { transform: translateY(-3px); }
.trophy__icon {
    display: block;
    font-size: 2.25rem;
    margin-bottom: 0.6rem;
}
.trophy strong { display: block; font-size: 1rem; margin-bottom: 0.25rem; }
.trophy__desc { font-size: 0.8rem; opacity: 0.7; }
.trophy--got { background: #e8f5e9; border-color: var(--forest); }
.trophy--got .trophy__desc { color: var(--forest); }
.trophy--current {
    background: #fdf0e4;
    border-color: var(--accent);
    border-style: dashed;
}
.trophy--current .trophy__desc { color: var(--accent); font-weight: 700; }
.trophy--locked { opacity: 0.55; }

/* Инвентарь */
.inventory { padding: 3rem 0; }
.inventory__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}
.item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--paper);
    border: 2px solid var(--trail);
    border-radius: 0.9rem;
    padding: 1rem 1.25rem;
}
.item__icon { font-size: 1.75rem; flex-shrink: 0; }
.item__info { flex: 1; }
.item__info strong { display: block; font-size: 0.95rem; }
.item__info p { font-size: 0.8rem; opacity: 0.6; }
.item__rarity {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.3rem 0.7rem;
    border-radius: 2rem;
    white-space: nowrap;
}
.item__rarity--common { background: #e8f5e9; color: var(--forest); }
.item__rarity--rare { background: #fdf0e4; color: var(--accent); }
.item__rarity--locked { background: #eef1f4; color: #8b979e; }
.item--rare { border-color: var(--accent); }
.item--locked { opacity: 0.55; }

/* Советы от проводника */
.tips { padding: 3rem 0; background: var(--paper); border-top: 3px dashed var(--trail); }
.tips__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}
.tip {
    background: var(--bg);
    border: 2px solid var(--trail);
    border-radius: 1rem;
    padding: 1.5rem;
}
.tip:nth-child(odd) { border-color: var(--forest); }
.tip:nth-child(even) { border-color: var(--gold); }
.tip__head {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.9rem;
}
.tip__avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--paper);
    border: 2px solid var(--trail);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}
.tip__head strong { display: block; font-size: 0.95rem; }
.tip__meta { font-size: 0.75rem; opacity: 0.6; }
.tip > p { font-size: 0.92rem; opacity: 0.85; }

/* FAQ */
.faq { padding: 3rem 0 5rem; }
.faq__grid { display: grid; gap: 0.75rem; }
.faq__item {
    background: var(--paper);
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(34, 51, 59, 0.05);
}
.faq__item summary {
    padding: 1.25rem 1.5rem;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
    position: relative;
    padding-right: 3rem;
}
.faq__item summary::after {
    content: '+';
    position: absolute;
    right: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.4rem;
    color: var(--accent);
    font-weight: 400;
}
.faq__item[open] summary::after { content: '–'; }
.faq__item p { padding: 0 1.5rem 1.25rem; opacity: 0.75; font-size: 0.95rem; }

/* Футер */
.footer {
    background: var(--ink);
    color: var(--bg);
    margin-top: auto;
}
.footer .wrap {
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.85rem;
    opacity: 0.8;
}

@media (max-width: 768px) {
    .achievements__grid { grid-template-columns: repeat(2, 1fr); }
    .inventory__grid, .tips__grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .map__title { font-size: 2rem; }
    .nav { display: none; }
    .station { padding-left: 60px; }
    .station__dot { width: 48px; height: 48px; font-size: 0.9rem; }
    .route::before, .route__progress { left: 20px; }
    .achievements__grid { grid-template-columns: 1fr; }
    .item { flex-wrap: wrap; }
}
