/* Заповедный хакатон · ЦУ × Президентский фонд природы
   Версия A «Бережный рефактор», 2026-11-04 */

@font-face{font-family:Inter;src:url('/assets/brand/Inter-Variable.ttf') format('truetype');font-style:normal;font-weight:100 900;font-display:swap}

/* ---------- Tokens ---------- */
:root{
  color-scheme:dark;
  --bg:#0A0F0D;
  --surface:#101816;
  --input:#18211D;
  --line:#1A2420;
  --line-strong:#314037;
  --line-hover:#53665a;
  --text:#F4F5F2;
  --muted:#B8C2BC;
  --divider:#B0B0B0;
  --accent:#B7F34D;
  --accent-hover:#8EDB3A;
  --accent-line:#b7f34d66;
  --radius-s:7px;
  --radius-m:8px;
  --radius-l:12px;
  --radius-icon:16px;
  --shell:min(1180px,calc(100% - 80px));
  --section-y:112px;
  --gap-col:110px;
  --h2:clamp(36px,4.1vw,58px);
  font-family:Inter,Arial,sans-serif;font-size:16px;color:var(--text);background:var(--bg);
  scroll-behavior:smooth;scroll-padding-top:32px
}

/* ---------- Base ---------- */
*{box-sizing:border-box}
body{margin:0;max-width:100%;overflow-x:clip;background:var(--bg)}
h1,h2,h3,p{margin:0}
h1,h2,h3{font-weight:600;letter-spacing:-.045em}
h2{font-size:var(--h2);line-height:1.08}
h3{font-size:24px;line-height:1.2}
p{line-height:1.6}
a{color:inherit;text-decoration:none}
a:hover{color:var(--accent)}
img,svg{display:block}
img{max-width:100%}
button,input,select{font:inherit;color:inherit}
button{cursor:pointer}
button,a,summary{-webkit-tap-highlight-color:transparent}
a:focus-visible,button:focus-visible,summary:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid var(--accent);outline-offset:5px}
[hidden]{display:none!important}
[data-content]{white-space:pre-line}
a[aria-disabled=true]{pointer-events:none;cursor:default;color:var(--muted)}

.shell{width:var(--shell);margin-inline:auto}
.section{padding-block:var(--section-y)}
.band{background:var(--surface);border-block:1px solid var(--line)}
.skip-link{position:absolute;top:-80px;left:16px;z-index:20;padding:14px 18px;background:var(--accent);color:var(--bg)}
.skip-link:focus{top:12px}
.anchor-alias{display:block;position:relative;top:-25px;visibility:hidden}
.kicker{margin-bottom:24px;text-transform:uppercase;letter-spacing:.11em;font-size:11px;font-weight:600;color:var(--accent)}
.section-heading{margin-bottom:44px}
.lead{margin-top:25px;max-width:790px;font-size:18px;color:var(--muted)}
.status-note{margin-top:13px;font-size:12px;color:var(--muted)}

/* ---------- Icons (CU line style: 24px grid, opposite corners rounded) ---------- */
.icon-before,.icon-after{display:inline-flex;align-items:center;gap:8px}
.icon-before::before,.icon-after::after{content:'';flex-shrink:0;width:18px;height:18px;background:currentColor;-webkit-mask:var(--icon) center/contain no-repeat;mask:var(--icon) center/contain no-repeat}
:root{--icon-plus:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E")}
.icon-doc{--icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 4h8.5C17 4 18 5 18 6.5V20H9.5C8 20 7 19 7 17.5Z'/%3E%3Cpath d='M10 9h5M10 12.5h5M10 16h2.5'/%3E%3C/svg%3E")}
.icon-download{--icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 5v10M8 11l4 4 4-4M6 19h12'/%3E%3C/svg%3E")}
.icon-external{--icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 16 16 8M10 8h6v6'/%3E%3C/svg%3E")}
.icon-arrow{--icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E")}
.icon-check{--icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5 10 16.5 18 8'/%3E%3C/svg%3E")}
.icon-telegram{--icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 5 4 11.5l6 2 2 6.5Z'/%3E%3Cpath d='M10 13.5 15 9'/%3E%3C/svg%3E")}

/* ---------- Buttons & links ---------- */
.button{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:54px;padding:15px 23px;border:1px solid transparent;border-radius:var(--radius-m);font-size:14px;line-height:1.5;font-weight:600;text-align:center;transition:background-color .15s,color .15s,border-color .15s}
.button-primary{background:var(--accent);color:var(--bg)}
.button-primary:hover{background:var(--accent-hover);color:var(--bg)}
.button-secondary{background:#18211dcc;border-color:var(--line-strong);color:var(--text)}
.button-secondary:hover{border-color:var(--accent);color:var(--text)}
.button-secondary.icon-after::after{color:var(--accent)}
.button[aria-disabled=true]{background:var(--input);color:var(--muted);border-color:var(--line-strong)}
.text-link{color:var(--accent);border-bottom:1px solid var(--accent-line);padding-bottom:5px;font-size:14px;font-weight:500}
.text-link:hover{color:var(--accent-hover)}
.text-link.icon-after::after{width:16px;height:16px}

/* ---------- Header ---------- */
.site-header{background:var(--bg);border-bottom:1px solid var(--line)}
.header-inner{position:relative;display:flex;align-items:center;justify-content:space-between;gap:40px;min-height:124px}
.brand-lockup{display:flex;align-items:center;gap:24px;padding:24px 0;flex-shrink:0}
.brand-lockup img{height:auto;object-fit:contain}
.brand-lockup .cu-logo{width:205px}
.brand-lockup .pfp-logo{width:196px;padding:8px}
.brand-divider{--icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M1.5 1.5l9 9M10.5 1.5l-9 9' stroke='black' stroke-width='1.3' stroke-linecap='round'/%3E%3C/svg%3E");width:12px;height:12px;flex-shrink:0;background:var(--divider);-webkit-mask:var(--icon) center/contain no-repeat;mask:var(--icon) center/contain no-repeat}
.desktop-nav{display:flex;align-items:center;gap:30px;font-size:13px;font-weight:500}
.menu-toggle,.mobile-nav{display:none}

/* ---------- Hero ---------- */
.hero{position:relative;isolation:isolate;display:flex;align-items:center;min-height:640px;background:var(--bg)}
.hero::before{content:'';position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,#0a0f0df2 14%,#0a0f0d9e),url('/assets/forest-mobile.jpg') center 53%/cover no-repeat}
.hero-content{padding-block:96px 104px}
.hero h1{max-width:1000px;font-size:clamp(76px,7.4vw,108px);line-height:.98;letter-spacing:-.055em}
.hero-actions{display:flex;flex-wrap:wrap;align-items:stretch;gap:14px;margin-top:40px}
.hero .status-note{margin-top:14px}

/* ---------- Cases ---------- */
.case-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}
.case-card{display:flex;flex-direction:column;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius-l);padding:30px 28px 0}
.case-icon{display:grid;place-items:center;flex-shrink:0;width:76px;height:76px;margin-bottom:28px;border-radius:var(--radius-icon);background:var(--bg);color:var(--accent)}
.case-icon svg{width:68px;height:68px;fill:none;stroke:currentColor;stroke-width:2.3;stroke-linecap:round;stroke-linejoin:round}
.case-icon .dotted{stroke-dasharray:.1 5}
.case-icon .dot-open{fill:currentColor}
.case-icon .dot-gap{fill:var(--bg);stroke:none}
.case-icon .dot-fill{fill:currentColor;stroke:none}
.case-card h3{margin-bottom:16px;font-size:24px;line-height:1.2;letter-spacing:-.035em}
.case-copy{padding-bottom:26px;font-size:15px;color:var(--muted)}
.case-copy p+p{margin-top:14px}
.case-actions{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:66px;margin-top:auto;border-top:1px solid var(--line);font-size:13px;font-weight:500}
.case-actions a:not([aria-disabled=true]){color:var(--accent)}
.case-actions a:not([aria-disabled=true]):hover{color:var(--accent-hover)}
#case-resources-status{margin-top:22px;max-width:650px}

/* ---------- Two-column bands (participation, criteria) ---------- */
.two-col{display:grid;grid-template-columns:1.1fr .9fr;gap:var(--gap-col);align-items:start}
.col-copy{padding-top:38px}
.col-copy>p{max-width:460px;font-size:18px;color:var(--muted)}
.col-copy>p+p{margin-top:22px}
.col-copy>p.status-note{margin-top:13px;font-size:12px}
.col-copy>.button{margin-top:28px}
.col-copy>.text-link{margin-top:28px}
#criteria .col-copy>p{max-width:none}

/* ---------- Access ---------- */
.access-heading{max-width:860px}
.access-steps{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:28px;margin:52px 0 72px;padding:0;list-style:none}
.access-steps li{padding-top:24px;border-top:1px solid var(--line-strong)}
.step-number{display:block;margin-bottom:22px;color:var(--accent);font-size:14px;letter-spacing:.04em}
.access-steps h3{margin-bottom:14px;font-size:19px;line-height:1.25;letter-spacing:-.025em}
.access-steps p{font-size:14px;color:var(--muted)}
.access-layout{display:grid;grid-template-columns:1fr 1fr;gap:100px;align-items:start}
.access-intro{padding-top:20px}
.access-intro h3{margin-bottom:26px;font-size:30px}
.login-guide{display:grid;gap:18px;margin:0;padding-left:22px;font-size:15px;line-height:1.65;color:var(--muted)}
.login-guide li{padding-left:7px}
.login-guide li::marker{color:var(--accent);font-weight:600}
.login-guide strong{color:var(--text);font-weight:500}
.access-intro>.text-link{margin-top:28px}

.access-card{min-width:0;padding:36px;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius-l)}
.access-card h3{font-size:29px}
.card-description{margin-top:14px;font-size:14px;color:var(--muted)}
.access-card form{margin-top:30px}
.access-card fieldset{min-width:0;margin:0;padding:0;border:0}
.field{margin-bottom:22px}
.field label,.credential>label{display:block;margin-bottom:9px;font-size:13px;font-weight:500}
.field input,.field select,.credential input{width:100%;min-width:0;height:49px;padding:11px 13px;border:1px solid var(--line-strong);border-radius:var(--radius-s);background:var(--input);line-height:1.5;outline-offset:3px;transition:border-color .15s}
.field input:hover,.field select:hover{border-color:var(--line-hover)}
.field input[aria-invalid=true]{border-color:var(--accent)}
.field select{padding-right:30px;appearance:auto}
.submit-button{width:100%}
.submit-button:disabled{opacity:.65;cursor:wait}
.session-note{margin-top:27px;padding-top:24px;border-top:1px solid var(--line);font-size:12px;line-height:1.65;color:var(--muted)}
.access-message{margin-top:24px;padding:14px;background:var(--input);border:1px solid var(--line-strong);border-radius:var(--radius-s);font-size:13px;line-height:1.6}
.retry-button{margin-top:15px;padding:8px 0;border:0;border-bottom:1px solid var(--accent);background:none;color:var(--accent);font-size:13px}
.access-loading{display:flex;align-items:center;gap:12px;min-height:130px;font-size:14px;color:var(--muted)}
.loading-dot{width:8px;height:8px;border-radius:50%;background:var(--accent);animation:pulse 1.5s infinite}
.account-ready{margin-bottom:16px;color:var(--accent);font-size:12px;font-weight:500}
.account-ready::before{width:16px;height:16px}
.credential{min-width:0;margin-top:26px}
.credential input{font-size:13px;letter-spacing:-.015em}
.credential-actions{display:flex;flex-wrap:wrap;gap:15px;margin-top:11px}
.small-button{padding:4px 0;border:0;background:transparent;color:var(--accent);font-size:12px;text-decoration:underline;text-underline-offset:4px}
.copy-status{min-height:18px;margin-top:14px;font-size:12px;color:var(--muted)}
.account-console{width:100%;margin-top:9px}
.account-folder{margin-top:20px;color:var(--accent);font-size:13px;font-weight:500}
.account-folder::after{width:16px;height:16px}
.folder-name{margin-top:9px;font-size:12px;color:var(--muted);overflow-wrap:anywhere}

/* ---------- FAQ ---------- */
.faq-section{display:grid;grid-template-columns:1fr 1fr;gap:100px}
.contact-copy{margin-top:24px;font-size:15px;color:var(--muted)}
.contact-links{display:grid;justify-items:start;gap:10px;margin-top:12px}
.contact-links .contact-link{margin-top:0;max-width:100%}
.contact-link{gap:10px;margin-top:12px;color:var(--accent);font-size:24px;font-weight:500;letter-spacing:-.025em}
.contact-link::before{width:24px;height:24px}
.contact-link:hover{color:var(--accent-hover)}
.faq-list details{border-top:1px solid var(--line-strong)}
.faq-list details:last-child{border-bottom:1px solid var(--line-strong)}
.faq-list summary{display:flex;align-items:center;justify-content:space-between;gap:24px;min-height:88px;padding-block:24px;list-style:none;cursor:pointer;font-size:15px;line-height:1.5;font-weight:500}
.faq-list summary::-webkit-details-marker{display:none}
.faq-list summary>[data-content]{font:inherit;color:inherit}
.faq-icon{width:22px;height:22px;flex-shrink:0;background:var(--accent);-webkit-mask:var(--icon-plus) center/contain no-repeat;mask:var(--icon-plus) center/contain no-repeat;transition:transform .15s}
.faq-list details[open] .faq-icon{transform:rotate(45deg)}
.faq-list details>p{padding:0 25px 26px 0;font-size:14px;line-height:1.65;color:var(--muted)}

/* ---------- Footer ---------- */
.site-footer{border-top:1px solid var(--line)}
.footer-inner{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:20px 36px;padding-block:38px}
.footer-brand{font-size:20px;font-weight:600;letter-spacing:-.035em}
.footer-links{display:flex;flex-wrap:wrap;gap:12px 32px;font-size:12px}
.footer-links a{color:var(--muted)}
.footer-links a:hover{color:var(--accent)}

@keyframes pulse{50%{opacity:.4}}

/* ---------- ≤1100 ---------- */
@media(max-width:1100px){
  :root{--shell:calc(100% - 64px);--gap-col:65px}
  .header-inner{min-height:114px;gap:30px}
  .brand-lockup{gap:20px}
  .brand-lockup .cu-logo{width:170px}
  .brand-lockup .pfp-logo{width:164px}
  .brand-divider{width:10px;height:10px}
  .desktop-nav{gap:22px;font-size:12px}
  .hero h1{font-size:90px}
  .case-grid{gap:17px}
  .case-card{padding:27px 23px 0}
  .case-card h3{font-size:22px}
  .access-layout,.faq-section{gap:65px}
  .access-card{padding:30px}
  .access-steps{gap:22px}
  .access-steps h3{font-size:17px}
  .access-steps p{font-size:13px}
  .access-intro h3{font-size:27px}
}

/* ---------- ≤900 ---------- */
@media(max-width:900px){
  :root{--shell:calc(100% - 48px);--section-y:85px;--gap-col:45px}
  .desktop-nav{display:none}
  .header-inner{min-height:108px;gap:22px}
  .brand-lockup{gap:18px}
  .brand-lockup .cu-logo{width:160px}
  .brand-lockup .pfp-logo{width:170px}
  .menu-toggle{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;flex-shrink:0;width:44px;height:44px;border:1px solid var(--line-strong);border-radius:var(--radius-s);background:var(--input);color:var(--text)}
  .menu-toggle>span{display:block;width:18px;height:1px;background:currentColor;transition:transform .15s}
  .menu-toggle[aria-expanded=true]>span:first-child{transform:translateY(4px) rotate(45deg)}
  .menu-toggle[aria-expanded=true]>span:last-child{transform:translateY(-4px) rotate(-45deg)}
  .mobile-nav{position:absolute;top:calc(100% - 4px);left:0;right:0;z-index:5;display:flex;flex-direction:column;padding:9px 20px;background:var(--surface);border:1px solid var(--line-strong);border-radius:9px;box-shadow:0 18px 36px #0006}
  .mobile-nav>a{display:flex;align-items:center;min-height:54px;border-bottom:1px solid var(--line);font-size:14px}
  .mobile-nav>a:last-child{border:0}
  .hero{min-height:620px}
  .hero-content{padding-block:85px 95px}
  .hero h1{font-size:82px}
  .hero-actions .button{font-size:13px}
  .case-grid{grid-template-columns:1fr;gap:14px}
  .case-card{padding:24px 22px 0}
  .case-icon{width:64px;height:64px;margin-bottom:24px;border-radius:13px}
  .case-icon svg{width:58px;height:58px}
  .case-card h3{font-size:20px}
  .case-copy{font-size:14px}
  .case-actions{min-height:62px;gap:12px;font-size:12px}
  .col-copy{padding-top:36px}
  .col-copy>p{font-size:16px}
  .lead{font-size:17px}
  .access-steps{grid-template-columns:repeat(2,minmax(0,1fr));gap:33px;margin-bottom:55px}
  .access-steps h3{font-size:19px}
  .access-steps p{font-size:14px}
  .access-layout{gap:35px}
  .access-card{padding:26px}
  .access-card h3,.access-intro h3{font-size:25px}
  .login-guide{gap:18px;font-size:13px}
  .field input,.field select{font-size:15px}
  .faq-section{gap:45px}
  .faq-list summary{font-size:14px}
  .footer-brand{font-size:18px}
}

/* ---------- ≤680 ---------- */
@media(max-width:680px){
  :root{--shell:calc(100% - 40px);--section-y:67px;scroll-padding-top:24px}
  h2{font-size:38px}
  .header-inner{min-height:100px;gap:14px}
  .brand-lockup{gap:12px;padding-block:25px}
  .brand-lockup .cu-logo{width:116px}
  .brand-lockup .pfp-logo{width:135px;padding:5px}
  .brand-divider{width:8px;height:8px}
  .hero{min-height:620px}
  .hero::before{background:linear-gradient(90deg,#0a0f0de8,#0a0f0dbf),url('/assets/forest-mobile.jpg') 60% center/cover no-repeat}
  .hero-content{padding-block:72px 85px}
  .hero .kicker{max-width:300px;margin-bottom:25px;font-size:9px;letter-spacing:.09em;line-height:1.7}
  .hero h1{font-size:clamp(53px,13vw,78px);line-height:1;letter-spacing:-.06em}
  .hero-actions{display:grid;grid-template-columns:1fr;gap:12px;max-width:420px;margin-top:28px}
  .hero-actions .button{padding:15px 19px}
  .status-note{font-size:11px}
  .kicker{margin-bottom:22px;font-size:10px}
  .section-heading{margin-bottom:32px}
  .case-grid{grid-template-columns:1fr;gap:18px}
  .case-card{padding:28px 26px 0}
  .case-icon{width:72px;height:72px;margin-bottom:26px;border-radius:15px}
  .case-icon svg{width:64px;height:64px}
  .case-card h3{font-size:25px;max-width:340px}
  .case-copy{font-size:16px}
  .case-actions{min-height:70px;font-size:13px}
  .two-col{grid-template-columns:1fr;gap:0}
  .col-copy{padding-top:26px}
  .col-copy>p{font-size:17px}
  .col-copy>.button{width:100%;margin-top:25px}
  .access-heading h2{font-size:37px}
  .lead{margin-top:23px;font-size:16px}
  .access-steps{grid-template-columns:1fr;gap:24px;margin-top:36px;margin-bottom:43px}
  .access-steps li{display:grid;grid-template-columns:35px 1fr;column-gap:14px;row-gap:11px;padding-top:23px}
  .step-number{grid-row:1/3;margin:0;padding-top:3px;font-size:13px}
  .access-steps h3{margin:0;font-size:20px}
  .access-steps p{grid-column:2;font-size:15px}
  .access-layout{grid-template-columns:1fr;gap:34px}
  .access-intro{padding-top:0}
  .access-intro h3{margin-bottom:25px;font-size:27px}
  .login-guide{gap:19px;font-size:15px}
  .access-card{padding:28px 25px}
  .access-card h3{font-size:28px}
  .access-card form{margin-top:28px}
  .field input,.field select{height:49px;font-size:16px}
  .faq-section{grid-template-columns:1fr;gap:30px}
  .faq-list summary{min-height:81px;font-size:15px}
  .faq-list details>p{font-size:15px}
  .contact-copy{margin-top:22px;font-size:14px}
  .contact-link{font-size:23px}
  .footer-inner{flex-direction:column;align-items:flex-start;gap:20px;padding-block:34px}
  .footer-brand{font-size:21px}
  .footer-links{font-size:13px}
}

/* ---------- ≤390 ---------- */
@media(max-width:390px){
  :root{--shell:calc(100% - 36px)}
  .header-inner{gap:10px}
  .brand-lockup{gap:10px}
  .brand-lockup .cu-logo{width:106px}
  .brand-lockup .pfp-logo{width:126px}
  .hero h1{font-size:51px}
  .case-card,.access-card{padding-inline:22px}
  .case-card h3{font-size:23px}
  .access-heading h2{font-size:34px}
  .two-col h2,.faq-section h2{font-size:35px}
}

/* ---------- ≤360 ---------- */
@media(max-width:360px){
  .brand-lockup{gap:8px}
  .brand-lockup .cu-logo{width:92px}
  .brand-lockup .pfp-logo{width:110px}
  .brand-divider{width:7px;height:7px}
  .hero h1{font-size:43px}
  .case-card h3{font-size:22px}
  .case-card{padding-inline:21px}
}

@media(prefers-reduced-motion:reduce){
  :root{scroll-behavior:auto}
  *,*::before,*::after{animation:none!important;transition:none!important}
}

@media print{
  .site-header,.hero-actions,.status-note,.access-card,.site-footer{display:none}
  .hero{min-height:0}
  .hero::before{display:none}
  .hero-content,.section{padding-block:25px}
  .hero h1{font-size:50px}
  .shell{width:100%}
  .case-grid,.access-layout,.two-col,.faq-section,.access-steps{display:block}
  .case-card{break-inside:avoid;margin-block:20px;padding:20px}
  .case-actions{display:none}
  .faq-list details{break-inside:avoid}
  a{text-decoration:underline}
}
