/* Home screen (js/home.js): SOLOMA header and five section folders, palette from the owner's home-screen brief */
:root{--soloma-orange:#FF6A00;--soloma-light:#EFEAE3;--soloma-white:#FAFAF6;
  --home-x:clamp(14px,5.1vw,20px);--home-gap:clamp(9px,2.9vw,12px)}

/* Bottom navigation can be on every screen (switch in css/nav.css): --nav-space in the bottom padding keeps the last card clear of it */
.stc-shell[data-screen="home"] .stc-screen{padding:calc(20px + var(--stc-safe-top)) var(--home-x) calc(26px + var(--nav-space,86px) + var(--stc-safe-bottom))}

/* Header: wordmark left, thin cross and motto right */
.home-header{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 clamp(4px,2vw,10px) clamp(18px,6.4vw,28px)}
.home-logo{display:flex;flex-direction:column;align-items:center;color:var(--soloma-light);line-height:1}
.home-logo__word{position:relative;display:flex;align-items:flex-end;font:400 clamp(24px,7.6vw,33px)/1 Unbounded,var(--stc-font);letter-spacing:.015em;
  background:linear-gradient(180deg,#FAFAF6 30%,#D8C6B2);-webkit-background-clip:text;background-clip:text;color:transparent}
.home-logo__a{width:.8em;height:.73em;margin:0 0 0 .02em;overflow:visible;fill:none;stroke:#E6DCD0;stroke-width:12;stroke-linejoin:miter}
.home-logo__word sup{position:absolute;right:-.42em;top:-.08em;font:400 .26em/1 var(--stc-font);color:#E6DCD0;-webkit-text-fill-color:#E6DCD0}
.home-logo__sub{margin-top:.95em;font:400 clamp(7px,2.2vw,9px)/1 var(--stc-font);letter-spacing:.52em;margin-right:-.52em;color:rgba(239,234,227,.82)}
.home-motto{display:flex;align-items:center;gap:clamp(14px,5.4vw,24px);color:rgba(214,146,112,.78)}
.home-motto__cross{position:relative;flex:none;width:clamp(24px,7.4vw,30px);height:clamp(30px,9.4vw,38px)}
.home-motto__cross::before,.home-motto__cross::after{content:"";position:absolute}
.home-motto__cross::before{left:50%;top:0;bottom:0;width:1px;background:linear-gradient(180deg,transparent,rgba(255,150,100,.7) 40%,rgba(255,150,100,.7) 60%,transparent)}
.home-motto__cross::after{top:50%;left:0;right:0;height:1px;background:linear-gradient(90deg,transparent,rgba(255,150,100,.7) 40%,rgba(255,150,100,.7) 60%,transparent)}
.home-motto__text{font:400 clamp(6.5px,1.95vw,8px)/2.1 var(--stc-font);letter-spacing:.44em;text-transform:uppercase;white-space:nowrap}

/* Cards: one featured folder, then a 2 × 2 grid */
.home-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--home-gap)}
.section-card{position:relative;display:block;width:100%;padding:0;border:0;border-radius:18px;background:none;color:var(--soloma-white);text-align:left;cursor:pointer;
  container-type:inline-size;-webkit-tap-highlight-color:transparent;transition:transform .18s var(--stc-ease),filter .18s var(--stc-ease)}
.section-card--featured{grid-column:1/-1;aspect-ratio:350/184}
.section-card--standard{aspect-ratio:169/182}
/* «Приветствие» (size:'short'): a lower full-width folder above everything else, same geometry as the featured one */
.section-card--short{aspect-ratio:350/150}
.section-card--short .section-card__content{--pad:clamp(14px,5cqi,20px)}
.section-card--short .section-card__number{font-size:clamp(28px,10cqi,40px)}
.section-card--short .section-card__rule{margin:clamp(7px,2.4cqi,10px) 0 clamp(8px,3cqi,12px)}
.section-card:active{transform:scale(.975);filter:brightness(1.07)}
.section-card:focus-visible{outline:2px solid var(--stc-focus);outline-offset:3px}
/* Blocks taken out of a section (js/home-sections.js, STC_HOME_BLOCKS): level-2 subsection cards under the folders, title only */
.home-blocks{margin-top:var(--home-gap)}
.home-blocks .sub-card__title{margin-top:0}
/* Closed until «Приветствие» is finished (js/home.js blocks(gate)): dimmed, a tap shows the notice */
.home-blocks.is-gated .sub-card{filter:grayscale(.6) brightness(.62)}
.home-blocks.is-gated .sub-card:active{transform:none}

/* Folder: back sheet (art + tint), front sheet (art + glass), thin edges; clip paths come from js/home.js */
.folder,.folder__back,.folder__front,.folder__tint,.folder__glass,.folder__edge{position:absolute;inset:0}
.folder{pointer-events:none}
.folder__back{clip-path:var(--folder-back)}
.folder__front{clip-path:var(--folder-front)}
.folder__edge{width:100%;height:100%;overflow:visible;fill:none;stroke-width:1}
.folder__glass{-webkit-backdrop-filter:blur(9px) saturate(1.1);backdrop-filter:blur(9px) saturate(1.1);
  -webkit-mask-image:linear-gradient(100deg,#000 22%,rgba(0,0,0,.5) 48%,transparent 74%);mask-image:linear-gradient(100deg,#000 22%,rgba(0,0,0,.5) 48%,transparent 74%)}

.section-card--dark .folder__tint{background:linear-gradient(100deg,rgba(255,106,0,.5),rgba(122,30,30,.42) 34%,rgba(0,0,0,.32) 72%)}
.section-card--dark .folder__glass{background:linear-gradient(100deg,rgba(236,206,186,.17),rgba(216,170,140,.09) 45%,transparent),linear-gradient(180deg,rgba(250,250,246,.07),transparent 35%)}
.section-card--featured.section-card--dark .folder__glass{background:linear-gradient(100deg,rgba(239,214,195,.3),rgba(226,170,135,.14) 45%,transparent),linear-gradient(180deg,rgba(250,250,246,.08),transparent 35%)}
.section-card--dark .folder__edge--back{stroke:rgba(255,190,160,.24)}
.section-card--dark .folder__edge--front{stroke:rgba(255,236,224,.36)}

.section-card--light{color:#2A1814}
.section-card--light .folder__tint{background:linear-gradient(100deg,rgba(239,234,227,.72),rgba(216,198,178,.44) 45%,rgba(216,198,178,.08))}
.section-card--light .folder__glass{background:linear-gradient(100deg,rgba(250,250,246,.6),rgba(239,234,227,.3) 45%,transparent)}
.section-card--light .folder__edge--back{stroke:rgba(250,250,246,.5)}
.section-card--light .folder__edge--front{stroke:rgba(250,250,246,.85)}

/* Live copy: number, short rule, title — anchored to the bottom of the front sheet */
.section-card__content{position:absolute;z-index:1;left:0;right:0;bottom:0;display:flex;flex-direction:column;align-items:flex-start;pointer-events:none;
  padding:0 var(--pad) var(--pad);--pad:clamp(12px,11cqi,20px)}
.section-card__number{font-size:clamp(30px,24cqi,46px);font-weight:200;line-height:.86;letter-spacing:-.035em;color:rgba(250,250,246,.9);font-variant-numeric:lining-nums}
.section-card__rule{width:clamp(14px,11cqi,20px);height:1px;margin:clamp(9px,7cqi,13px) 0 clamp(10px,8.4cqi,16px);background:currentColor;opacity:.55}
.section-card__title{font-size:clamp(14px,10.4cqi,20px);font-weight:400;line-height:1.16;letter-spacing:-.012em}
.section-card--featured .section-card__content{--pad:clamp(16px,5.7cqi,22px);right:45%}
.section-card--featured .section-card__number{font-size:clamp(34px,12.6cqi,48px)}
.section-card--featured .section-card__rule{width:clamp(16px,5.4cqi,22px);margin:clamp(9px,3.4cqi,13px) 0 clamp(10px,4.2cqi,16px)}
.section-card--featured .section-card__title{font-size:clamp(17px,5.6cqi,21px)}
.section-card--light .section-card__number{color:rgba(58,30,24,.6)}

/* Locked folder (locked:true in js/home-sections.js): filled later — photo dimmed and desaturated under a dark veil,
 * light text on every theme, a «Скоро» badge with a lock on the front sheet; no press effect */
.section-card--locked{cursor:default}
.section-card--locked:active{transform:none;filter:none}
.section-card--locked .artwork__img{filter:grayscale(.6) brightness(.62)}
.section-card--locked .folder__back::after,.section-card--locked .folder__front::after{content:"";position:absolute;z-index:2;inset:0;pointer-events:none;
  background:linear-gradient(180deg,rgba(14,5,7,.28),rgba(14,5,7,.58))}
.section-card--locked.section-card--light{color:var(--soloma-white)}
.section-card--locked .section-card__number{color:rgba(250,250,246,.6)}
.section-card--locked .section-card__title{opacity:.78}
.section-card__lock{position:absolute;z-index:2;top:calc(25cqi + 9px);right:10px;display:flex;align-items:center;gap:4px;height:20px;padding:0 8px 0 7px;
  border:1px solid rgba(250,250,246,.32);border-radius:10px;background:rgba(10,4,5,.5);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);
  color:#EFEAE3;font-size:9px;line-height:1;letter-spacing:.16em;text-transform:uppercase;pointer-events:none}
.section-card__lock svg{width:10px;height:10px;fill:none;stroke:currentColor;stroke-width:2}
/* The front sheet of the wide folder starts higher (frontY .082 + step .062 of the width) */
.section-card--featured .section-card__lock{top:calc(14.4cqi + 9px)}
/* «Начните здесь» on «Приветствие» while the other folders are closed: orange plate in the bottom right corner */
.section-card__badge{position:absolute;z-index:2;right:clamp(12px,4.6cqi,18px);bottom:clamp(14px,5cqi,20px);display:flex;align-items:center;height:24px;padding:0 11px;
  border-radius:12px;background:var(--soloma-orange);color:#1b0910;font-size:9.5px;font-weight:600;line-height:1;letter-spacing:.14em;text-transform:uppercase;
  box-shadow:0 4px 16px rgba(255,106,0,.35);pointer-events:none}

/* SectionArtwork: photo (object-fit: cover) over a CSS placeholder; a missing photo leaves the placeholder */
.artwork{position:absolute;inset:0;overflow:hidden;background:#0b0606}
.artwork::before,.artwork::after{content:"";position:absolute;inset:0}
.artwork__img{position:absolute;z-index:1;inset:0;width:100%;height:100%;object-fit:cover}

/* 01 ODA — warm motion streaks sweeping into a rim-lit dark figure on the right */
.artwork--oda{background:
  radial-gradient(ellipse 16% 46% at 80% 50%,rgba(255,160,95,.5),transparent 72%),
  linear-gradient(171deg,transparent 36%,rgba(255,106,0,.5) 47%,rgba(255,180,120,.32) 50%,transparent 58%),
  linear-gradient(176deg,transparent 54%,rgba(122,30,30,.6) 62%,transparent 72%),
  radial-gradient(ellipse 60% 85% at 88% 42%,rgba(122,30,30,.6),transparent 72%),
  linear-gradient(118deg,#050303 0%,#110605 45%,#1c0806 100%)}
.artwork--oda::after{background:repeating-linear-gradient(172deg,rgba(255,170,110,.12) 0 1px,transparent 1px 6px);mix-blend-mode:screen;
  -webkit-mask-image:linear-gradient(171deg,transparent 34%,#000 48%,transparent 64%);mask-image:linear-gradient(171deg,transparent 34%,#000 48%,transparent 64%)}
/* 00 Welcome — light sand with a low orange sunrise and thin rings around it (the starting point) */
.artwork--welcome{background:
  radial-gradient(circle at 80% 112%,rgba(255,106,0,.62) 0 16%,rgba(255,140,70,.3) 28%,transparent 50%),
  radial-gradient(ellipse 55% 70% at 18% 8%,rgba(250,250,246,.95),transparent 70%),
  linear-gradient(160deg,#F5F1EB 0%,#EADFD2 55%,#D8C6B2 100%)}
.artwork--welcome::after{background:repeating-radial-gradient(circle at 80% 112%,transparent 0 17px,rgba(122,30,30,.16) 17px 18px);
  -webkit-mask-image:radial-gradient(circle at 80% 112%,#000 20%,transparent 62%);mask-image:radial-gradient(circle at 80% 112%,#000 20%,transparent 62%)}
/* 02 Foot — light sand with a warm glow and tendon fibres */
.artwork--foot{background:
  radial-gradient(ellipse 40% 46% at 74% 58%,rgba(255,106,0,.46),rgba(122,30,30,.22) 55%,transparent 76%),
  radial-gradient(ellipse 60% 40% at 25% 18%,rgba(250,250,246,.9),transparent 70%),
  linear-gradient(150deg,#F3EEE7 0%,#E6DACB 55%,#D8C6B2 100%)}
.artwork--foot::after{background:repeating-linear-gradient(58deg,rgba(122,30,30,.14) 0 1px,transparent 1px 8px);
  -webkit-mask-image:radial-gradient(ellipse 48% 52% at 72% 56%,#000,transparent 75%);mask-image:radial-gradient(ellipse 48% 52% at 72% 56%,#000,transparent 75%)}
/* 03 Hip — joint ring in burgundy smoke */
.artwork--hip{background:
  radial-gradient(circle at 64% 56%,transparent 0 14%,rgba(255,140,70,.5) 15.5%,rgba(255,106,0,.1) 19%,transparent 25%),
  radial-gradient(ellipse 70% 60% at 66% 55%,rgba(122,30,30,.72),transparent 70%),
  radial-gradient(ellipse 40% 36% at 92% 18%,rgba(255,106,0,.38),transparent 70%),
  linear-gradient(160deg,#0d0707,#050303)}
.artwork--hip::before{background:radial-gradient(ellipse 34% 16% at 42% 36%,rgba(220,205,198,.1),transparent 70%),radial-gradient(ellipse 22% 38% at 84% 72%,rgba(220,205,198,.08),transparent 70%)}
/* 04 Knee — near-black with a red-orange diagonal */
.artwork--knee{background:
  radial-gradient(ellipse 34% 26% at 68% 50%,rgba(255,130,60,.38),transparent 70%),
  linear-gradient(112deg,transparent 30%,rgba(122,30,30,.55) 42%,rgba(255,90,20,.5) 52%,rgba(122,30,30,.4) 62%,transparent 75%),
  #050303}
.artwork--knee::before{background:radial-gradient(circle at 62% 46%,rgba(230,215,205,.13) 0 7%,transparent 12%),radial-gradient(circle at 79% 54%,rgba(230,215,205,.1) 0 6%,transparent 11%)}
.artwork--knee::after{background:repeating-linear-gradient(112deg,rgba(255,120,60,.12) 0 1px,transparent 1px 6px);mix-blend-mode:screen;
  -webkit-mask-image:linear-gradient(112deg,transparent 32%,#000 50%,transparent 70%);mask-image:linear-gradient(112deg,transparent 32%,#000 50%,transparent 70%)}
/* 05 Shoulder — light with a muscle-fibre fan */
.artwork--shoulder{background:
  radial-gradient(ellipse 52% 46% at 72% 38%,rgba(255,106,0,.4),rgba(122,30,30,.18) 60%,transparent 80%),
  linear-gradient(160deg,#F5F1EB,#E7DCCF 55%,#D8C6B2)}
.artwork--shoulder::before{background:repeating-conic-gradient(from 200deg at 94% 6%,rgba(122,30,30,.16) 0 .6deg,transparent .6deg 3deg);
  -webkit-mask-image:radial-gradient(ellipse 55% 60% at 72% 40%,#000,transparent 78%);mask-image:radial-gradient(ellipse 55% 60% at 72% 40%,#000,transparent 78%)}

/* ---------- Next-step card (js/home.js nextCard): one quiet card between the header and the folders ---------- */
.home-card{display:flex;align-items:center;gap:12px;width:100%;margin:0 0 var(--home-gap);padding:16px 18px;text-align:left;color:var(--soloma-white);
  border:1px solid rgba(255,190,160,.22);border-radius:18px;background:linear-gradient(100deg,rgba(122,30,30,.28),rgba(0,0,0,.35));
  -webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);-webkit-tap-highlight-color:transparent;transition:transform .18s var(--stc-ease),filter .18s var(--stc-ease)}
.home-card:active{transform:scale(.985);filter:brightness(1.07)}
.home-card:focus-visible{outline:2px solid var(--stc-focus);outline-offset:3px}
.home-card__copy{display:flex;flex-direction:column;flex:1;min-width:0;gap:0}
.home-card__label{font-size:9px;line-height:1.2;font-weight:500;letter-spacing:.24em;text-transform:uppercase;color:#FF6A00}
.home-card__title{margin-top:7px;font-size:16.5px;line-height:1.25;font-weight:400;color:#FAFAF6;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.home-card__sub{margin-top:3px;font-size:11.5px;line-height:1.35;color:rgba(239,234,227,.6);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.home-card__meter{display:flex;align-items:center;gap:10px;margin-top:11px}
.home-card__bar{position:relative;flex:1;min-width:0;height:2px;border-radius:2px;background:rgba(250,250,246,.12);overflow:hidden}
.home-card__bar i{position:absolute;left:0;top:0;bottom:0;border-radius:2px;background:#FF6A00}
.home-card__time{flex:none;font-size:10.5px;line-height:1;color:rgba(239,234,227,.6);white-space:nowrap}
.home-card__go{flex:none;width:18px;height:18px;fill:none;stroke:rgba(239,234,227,.55);stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}

/* ---------- «Мой путь» (profile screen, js/app.js profilePage): who, the metro line of the route, saved ---------- */
.way-head{display:flex;align-items:center;gap:14px;margin:6px 0 30px}
.way-avatar{flex:none;width:48px;height:48px;display:grid;place-items:center;overflow:hidden;border-radius:16px;font-size:17px;letter-spacing:.04em;color:var(--soloma-light);
  border:1px solid rgba(255,209,179,.3);background:radial-gradient(circle at 80% 20%,rgba(255,122,70,.22),transparent 72%),rgba(255,255,255,.07)}
.way-head__copy{min-width:0}
.way-head__name{margin:0;font-size:18px;line-height:1.25;font-weight:400;letter-spacing:-.01em;color:#FAFAF6;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.way-head__sub{margin:3px 0 0;font-size:11.5px;line-height:1.35;color:rgba(239,234,227,.55)}
.way-label{display:block;margin:0 0 6px;font-size:9px;font-weight:500;letter-spacing:.24em;text-transform:uppercase;color:#FF6A00}
.way{list-style:none;margin:0 0 26px;padding:0}
.way__item{position:relative}
/* line segments: ::before = the part above the station, ::after = the part below; solid after a finished station, dashed and dim otherwise */
.way__item::before,.way__item::after{content:"";position:absolute;left:10px;width:0;border-left:2px dashed rgba(239,234,227,.2);pointer-events:none}
.way__item::before{top:0;bottom:50%}
.way__item::after{top:50%;bottom:0}
.way__item:first-child::before,.way__item:last-child::after{display:none}
.way__item.is-done::after,.way__item.is-done+.way__item::before{border-left-style:solid;border-left-color:rgba(239,234,227,.55)}
.way__step{display:grid;grid-template-columns:24px minmax(0,1fr) auto;align-items:center;column-gap:12px;width:100%;min-height:48px;padding:11px 0;text-align:left;color:inherit;
  background:none;border:0;-webkit-tap-highlight-color:transparent}
.way__step:focus-visible{outline:2px solid var(--stc-focus);outline-offset:2px;border-radius:8px}
.way__dot{position:relative;z-index:1;justify-self:center;box-sizing:border-box;width:12px;height:12px;border-radius:50%;background:#1d0b13;border:1.5px solid rgba(239,234,227,.35)}
.is-done .way__dot{background:#EFEAE3;border-color:#EFEAE3}
.is-current .way__dot{background:#FF6A00;border-color:#FF6A00;box-shadow:0 0 0 4px rgba(255,106,0,.18),0 0 14px rgba(255,106,0,.5)}
.way__title{font-size:14px;line-height:1.3;color:rgba(239,234,227,.82);overflow-wrap:break-word}
.is-done .way__title{color:rgba(239,234,227,.6)}
.is-current .way__title{color:#FAFAF6;font-weight:500}
.way__note{font-size:11.5px;line-height:1.2;white-space:nowrap;color:rgba(239,234,227,.45)}
.is-current .way__note{color:#FF6A00}
.way-empty{margin:0 0 26px;font-size:12.5px;line-height:1.5;color:rgba(239,234,227,.55)}
