/* КОМПАС 1.3 — страница на експедицията, уникални медали и личен паспорт. */
:root{--pine:#194832;--leaf:#2e7350;--cream:#fff9ed;--ink:#193f2b;--orange:#ec8350}
.exp-page,.passport-page{margin:0;background:#fff9ec;color:var(--ink);font-family:'Trebuchet MS','Segoe UI',Arial,sans-serif}
.exp-page *, .passport-page *{box-sizing:border-box}
.exp-page .wrap{width:min(1140px,calc(100% - 38px));margin-inline:auto}
.exp-nav{background:#fffdf5;border-bottom:2px solid #d8e8cf}
.exp-nav-inner{display:flex;align-items:center;justify-content:space-between;gap:20px;min-height:94px}
.exp-nav .brand img{width:64px;height:64px;object-fit:contain}
.exp-back{background:#fff;border:1px solid #d0e1c9;border-radius:100px;padding:12px 18px;font-weight:900;color:#276641}
.exp-back:hover{background:#eef9e7}
.exp-hero{background:radial-gradient(ellipse 55% 95% at 85% 4%,#fdde94 0,transparent 80%),linear-gradient(145deg,#e7f4dc,#fff5df 77%);padding:60px 0 72px;position:relative}
.exp-hero:after{content:"";position:absolute;bottom:0;left:0;right:0;height:20px;background:linear-gradient(90deg,#194b31 0 12%,#e8a44d 12% 24%,#194b31 24% 38%,#e8a44d 38% 54%,#194b31 54% 68%,#e8a44d 68% 84%,#194b31 84%);clip-path:polygon(0 75%,100% 50%,100% 100%,0 100%);opacity:.25}
.exp-hero-grid{display:grid;grid-template-columns:minmax(0,1.18fr) minmax(310px,.82fr);gap:50px;align-items:center}
.exp-hero .kicker{display:inline-block;background:#fffaf4;border-radius:22px;padding:12px 17px;box-shadow:0 4px 0 #efd7a3;color:#205d3d;letter-spacing:.6px;font-size:12px}
.exp-hero h1{font-weight:1000;font-size:clamp(34px,5.2vw,68px);line-height:1.1;letter-spacing:-2px;margin:28px 0 22px;max-width:680px}
.exp-hero-desc{font-size:17px;line-height:1.85;max-width:620px;color:#47604c}
.exp-quick-meta{display:flex;flex-wrap:wrap;gap:12px;margin:24px 0}
.exp-quick-meta span{padding:13px 16px;background:#fff;border:1px solid #c8dfba;border-radius:15px;font-weight:900;font-size:14px;box-shadow:0 3px 0 #daebcd}
.countdown{display:inline-block;border-radius:14px;padding:14px 19px;background:#1f5837;color:#fff;line-height:1.6;font-size:15px;font-weight:750;box-shadow:0 5px 0 #16452d}
.exp-medal-card{background:#fff;border:3px solid #174e34;border-radius:34px;padding:26px 28px 25px;text-align:center;box-shadow:11px 13px 0 #bdddb2;position:relative;transform:rotate(1deg)}
.exp-medal-label{display:inline-block;background:#fff0c0;border-radius:100px;padding:8px 13px;font-weight:900;letter-spacing:.7px;font-size:11px}
.exp-medal-card h2{margin:10px 0 6px;font-size:25px;line-height:1.2}
.exp-medal-card p{line-height:1.6;color:#536b58;margin:0 0 10px}
.exp-medal-card small{font-size:12px;color:#788576}
.exp-intro-pill{padding:27px 0 0;text-align:center;font-weight:900;color:#316e4a;letter-spacing:.2px}
.exp-content-grid{display:grid;grid-template-columns:minmax(0,1.12fr) minmax(300px,.88fr);align-items:start;gap:24px;padding:32px 0 75px}
.exp-content-main,.exp-content-side{display:grid;gap:24px;min-width:0}
.exp-paper{background:#fff;border:1px solid #d9e4d2;border-radius:28px;padding:32px;box-shadow:0 8px 22px #416b4310;min-width:0}
.exp-paper .kicker{font-size:12px;color:#2f784b}
.exp-paper h2{font-size:clamp(23px,3vw,31px);letter-spacing:-.7px;margin:9px 0 16px;font-weight:950}
.exp-paper>p{line-height:1.75;color:#59705c}
.exp-step-list{list-style:none;padding:0;margin:25px 0 0;counter-reset:steps;display:grid;gap:13px}
.exp-step-list li{display:flex;gap:14px;align-items:start;font-size:15px;line-height:1.65;background:#f6fbf1;padding:15px;border-radius:16px}
.exp-step-list li:before{counter-increment:steps;content:counter(steps,decimal-leading-zero);font-weight:1000;color:#fff;background:#29714a;border-radius:10px;padding:5px 8px;font-size:12px;flex-shrink:0}
.exp-missions{display:grid;gap:13px;margin-top:19px}
.exp-mission{display:flex;align-items:center;gap:14px;cursor:pointer;border:2px solid #dbe5cd;background:#fffdf5;border-radius:18px;padding:16px;transition:border .2s,background .2s;line-height:1.55;font-weight:700}
.exp-mission:has(input:checked){background:#e8f7e4;border-color:#5ea77a}
.exp-mission input,.exp-gear-list input{accent-color:#257349;flex-shrink:0;width:20px;height:20px;cursor:pointer}
.exp-mission-num{font-weight:1000;color:#bd6926;background:#ffedca;border-radius:10px;padding:7px 9px;font-size:12px}
.exp-mission-note{font-size:12px!important;line-height:1.65!important;margin-top:18px;color:#68816e!important}
.exp-gear-list{display:grid;gap:10px}
.exp-gear-list label{display:flex;align-items:start;gap:12px;background:#f5faf0;border-radius:14px;padding:13px;line-height:1.5;cursor:pointer}
.exp-gear-list label:has(input:checked) span{text-decoration:line-through;color:#739378}
.exp-gear{background:#fefef8;border:2px solid #cfe8ca}
.exp-weather{border:2px solid #cce5e8;background:#f4fcfd}
.exp-weather .event-weather{margin-top:7px}
.exp-advice{background:#ffecc2;border:2px solid #e9c88e}
.exp-advice p{color:#634d32}
.exp-journal-empty{display:flex;align-items:center;gap:19px;padding:22px;background:#f6f9f0;border:2px dashed #b5cba8;border-radius:18px}
.exp-journal-empty span{font-size:48px}
.exp-journal-empty p{margin:0;line-height:1.7;color:#5a7362}
.exp-report{white-space:normal;background:#f6fbf0;border-left:5px solid #4b9969;padding:23px;border-radius:0 15px 15px 0}
.exp-footer{background:#163e29;color:#fff;padding:28px 0}
.exp-footer .wrap{display:flex;align-items:center;gap:16px}
.exp-footer strong{display:block}.exp-footer small{display:block;margin-top:5px;color:#cadecd}
.exp-footer a{margin-left:auto;font-weight:800;color:#d9f5c9}
/* Every expedition receives a unique color/symbol/name/date; CSS medal is printable at any resolution. */
.compas-medal{--medal-top:#4d9c69;--medal-bottom:#153e2a;--medal-edge:#dd9a30;--medal-glow:#fff1a6;position:relative;display:grid;justify-items:center;align-items:start;width:220px;min-height:261px;margin:15px auto 12px;isolation:isolate}
.compas-medal.sunset{--medal-top:#f0a04a;--medal-bottom:#b64a32;--medal-edge:#ce8932;--medal-glow:#fff0b4}
.compas-medal.sky{--medal-top:#69b5d2;--medal-bottom:#32739f;--medal-edge:#d9a14a;--medal-glow:#e9faff}
.compas-medal.violet{--medal-top:#9d84d4;--medal-bottom:#564084;--medal-edge:#deb05b;--medal-glow:#f6e9ff}
.compas-medal.lake{--medal-top:#5cb7a7;--medal-bottom:#1b6f70;--medal-edge:#d9a14a;--medal-glow:#e0ffef}
.medal-ribbon{position:absolute;z-index:0;top:2px;left:50%;transform:translateX(-50%);display:flex;gap:8px}
.medal-ribbon i{height:100px;width:54px;background:linear-gradient(100deg,#143b2b 0 19%,var(--medal-top) 20% 75%,#ffe08d 76% 100%);clip-path:polygon(3% 0,97% 0,98% 100%,55% 76%,4% 100%)}
.medal-ribbon i:first-child{transform:rotate(-24deg);transform-origin:top right}.medal-ribbon i:last-child{transform:rotate(24deg);transform-origin:top left}
.medal-round{z-index:1;margin-top:56px;width:196px;height:196px;border-radius:50%;border:9px solid var(--medal-edge);background:conic-gradient(from 15deg,#ffdb7d,#dca34a,#fff3b4,#b87027,#ffda7d);padding:8px;box-shadow:0 12px 0 #a16c2c,0 19px 16px #1d492735,inset 0 0 0 2px #fff9d7;display:grid;place-items:center}
.medal-inner{border:3px dashed #fff8d999;border-radius:50%;width:100%;height:100%;background:radial-gradient(circle at 27% 17%,#ffffff77 0,transparent 39%),linear-gradient(145deg,var(--medal-top),var(--medal-bottom));display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;color:#fff;padding:14px 9px 12px;overflow:hidden}
.medal-emoji{font-size:52px;line-height:1.15;filter:drop-shadow(0 4px 1px #00251b33)}
.medal-brand{font-weight:1000;letter-spacing:2px;font-size:12px;margin-top:2px}
.medal-name{font-weight:1000;font-size:17px;line-height:1.1;max-width:155px;overflow-wrap:anywhere}
.medal-date{font-size:10px;letter-spacing:1px;margin-top:6px;color:var(--medal-glow);font-weight:900}
.medal-large{transform:scale(1.14);transform-origin:center;margin:33px auto 32px}
.medal-preview{text-align:center;background:#f6faed;padding:18px;border-radius:20px;margin:12px 0 27px}
.medal-preview strong{display:block;font-size:20px}.medal-preview p{margin:7px 0}.medal-preview small{color:#68816b}
/* Private passport */
.passport-page{background:radial-gradient(circle at 70% 4%,#fef0c6 0,transparent 24%),#f7f8ed;min-height:100vh}
.passport-nav{padding:20px max(22px,calc((100vw - 1050px)/2));display:flex;align-items:center;justify-content:space-between;gap:12px;background:#fffdf6;border-bottom:2px solid #dce9d6}
.passport-nav a{display:flex;align-items:center;gap:12px;color:#18452e;text-decoration:none}.passport-nav a span{display:grid;gap:4px}.passport-nav strong{letter-spacing:1px;font-size:23px}.passport-nav small{font-size:12px}
.passport-print{border:0;background:#276d45;color:#fff;border-radius:16px;padding:14px 17px;font-weight:900;cursor:pointer}
.passport-main{max-width:1050px;margin:auto;padding:45px 22px 80px}
.passport-hero{background:#1d5337;color:#fff;text-align:center;padding:48px 20px;border-radius:35px;box-shadow:9px 11px 0 #bfdfb9}
.passport-hero .kicker{color:#e3d59a;font-size:12px}.passport-hero h1{font-size:clamp(32px,5vw,55px);letter-spacing:-1.3px;margin:16px 0}.passport-hero p{color:#e1eddf;line-height:1.6}
.passport-counter{display:inline-flex;align-items:center;gap:12px;background:#fff;color:#174c31;padding:12px 25px;border-radius:23px;margin-top:13px}.passport-counter strong{font-size:40px}.passport-counter span{font-weight:900}
.passport-collection-title{font-size:28px;margin:55px 0 20px}.passport-medals{display:grid;grid-template-columns:repeat(auto-fit,minmax(265px,1fr));gap:27px}.passport-medal-card{background:#fff;border:2px solid #cadbbf;border-radius:26px;padding:20px;text-align:center;box-shadow:6px 8px 0 #deebd6}.passport-medal-card h3{font-size:22px;margin:5px 0 9px}.passport-medal-card p{color:#476751;line-height:1.5}.passport-medal-card small{color:#5c7862}.passport-achieved{display:inline-block;background:#e3f6da;border-radius:20px;padding:9px 13px;font-weight:900;font-size:12px}.passport-medal-card a{display:block;font-weight:900;color:#21714e;padding-top:12px}
.passport-empty{text-align:center;padding:55px 22px}.passport-empty div{font-size:74px}.passport-empty h2{font-size:26px}.passport-empty p{max-width:550px;margin:15px auto 25px;line-height:1.75}.passport-empty a{color:#1a7c49;font-weight:900}
.passport-privacy{max-width:740px;margin:55px auto 0;text-align:center;font-size:13px;line-height:1.7;color:#6e7e70}.passport-footer{text-align:center;background:#194b31;color:#def7d8;padding:23px}
/* Admin controls */
.expedition-admin-grid{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:22px;align-items:start}
.expedition-select{display:flex;justify-content:space-between;align-items:end;gap:15px;flex-wrap:wrap}
.expedition-select label{flex:1;min-width:250px;margin:0}
.expedition-admin-grid .panel h2{margin:12px 0 16px}
.member-list{display:grid;gap:8px;max-height:340px;overflow-y:auto;margin:15px 0}
.member-row{display:flex;align-items:center;gap:14px;margin:0;padding:11px;background:#f5f9f2;border-radius:12px;line-height:1.4;font-size:14px}
.member-row input{width:20px;height:20px;accent-color:#2a8054}.member-row span{display:block}.member-row small{color:#6b8071}.member-row .earned{color:#227447;display:block}
.passport-list{display:grid;gap:9px;max-height:520px;overflow:auto}.passport-item{background:#f8fbf5;border:1px solid #d4e1ce;border-radius:12px;padding:12px;display:flex;gap:8px;flex-wrap:wrap;align-items:center;justify-content:space-between}.passport-item a{font-weight:800}.passport-item small{color:#728672}.copy-pass{border:1px solid #b5d4be;background:#fff;border-radius:11px;padding:9px;color:#215b3a;font-weight:800;cursor:pointer}.mini-danger{border:0;color:#ba3a29;background:none;font-size:12px;cursor:pointer}.expedition-admin-grid .action:disabled{background:#899b8d;cursor:not-allowed}
@media(max-width:850px){.exp-hero-grid,.exp-content-grid,.expedition-admin-grid{grid-template-columns:1fr}.exp-hero{padding:38px 0}.exp-hero h1{letter-spacing:-1px}.exp-medal-card{max-width:460px;margin:auto}.exp-content-grid{padding-top:26px}.exp-content-side{grid-row:auto}.exp-paper{padding:22px}}
@media(max-width:540px){.exp-nav-inner{min-height:78px}.exp-nav .brand img{width:48px;height:48px}.exp-nav .brand strong{font-size:21px}.exp-nav .brand small{font-size:9px}.exp-back{font-size:12px;padding:9px}.exp-hero h1{font-size:38px}.exp-quick-meta{display:grid}.exp-intro-pill{font-size:12px}.exp-footer .wrap{flex-wrap:wrap}.exp-footer a{margin:12px 0 0}.passport-nav{padding:14px;align-items:flex-start;flex-wrap:wrap}.passport-nav strong{font-size:20px}.passport-nav img{width:48px;height:48px}.passport-print{font-size:12px}.passport-main{padding:24px 14px}.passport-hero{border-radius:22px;padding:34px 16px}.exp-paper{border-radius:21px}}
@media print{.passport-page{background:#fff}.passport-nav,.passport-print,.passport-medal-card a,.passport-privacy,.passport-footer{display:none!important}.passport-main{max-width:none;padding:0}.passport-hero{box-shadow:none;print-color-adjust:exact;-webkit-print-color-adjust:exact}.passport-medal-card{break-inside:avoid;box-shadow:none}.compas-medal{print-color-adjust:exact;-webkit-print-color-adjust:exact}}
