:root{
  --bg:#fbf7ee;
  --paper:#fffdf8;
  --paper-2:#fff9ed;
  --ink:#24322f;
  --muted:#69736f;
  --green:#477a67;
  --green-dark:#315b4d;
  --mint:#dcecdf;
  --blue:#6f98cf;
  --sky:#dfeaf8;
  --orange:#ee9965;
  --yellow:#f2c966;
  --rose:#e7a6a3;
  --lav:#c7b9df;
  --line:#ded7c9;
  --line-strong:#cfc4b2;
  --shadow:0 18px 42px rgba(74,64,48,.10);
  --shadow-soft:0 8px 22px rgba(74,64,48,.08);
  --radius:26px;
  --radius-sm:17px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth;max-width:100%;overflow-x:hidden}
body{max-width:100%;overflow-x:hidden}
body{
  margin:0;
  color:var(--ink);
  font-family:"Trebuchet MS",ui-rounded,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  line-height:1.55;
  background:
    radial-gradient(circle at 11% 5%,rgba(242,201,102,.16),transparent 26rem),
    radial-gradient(circle at 88% 12%,rgba(111,152,207,.12),transparent 28rem),
    var(--bg);
}
body:before{
  content:"";
  position:fixed;
  inset:0;
  z-index:-2;
  opacity:.24;
  pointer-events:none;
  background-image:linear-gradient(rgba(98,130,170,.08) 1px,transparent 1px);
  background-size:100% 34px;
  mask-image:linear-gradient(to bottom,transparent 0,#000 14%,#000 78%,transparent 100%);
}
button,input,select{font:inherit}
a{color:inherit}
.container{width:min(1180px,calc(100% - 34px));margin-inline:auto}
.skip-link{position:fixed;left:16px;top:-70px;background:#173f35;color:#fff;padding:11px 15px;border-radius:10px;z-index:1000;text-decoration:none}.skip-link:focus{top:16px}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

/* Header — looks like a slim school folder tab rather than a SaaS nav */
.site-header{position:sticky;top:0;z-index:40;padding:9px 0;background:rgba(251,247,238,.88);backdrop-filter:blur(18px);border-bottom:1px solid rgba(207,196,178,.62)}
.nav-wrap{min-height:62px;display:flex;align-items:center;gap:26px;padding:0 16px;border:1px solid rgba(207,196,178,.72);border-radius:20px;background:rgba(255,253,248,.82);box-shadow:0 5px 18px rgba(90,76,53,.05)}
.brand{display:flex;align-items:center;gap:12px;text-decoration:none;min-width:max-content}
.brand-mark{position:relative;display:block;width:43px;height:38px;border-radius:10px 10px 13px 13px;background:#f4c963;transform:rotate(-2deg);box-shadow:inset 0 -4px 0 rgba(0,0,0,.06)}
.brand-mark:before{content:"";position:absolute;width:28px;height:27px;left:7px;top:7px;background:#fffdf8;border-radius:4px;box-shadow:0 2px 5px rgba(67,56,39,.12)}
.brand-mark i,.brand-mark b{position:absolute;z-index:2;display:block;width:18px;height:2px;left:12px;background:#6f98cf;border-radius:99px}.brand-mark i{top:16px}.brand-mark b{top:22px}
.brand-copy{display:grid;line-height:1.08}.brand-copy strong{font-size:15px;letter-spacing:-.01em}.brand-copy small{font-size:10px;color:var(--muted);margin-top:4px;font-weight:600}
.nav{display:flex;gap:20px;margin-left:auto}.nav a,.site-footer a{text-decoration:none;color:#65706b;font-size:13px;font-weight:800}.nav a:hover,.site-footer a:hover{color:var(--green-dark)}
.header-cta{display:inline-flex;align-items:center;gap:7px;text-decoration:none;background:var(--green-dark);color:#fff;padding:10px 15px;border-radius:12px;font-size:13px;font-weight:900;box-shadow:0 5px 0 #22453a}.header-cta:after{content:"→"}

/* Shared */
.eyebrow,.section-kicker{display:inline-flex;align-items:center;gap:9px;text-transform:uppercase;letter-spacing:.12em;font-size:11px;font-weight:900;color:var(--green-dark)}
.eyebrow:before,.section-kicker:before{content:"";width:25px;height:7px;border-radius:99px;background:linear-gradient(90deg,var(--yellow) 0 45%,var(--blue) 45% 72%,var(--rose) 72%)}
.button{border:0;border-radius:13px;padding:13px 18px;display:inline-flex;align-items:center;justify-content:center;gap:8px;text-decoration:none;font-weight:900;cursor:pointer;transition:transform .18s ease,box-shadow .18s ease,background .18s ease}
.button.primary{background:var(--green-dark);color:#fff;box-shadow:0 5px 0 #22453a}.button.primary:hover{transform:translateY(-2px);box-shadow:0 7px 0 #22453a}.button.primary:active{transform:translateY(2px);box-shadow:0 2px 0 #22453a}
.button.ghost{background:var(--paper);color:var(--ink);box-shadow:inset 0 0 0 1px var(--line-strong),0 3px 0 rgba(186,173,152,.45)}.button.ghost:hover{background:#fffaf0;transform:translateY(-1px)}
.button.small{padding:10px 12px;border-radius:11px;font-size:12px}
.text-button{border:0;background:none;color:var(--green-dark);font-weight:900;cursor:pointer;text-decoration:underline;text-decoration-style:dotted;text-underline-offset:4px}

/* Hero — warm classroom desk */
.hero{position:relative;overflow:hidden;padding:64px 0 56px}
.hero:before{content:"";position:absolute;left:-54px;top:115px;width:310px;height:42px;transform:rotate(-7deg);border-radius:8px;background:linear-gradient(#f4cd65,#edbd48);box-shadow:var(--shadow-soft);opacity:.72}
.hero:after{content:"";position:absolute;left:-25px;top:123px;width:280px;height:26px;transform:rotate(-7deg);background:repeating-linear-gradient(90deg,transparent 0 9px,rgba(71,78,67,.36) 10px 11px,transparent 12px 19px,rgba(71,78,67,.2) 20px 21px);opacity:.65}
.hero-grid{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(390px,.95fr);gap:58px;align-items:center}
.hero-copy{position:relative;z-index:2}.hero h1{font-family:Georgia,"Times New Roman",serif;font-size:clamp(45px,5.4vw,76px);line-height:.98;letter-spacing:-.045em;margin:18px 0 24px;max-width:760px;font-weight:700}.hero h1 em{font-style:normal;color:var(--green-dark);position:relative;display:inline-block}.hero h1 em:after{content:"";position:absolute;left:3%;right:1%;height:10px;bottom:-4px;border-radius:99px;background:rgba(242,201,102,.48);transform:rotate(-1deg);z-index:-1}
.hero-lead{font-size:18px;color:#5d6964;max-width:690px;margin:0}.hero-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:28px}
.hero-metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;max-width:600px;margin-top:34px}.hero-metrics div{position:relative;padding:15px 17px 14px;background:rgba(255,253,248,.78);border:1px solid var(--line);border-radius:15px;box-shadow:var(--shadow-soft)}.hero-metrics div:nth-child(1){transform:rotate(-1deg)}.hero-metrics div:nth-child(2){transform:translateY(4px)}.hero-metrics div:nth-child(3){transform:rotate(1deg)}.hero-metrics strong{display:block;font-size:23px;line-height:1;color:var(--green-dark)}.hero-metrics span{display:block;color:var(--muted);font-size:12px;margin-top:5px}
.hero-showcase{position:relative;height:490px;border-radius:34px 34px 24px 24px;background:linear-gradient(155deg,#e9f3e9 0,#fff8e8 55%,#e9f0fb 100%);border:1px solid #d9d3c7;box-shadow:0 24px 60px rgba(79,66,45,.15);overflow:hidden;transform:rotate(.7deg)}
.hero-showcase:before{content:"";position:absolute;inset:0;background-image:linear-gradient(rgba(91,126,167,.10) 1px,transparent 1px),linear-gradient(90deg,rgba(91,126,167,.07) 1px,transparent 1px);background-size:29px 29px;mask-image:linear-gradient(145deg,rgba(0,0,0,.52),transparent 72%)}
.hero-showcase:after{content:"";position:absolute;right:-32px;top:65px;width:260px;height:25px;border-radius:12px 4px 4px 12px;background:linear-gradient(90deg,#eaa15d 0 74%,#f6d2aa 74% 88%,#556b6d 88%);transform:rotate(26deg);box-shadow:0 9px 18px rgba(72,54,31,.13)}
.showcase-sheet{position:absolute;width:224px;height:302px;background:#fff;border:1px solid #e2ded4;border-radius:7px;padding:21px;box-shadow:0 14px 30px rgba(69,58,43,.17)}
.showcase-sheet:before{content:"";position:absolute;top:-8px;left:50%;width:62px;height:18px;transform:translateX(-50%) rotate(-1deg);background:rgba(242,201,102,.72);border-radius:3px;box-shadow:0 1px 2px rgba(66,54,37,.08)}
.showcase-sheet span{display:block;font-family:Georgia,serif;font-weight:700;font-size:21px;color:var(--green-dark);margin-bottom:25px}.sheet-a{left:39px;top:95px;transform:rotate(-8deg)}.sheet-b{right:43px;top:42px;transform:rotate(7deg)}.sheet-c{left:163px;bottom:-88px;transform:rotate(1deg)}.sheet-a i{display:block;height:10px;margin:12px 0;border-radius:2px;background:linear-gradient(90deg,#dfeaf8 0 74%,transparent 74%)}.sheet-b b{display:block;height:31px;margin:8px 0;border-left:5px solid var(--orange);background:#f7f3ea}.sheet-c em{display:inline-grid;place-items:center;width:48px;height:48px;border-radius:50%;font-style:normal;font-weight:900;margin:5px;background:#e9f3e9;color:var(--green-dark)}
.showcase-note{position:absolute;z-index:4;left:26px;bottom:24px;background:#fffdf8;padding:11px 14px 10px;border:1px solid var(--line);border-radius:7px;box-shadow:var(--shadow-soft);transform:rotate(-2deg)}.showcase-note:before{content:"";position:absolute;width:27px;height:10px;left:20px;top:-6px;background:rgba(231,166,163,.72)}.showcase-note strong,.showcase-note span{display:block}.showcase-note strong{font-size:13px}.showcase-note span{font-size:11px;color:var(--muted)}

/* Quick age cards moved up: colored index tabs */
.age-section{padding:14px 0 34px}.section-head{display:flex;justify-content:space-between;align-items:end;gap:34px;margin-bottom:25px}.section-head.compact{align-items:center}.section-head h2,.inside-copy h2,.faq-grid h2,.hub-aside h2{font-family:Georgia,"Times New Roman",serif;font-size:clamp(31px,4vw,48px);line-height:1.07;letter-spacing:-.025em;margin:9px 0 0}.section-head p{max-width:520px;margin:9px 0 0;color:var(--muted)}
.age-cards{display:grid;grid-template-columns:1.06fr 1fr 1fr 1fr 1.06fr;gap:12px}.exact-grade-strip{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:17px;padding:12px 14px;border:1px dashed #d9cfbd;border-radius:11px;background:rgba(255,253,248,.7)}.exact-grade-strip>span{font-size:11px;font-weight:900;text-transform:uppercase;letter-spacing:.07em;color:#6a756f;margin-right:2px}.exact-grade-strip a{display:inline-flex;align-items:center;justify-content:center;min-width:56px;padding:7px 9px;border-radius:8px;background:#fffdf8;border:1px solid #ddd2c1;color:var(--green-dark);text-decoration:none;font-size:12px;font-weight:900;box-shadow:0 2px 0 rgba(199,184,159,.25)}.exact-grade-strip a:hover{transform:translateY(-1px);background:#fff5d6}.age-card{position:relative;text-decoration:none;color:inherit;min-height:138px;padding:21px 19px 17px;text-align:left;border:1px solid var(--line);border-radius:10px 10px 20px 20px;background:var(--paper);box-shadow:0 5px 0 rgba(195,181,157,.35);cursor:pointer;transition:.2s ease;overflow:hidden}.age-card:before{content:"";position:absolute;left:0;right:0;top:0;height:8px;background:var(--tab,#f2c966)}.age-card:nth-child(2){--tab:#89b49e}.age-card:nth-child(3){--tab:#e9a06f}.age-card:nth-child(4){--tab:#80a5d0}.age-card:nth-child(5){--tab:#b59fcf}.age-card:hover{transform:translateY(-4px) rotate(-.3deg);box-shadow:0 9px 0 rgba(195,181,157,.31)}.age-card strong{display:block;font-family:Georgia,serif;font-size:20px;margin:7px 0 8px}.age-card span{font-size:12px;color:var(--muted)}

/* Finder styled as a teacher's folder */
.finder{padding:20px 0 38px}.finder-inner{position:relative;display:grid;grid-template-columns:.75fr 1.35fr;gap:34px;align-items:end;padding:32px 34px 30px;border-radius:18px;background:#eaf1e9;border:1px solid #cfdccf;box-shadow:0 8px 0 #d9e4d8,0 18px 40px rgba(60,84,69,.10)}.finder-inner:before{content:"";position:absolute;left:32px;top:-14px;width:150px;height:24px;border:1px solid #cfdccf;border-bottom:0;border-radius:10px 10px 0 0;background:#eaf1e9}.finder-inner:after{content:"";position:absolute;right:28px;top:-7px;width:58px;height:16px;border-radius:4px;background:rgba(111,152,207,.26);transform:rotate(2deg)}.finder h2{font-family:Georgia,serif;font-size:30px;line-height:1.08;margin:8px 0 5px}.finder-note{margin:0;color:#617069;font-size:13px;max-width:390px}.finder-controls{display:grid;grid-template-columns:1fr 1fr auto;gap:10px;align-items:end}.finder label{display:grid;gap:7px}.finder label>span{font-size:11px;text-transform:uppercase;letter-spacing:.08em;font-weight:900;color:#54665e}.finder select,.search-box input{width:100%;min-height:46px;appearance:none;border:1px solid #d8cfbe;background:#fffdf8;color:var(--ink);border-radius:11px;padding:12px 14px;outline:none;box-shadow:inset 0 -2px 0 rgba(202,188,164,.18)}.finder select:focus,.search-box input:focus{border-color:#7da18e;box-shadow:0 0 0 3px rgba(105,154,129,.13)}.finder-button{white-space:nowrap}

/* Catalog — paper folders on a desk */
.catalog-section{position:relative;padding:72px 0 82px}.catalog-section:before{content:"";position:absolute;right:0;top:80px;width:190px;height:480px;background:repeating-linear-gradient(90deg,rgba(238,153,101,.0) 0 22px,rgba(238,153,101,.12) 23px 24px);transform:rotate(4deg);pointer-events:none}.catalog-tools{display:flex;align-items:center;gap:10px}.search-box{min-width:300px}.chips{display:flex;gap:9px;flex-wrap:wrap;margin:18px 0}.chip{position:relative;border:1px solid #d4caba;background:#fffdf8;color:var(--ink);border-radius:8px 8px 12px 12px;padding:9px 14px;font-weight:900;font-size:12px;cursor:pointer;box-shadow:0 3px 0 rgba(199,184,159,.32);transition:.18s}.chip:hover{transform:translateY(-1px)}.chip.active{background:#fff0c7;border-color:#e6c866;color:#3d4b45}.chip.active:before{content:"";position:absolute;left:14px;right:14px;bottom:4px;height:2px;background:#e5a957}.result-line{display:flex;align-items:center;gap:8px;color:var(--muted);font-size:13px;margin:17px 0 24px}.paperclip{display:block;width:12px;height:22px;border:2px solid #8ea2ae;border-radius:8px;transform:rotate(18deg);opacity:.75}.paperclip:after{content:"";display:block;width:5px;height:13px;border:1.5px solid #8ea2ae;border-radius:6px;margin:2px auto}
.cards{display:grid;grid-template-columns:repeat(4,1fr);gap:20px}.template-card{--folder:var(--c2);position:relative;display:flex;flex-direction:column;min-width:0;border:1px solid #d9d0c0;border-radius:13px 13px 23px 23px;background:#fffdf8;box-shadow:0 6px 0 rgba(197,181,154,.27),0 14px 30px rgba(76,63,42,.07);transition:.22s ease;overflow:visible}.template-card:before{content:"";position:absolute;left:18px;top:-9px;width:92px;height:18px;border:1px solid #d9d0c0;border-bottom:0;border-radius:9px 9px 0 0;background:color-mix(in srgb,var(--c2) 85%,#fff);z-index:0}.template-card:hover{transform:translateY(-5px) rotate(-.15deg);box-shadow:0 10px 0 rgba(197,181,154,.24),0 22px 38px rgba(76,63,42,.10)}.template-card[hidden]{display:none}
.card-preview{height:218px;position:relative;overflow:hidden;border-radius:12px 12px 0 0;background:linear-gradient(140deg,var(--c2),#fff8e9)}.card-preview:before{content:"";position:absolute;inset:0;background-image:linear-gradient(rgba(111,152,207,.07) 1px,transparent 1px),linear-gradient(90deg,rgba(111,152,207,.05) 1px,transparent 1px);background-size:25px 25px;opacity:.5}.card-preview:after{content:"";position:absolute;left:-16px;bottom:22px;width:145px;height:23px;border-radius:99px;background:color-mix(in srgb,var(--accent) 66%,#fff);transform:rotate(-11deg);opacity:.58}
.mini-pages{position:absolute;inset:27px 24px 42px;display:flex;align-items:flex-end;justify-content:center;z-index:2}.mini-pages i{position:absolute;width:91px;height:132px;background:#fff;border:1px solid rgba(52,52,40,.08);border-radius:5px;box-shadow:0 10px 18px rgba(74,58,37,.13)}.mini-pages i:before{content:"";position:absolute;left:50%;top:-5px;width:35px;height:12px;transform:translateX(-50%) rotate(-1deg);border-radius:2px;background:rgba(242,201,102,.65)}.mini-pages i:nth-child(1){transform:translateX(-59px) rotate(-8deg)}.mini-pages i:nth-child(2){z-index:2;transform:translateY(-8px)}.mini-pages i:nth-child(3){transform:translateX(59px) rotate(8deg)}.mini-pages i:after{content:"";position:absolute;left:12px;right:12px;top:25px;height:7px;border-radius:2px;background:color-mix(in srgb,var(--c2) 74%,#fff);box-shadow:0 17px 0 color-mix(in srgb,var(--c2) 74%,#fff),0 34px 0 color-mix(in srgb,var(--c2) 74%,#fff),0 51px 0 color-mix(in srgb,var(--c2) 74%,#fff)}
.preview-label{position:absolute;z-index:4;left:13px;right:13px;bottom:12px;text-align:center;color:var(--c1);font-weight:900;font-size:12px;letter-spacing:.01em}.card-body{display:flex;flex-direction:column;flex:1;padding:17px 16px 16px}.badges{display:flex;gap:6px;flex-wrap:wrap}.badges span{font-size:10px;font-weight:900;color:#6b706c;background:#f4f1e9;border:1px solid #ebe5d8;border-radius:7px;padding:5px 7px}.card-body h3{font-family:Georgia,serif;font-size:19px;line-height:1.15;margin:13px 0 7px}.card-body p{font-size:13px;color:var(--muted);margin:0 0 17px}.card-actions{display:flex;gap:8px;margin-top:auto}.card-actions .button{flex:1}
/* Theme-specific paper textures */
.motif-rainbow{background:linear-gradient(135deg,#fff0ef,#fff5c9 32%,#e9f6ee 63%,#eee8ff)}.motif-space{background:radial-gradient(circle at 18% 23%,#fff 0 2px,transparent 3px),radial-gradient(circle at 75% 14%,#fff 0 1px,transparent 2px),radial-gradient(circle at 83% 70%,#fff 0 2px,transparent 3px),linear-gradient(145deg,#293a80,#6876b3)}.motif-space .preview-label{color:#fff}.motif-board{background:linear-gradient(145deg,#2f5145,#477667)}.motif-board:before{background-image:linear-gradient(rgba(255,255,255,.06) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.04) 1px,transparent 1px)}.motif-board .preview-label{color:#fff}.motif-notebook{background:repeating-linear-gradient(0deg,#fffdf8 0 23px,#d9e6f6 24px),linear-gradient(90deg,transparent 0 36px,#e9a3a9 37px 39px,transparent 40px)}.motif-bw{filter:grayscale(1)}.motif-knit{background:repeating-linear-gradient(45deg,#f5e4d3 0 7px,#ecd1b6 7px 14px)}.motif-sea{background:linear-gradient(#e6f8fb 0 56%,#9ed9df 57% 65%,#6cc2cf 66% 76%,#3395a6 77%)}.motif-autumn{background:radial-gradient(circle at 20% 20%,#f2c35e 0 22px,transparent 23px),linear-gradient(135deg,#fff0c2,#f5c075)}.motif-bees{background:repeating-linear-gradient(135deg,#fff8d6 0 34px,#ffefaa 35px 68px)}.motif-pencils{background:linear-gradient(120deg,#fff4d7,#f6e4e4)}.motif-primary{background:linear-gradient(135deg,#edf7e2,#fff3c5)}.motif-first{background:linear-gradient(135deg,#efe8ff,#fff0cd)}.motif-eaglets{background:linear-gradient(135deg,#e8f3ff,#fff9ef)}.motif-russia{background:linear-gradient(#fbfbfb 0 33%,#e3ebff 33% 66%,#f4dddd 66%)}.motif-pastel{background:linear-gradient(135deg,#f4e1ed,#e0f0ef)}
.empty-state{padding:50px 20px;border:2px dashed #c8bda9;border-radius:18px;text-align:center;display:grid;gap:9px;justify-items:center;background:rgba(255,253,248,.72)}
.empty-state[hidden]{display:none!important}

/* Composition section — teacher board */
.inside-section{padding:78px 0;background:#eaf0e6;position:relative;overflow:hidden}.inside-section:after{content:"";position:absolute;right:-90px;bottom:-120px;width:330px;height:330px;border-radius:50%;border:38px solid rgba(242,201,102,.18)}.inside-grid{display:grid;grid-template-columns:.74fr 1.26fr;gap:72px;align-items:start;position:relative;z-index:1}.inside-copy p{color:#5f6d66;max-width:480px}.composition-list{display:grid;grid-template-columns:1fr 1fr;gap:10px;list-style:none;padding:0;margin:0}.composition-list li{position:relative;display:flex;align-items:center;gap:12px;min-height:52px;padding:12px 14px 12px 15px;background:#fffdf8;border:1px solid #d8d6c8;border-radius:7px;box-shadow:0 4px 0 rgba(165,174,151,.28);font-weight:800;font-size:13px}.composition-list li:nth-child(3n+1){transform:rotate(-.35deg)}.composition-list li:nth-child(3n+2){transform:translateY(2px)}.composition-list span{display:grid;place-items:center;min-width:27px;height:27px;border-radius:50%;background:#fff0c9;color:#6b603d;font-size:10px;font-weight:900}

/* Steps — blackboard without a dark SaaS panel */
.how-section{padding:78px 0;background:#345f51;color:#fff;position:relative;overflow:hidden}.how-section:before{content:"";position:absolute;inset:0;background-image:radial-gradient(circle at 14% 24%,rgba(255,255,255,.06) 0 2px,transparent 3px),linear-gradient(12deg,transparent 48%,rgba(255,255,255,.025) 49% 50%,transparent 51%);background-size:90px 90px,72px 72px}.how-section .section-kicker{color:#eaf2dd}.how-section .section-head h2{color:#fff}.steps{position:relative;display:grid;grid-template-columns:repeat(4,1fr);gap:15px;margin-top:27px}.steps article{position:relative;padding:28px 25px 25px;border:1px solid rgba(255,255,255,.20);border-radius:8px;background:rgba(255,255,255,.06);box-shadow:inset 0 0 0 1px rgba(0,0,0,.03)}.steps article:after{content:"";position:absolute;width:55px;height:13px;right:16px;top:-6px;background:rgba(242,201,102,.78);transform:rotate(3deg)}.steps article>span{display:grid;place-items:center;width:37px;height:37px;border-radius:50%;background:#f4d77f;color:#315b4d;font-weight:900}.steps h3{font-family:Georgia,serif;font-size:21px;margin:18px 0 8px}.steps p{color:#d7e3dd;margin:0;font-size:14px}

/* SEO/AEO hubs — notebook / teacher notes */
.hub-section{padding:76px 0;border-top:1px solid rgba(207,196,178,.62)}.hub-section.hub-intro{background:#fff8e9;padding-bottom:35px}.hub-tinted{background:#f1f5ed}.hub-head{margin-bottom:20px}.hub-nav{display:flex;gap:9px;flex-wrap:wrap}.hub-nav a{position:relative;display:inline-flex;align-items:center;text-decoration:none;padding:10px 13px;border:1px solid #d7ccba;border-radius:7px 7px 11px 11px;background:#fffdf8;font-size:12px;font-weight:900;box-shadow:0 3px 0 rgba(197,181,154,.25)}.hub-nav a:nth-child(2n){background:#eff5eb}.hub-nav a:nth-child(3n){background:#edf3fb}.hub-nav a:hover{transform:translateY(-1px)}
.hub-layout{display:grid;grid-template-columns:minmax(265px,.72fr) minmax(0,1.28fr);gap:74px;align-items:start}.hub-aside{position:sticky;top:96px}.hub-aside h2{margin:10px 0 19px}.answer-lead{font-size:15px;color:var(--muted);margin:0;max-width:470px}.answer-lead strong{color:var(--ink)}.hub-content>p{font-size:15px;color:#5f6965;margin:0 0 17px}.hub-content h3{font-family:Georgia,serif;font-size:22px;line-height:1.18;margin:30px 0 10px}.hub-content h3:first-child{margin-top:0}
.grade-guide{display:grid;gap:12px}.grade-guide article,.style-groups article,.content-map article{position:relative;background:#fffdf8;border:1px solid #d9d0c1;border-radius:8px;padding:21px;box-shadow:0 5px 0 rgba(202,188,164,.23)}.grade-guide article:before,.style-groups article:before,.content-map article:before{content:"";position:absolute;width:42px;height:11px;right:20px;top:-6px;background:rgba(111,152,207,.22);transform:rotate(2deg)}.grade-guide article:nth-child(2n):before,.style-groups article:nth-child(2n):before,.content-map article:nth-child(2n):before{background:rgba(238,153,101,.25);transform:rotate(-2deg)}.grade-guide article h3,.style-groups article h3{margin:0 0 9px}.grade-guide article p,.style-groups article p,.content-map article p{color:var(--muted);margin:0 0 11px}.grade-guide article p:last-of-type,.style-groups article p:last-child,.content-map article p:last-child{margin-bottom:0}.hub-link{display:inline-flex;margin-top:10px;color:var(--green-dark);font-weight:900;text-decoration:none;border-bottom:2px solid rgba(242,201,102,.8)}.hub-link:after{content:" →";margin-left:5px}.content-map,.style-groups{display:grid;grid-template-columns:1fr 1fr;gap:13px;margin-bottom:27px}.content-map article strong{display:block;font-family:Georgia,serif;font-size:17px;margin-bottom:7px}.print-steps{list-style:none;padding:0;margin:0 0 28px;display:grid;gap:10px}.print-steps li{display:grid;grid-template-columns:190px 1fr;gap:18px;padding:16px 17px;background:#fffdf8;border:1px solid #d9d0c1;border-radius:8px;box-shadow:0 3px 0 rgba(202,188,164,.20)}.print-steps strong{font-size:14px}.print-steps span{color:var(--muted);font-size:13px}

/* FAQ */
.faq-section{padding:76px 0 86px}.faq-grid{display:grid;grid-template-columns:.65fr 1.35fr;gap:70px}.faq-intro{color:var(--muted);max-width:430px}.faq-list{border-left:4px solid rgba(111,152,207,.16);padding-left:20px}.faq-list details{position:relative;border:1px solid #ddd3c2;background:#fffdf8;border-radius:9px;padding:0 17px;margin-bottom:10px;box-shadow:0 3px 0 rgba(202,188,164,.20)}.faq-list details:nth-child(3n+1){transform:rotate(-.15deg)}.faq-list summary{padding:17px 30px 17px 0;font-weight:900;cursor:pointer;list-style:none}.faq-list summary::-webkit-details-marker{display:none}.faq-list summary:after{content:"+";position:absolute;right:16px;top:11px;font-size:24px;color:var(--green-dark)}.faq-list details[open] summary:after{content:"–"}.faq-list p{color:var(--muted);margin:0 0 17px;font-size:14px}

/* Footer */
.site-footer{padding:48px 0;background:#2d5146;color:#fff;position:relative;overflow:hidden}.site-footer:before{content:"";position:absolute;left:0;right:0;top:0;height:8px;background:repeating-linear-gradient(90deg,#f0c85d 0 28px,#e79766 28px 56px,#7ea4d2 56px 84px,#8fb59f 84px 112px)}.footer-grid{display:grid;grid-template-columns:1fr auto 1.1fr;gap:48px;align-items:start}.site-footer p,.footer-note{color:#d1dfd9;font-size:13px}.site-footer a{color:#dfe9e5}.footer-note{max-width:410px}

/* Modal */
.modal{width:min(760px,calc(100% - 28px));max-height:85vh;border:1px solid #d9d0c1;border-radius:13px;padding:27px;background:#fffdf8;color:var(--ink);box-shadow:0 30px 100px rgba(47,55,51,.30)}.modal:before{content:"";position:absolute;left:50%;top:-7px;width:90px;height:18px;background:rgba(242,201,102,.72);transform:translateX(-50%) rotate(-1deg)}.modal::backdrop{background:rgba(37,50,47,.58);backdrop-filter:blur(4px)}.modal-head{display:flex;align-items:flex-start;justify-content:space-between;gap:20px}.modal-head h2{font-family:Georgia,serif;margin:6px 0 0}.modal-close{border:1px solid var(--line);background:#f4f0e7;border-radius:50%;width:38px;height:38px;font-size:25px;cursor:pointer}.modal-intro{color:var(--muted)}.modal-list{columns:2;column-gap:32px;padding-left:22px}.modal-list li{break-inside:avoid;margin:0 0 9px}.extra-item{display:none}.modal.show-extras .extra-item{display:list-item}

/* Responsive */
@media(max-width:1060px){
  .cards{grid-template-columns:repeat(3,1fr)}
  .hero-grid{grid-template-columns:1fr .9fr;gap:34px}.hero-showcase{height:430px}.showcase-sheet{width:198px;height:275px}.sheet-c{left:120px}
  .age-cards{grid-template-columns:repeat(3,1fr)}
  .finder-inner{grid-template-columns:1fr}.finder-controls{grid-template-columns:1fr 1fr auto}
}
@media(max-width:820px){
  .site-header{position:static}.nav{display:none}.header-cta{margin-left:auto}
  .hero{padding-top:42px}.hero-grid{grid-template-columns:1fr}.hero-showcase{height:410px;max-width:600px;width:100%;margin-inline:auto}.hero h1{max-width:700px}
  .section-head{display:grid;align-items:start}.catalog-tools{width:100%}.search-box{min-width:0;flex:1}
  .cards{grid-template-columns:repeat(2,1fr)}.inside-grid,.faq-grid{grid-template-columns:1fr;gap:35px}.composition-list{grid-template-columns:1fr 1fr}
  .steps{grid-template-columns:1fr 1fr}
  .hub-layout{grid-template-columns:1fr;gap:34px}.hub-aside{position:static}.content-map,.style-groups{grid-template-columns:1fr 1fr}.print-steps li{grid-template-columns:150px 1fr}
  .footer-grid{grid-template-columns:1fr}
}
@media(max-width:590px){
  .container{width:min(100% - 22px,1180px)}.nav-wrap{padding:0 11px}.brand-copy small{display:none}.header-cta{display:none}
  .hero{padding:36px 0 38px}.hero:before,.hero:after{display:none}.hero h1{font-size:42px}.hero-lead{font-size:16px}.hero-metrics{grid-template-columns:1fr 1fr 1fr;gap:7px}.hero-metrics div{padding:12px 10px}.hero-metrics strong{font-size:19px}.hero-metrics span{font-size:10px}
  .hero-showcase{height:326px;border-radius:24px}.showcase-sheet{width:160px;height:225px;padding:15px}.showcase-sheet span{font-size:16px;margin-bottom:18px}.sheet-a{left:19px;top:70px}.sheet-b{right:16px;top:35px}.sheet-c{left:95px;bottom:-82px}.showcase-note{left:15px;bottom:15px}
  .age-cards{grid-template-columns:1fr 1fr}.age-card{min-height:120px;padding:18px 15px}.age-card:last-child{grid-column:1/-1}
  .finder-inner{padding:26px 18px 20px}.finder-inner:before{left:18px}.finder-controls{grid-template-columns:1fr}.finder-button{width:100%}
  .catalog-section{padding-top:56px}.catalog-tools{display:grid;grid-template-columns:1fr auto}.cards{grid-template-columns:1fr}.card-preview{height:230px}
  .composition-list{grid-template-columns:1fr}.steps{grid-template-columns:1fr}
  .hub-section{padding:58px 0}.hub-nav{display:grid;grid-template-columns:1fr 1fr}.hub-nav a{justify-content:center;text-align:center}.content-map,.style-groups{grid-template-columns:1fr}.print-steps li{grid-template-columns:1fr;gap:4px}.faq-list{padding-left:11px}.modal-list{columns:1}
  .section-head h2,.inside-copy h2,.faq-grid h2,.hub-aside h2{font-size:34px}
}


/* Real template previews + on-demand sheet gallery */
.real-card-preview{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block}
.card-preview.has-real-preview:before,.card-preview.has-real-preview:after{display:none}
.card-preview.has-real-preview .preview-label{left:12px;right:auto;bottom:11px;max-width:calc(100% - 24px);padding:7px 10px;border-radius:9px;background:rgba(255,253,248,.91);box-shadow:0 4px 18px rgba(36,40,38,.13);backdrop-filter:blur(5px);color:#26312e;text-align:left}
.preview-note{margin:10px 0 22px;padding:11px 14px;border-left:3px solid #e8b957;background:#fffaf0;border-radius:0 10px 10px 0;color:#5e625f;font-size:13px}
.gallery-modal{width:min(1120px,calc(100% - 24px));height:min(900px,92vh);height:min(900px,92dvh);max-height:92vh;max-height:92dvh;padding:0;overflow:hidden;overscroll-behavior:contain}
.gallery-modal[open]{display:flex;flex-direction:column}
.gallery-modal .modal-head{flex:0 0 auto;padding:24px 26px 12px;position:relative;top:auto;background:#fffdf8;z-index:5}
.gallery-modal .modal-intro{margin:8px 0 0;max-width:760px}
.gallery-topbar{display:flex;flex:0 0 auto;align-items:center;justify-content:space-between;gap:16px;padding:10px 26px 16px;border-bottom:1px solid #e4dccd;background:#fffdf8;position:relative;top:auto;z-index:4}
.gallery-muted{color:#7b7f7d;font-size:12px}
.sheet-gallery{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));grid-auto-rows:max-content;align-content:start;gap:16px;flex:1 1 auto;min-height:0;padding:20px 24px 40px;overflow-x:hidden;overflow-y:auto;max-height:none;overscroll-behavior:contain;scrollbar-gutter:stable;scroll-padding-bottom:40px;background:linear-gradient(rgba(111,152,207,.045) 1px,transparent 1px),linear-gradient(90deg,rgba(111,152,207,.035) 1px,transparent 1px),#f8f4eb;background-size:28px 28px}
html.composition-open,body.composition-open{overflow:hidden;overscroll-behavior:none}
.template-card .card-preview[role="button"]{cursor:pointer}
.template-card .card-preview[role="button"]:focus-visible{outline:3px solid #315b4d;outline-offset:3px}
.sheet-card{align-self:start;background:#fff;border:1px solid #ddd4c3;border-radius:14px;overflow:hidden;box-shadow:0 7px 18px rgba(72,61,43,.07);min-width:0}
.sheet-thumb-button{display:block;width:100%;height:270px;border:0;padding:10px;background:#eee9de;cursor:zoom-in;overflow:hidden}
.sheet-thumb-button img{width:100%;height:100%;object-fit:contain;display:block;filter:drop-shadow(0 5px 5px rgba(39,39,35,.13))}
.sheet-card-body{padding:11px 12px 13px}
.sheet-number{font-size:10px;font-weight:900;text-transform:uppercase;letter-spacing:.06em;color:#878b87}
.sheet-card h3{font:700 15px/1.25 Georgia,serif;margin:5px 0 12px;min-height:38px}
.sheet-card-actions{display:flex;gap:8px;align-items:center}
.sheet-action-link,.sheet-action-download{font:800 12px/1.1 inherit;border:0;background:none;padding:0;cursor:pointer;text-decoration:none}
.sheet-action-link{color:#5e6764}
.sheet-action-download{margin-left:auto;color:#234c43}
.sheet-action-link:hover,.sheet-action-download:hover{text-decoration:underline}
.sheet-lightbox[hidden]{display:none}
.sheet-lightbox{position:absolute;inset:0;z-index:50;display:grid;place-items:center;padding:18px;opacity:0;transition:opacity .16s ease}
.sheet-lightbox.is-open{opacity:1}
.sheet-lightbox-backdrop{position:absolute;inset:0;background:rgba(27,34,31,.72);backdrop-filter:blur(5px)}
.sheet-lightbox-panel{position:relative;z-index:1;width:min(940px,96vw);max-height:94vh;display:grid;grid-template-columns:minmax(0,1fr) 280px;grid-template-rows:auto 1fr auto;background:#fffdf8;border-radius:18px;border:1px solid #d9d0c1;overflow:hidden;box-shadow:0 34px 120px rgba(0,0,0,.32)}
.sheet-lightbox-copy{grid-column:2;grid-row:1;padding:28px 24px 12px}
.sheet-lightbox-copy h3{font:700 24px/1.15 Georgia,serif;margin:7px 0 9px}
.sheet-lightbox-copy p{font-size:13px;color:#6d726f;margin:0}
.sheet-lightbox-image-wrap{grid-column:1;grid-row:1/4;display:grid;place-items:center;min-height:70vh;background:#ede8dd;padding:22px}
.sheet-lightbox-image-wrap img{display:block;max-width:100%;max-height:86vh;object-fit:contain;filter:drop-shadow(0 12px 14px rgba(42,39,33,.18))}
.sheet-lightbox-actions{grid-column:2;grid-row:3;display:grid;gap:8px;padding:12px 24px 24px}
.sheet-lightbox-close{position:absolute;right:12px;top:12px;z-index:3;width:38px;height:38px;border-radius:50%;border:1px solid #d9d0c1;background:#fffdf8;font-size:24px;cursor:pointer}
html.lightbox-open{overflow:hidden}
noscript{display:block;margin:0;padding:9px 18px;background:#fff1c7;text-align:center;font:700 13px/1.4 system-ui,sans-serif;color:#51472f}

@media(max-width:900px){
  .sheet-gallery{grid-template-columns:repeat(3,minmax(0,1fr))}
  .sheet-lightbox-panel{grid-template-columns:1fr;grid-template-rows:auto minmax(0,1fr) auto;width:min(680px,96vw)}
  .sheet-lightbox-copy{grid-column:1;grid-row:1;padding:21px 54px 10px 20px}
  .sheet-lightbox-image-wrap{grid-column:1;grid-row:2;min-height:0;padding:14px;overflow:auto}
  .sheet-lightbox-image-wrap img{max-height:67vh}
  .sheet-lightbox-actions{grid-column:1;grid-row:3;grid-template-columns:1fr 1fr;padding:10px 16px 16px}
}
@media(max-width:640px){
  .gallery-modal{width:calc(100% - 12px);height:96vh;height:96dvh;max-height:96vh;max-height:96dvh;border-radius:12px}
  .gallery-modal .modal-head{padding:18px 16px 10px}
  .gallery-modal .modal-head h2{font-size:24px}
  .gallery-topbar{top:auto;padding:9px 16px 12px;align-items:flex-start;flex-direction:column}
  .gallery-topbar .button{width:100%}
  .gallery-muted{display:block;margin-top:2px}
  .sheet-gallery{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:12px 12px 32px;max-height:none;scroll-padding-bottom:32px}
  .sheet-thumb-button{height:205px;padding:7px}
  .sheet-card-body{padding:9px}
  .sheet-card h3{font-size:13px;min-height:34px;margin-bottom:9px}
  .sheet-card-actions{display:grid;gap:6px}
  .sheet-action-download{margin-left:0}
  .sheet-lightbox{padding:6px}
  .sheet-lightbox-panel{max-height:98vh;width:98vw}
  .sheet-lightbox-copy{padding:16px 48px 8px 14px}
  .sheet-lightbox-copy h3{font-size:20px}
  .sheet-lightbox-image-wrap{padding:8px}
  .sheet-lightbox-actions{grid-template-columns:1fr;padding:8px 12px 12px}
}

/* Per-card palette moved from inline style attributes for a strict CSP. */
.template-card[data-set="01-sovremennyy-shkolnyy"]{--c1:#314a65;--c2:#dce7f1;--accent:#f2a65a;}
.template-card[data-set="02-yarkiy-shkolnyy"]{--c1:#ff7f50;--c2:#fff0b8;--accent:#35a7ff;}
.template-card[data-set="03-nachalnaya-shkola"]{--c1:#4aa96c;--c2:#eef8df;--accent:#ffc857;}
.template-card[data-set="04-1-klass"]{--c1:#8758ff;--c2:#f3ecff;--accent:#ffb703;}
.template-card[data-set="05-strogiy-sovremennyy-8-11"]{--c1:#20252b;--c2:#e9ecef;--accent:#607d8b;}
.template-card[data-set="06-minimalistichnyy"]{--c1:#6b7280;--c2:#f5f5f4;--accent:#111827;}
.template-card[data-set="07-orlyata-rossii"]{--c1:#2f6fb0;--c2:#edf5ff;--accent:#e55252;}
.template-card[data-set="08-rossiya-patrioticheskiy"]{--c1:#204d8d;--c2:#f6f8fc;--accent:#c7353a;}
.template-card[data-set="09-pastelnyy"]{--c1:#c99bb7;--c2:#fbf3f7;--accent:#9bbec8;}
.template-card[data-set="10-cherno-belyy"]{--c1:#262626;--c2:#f2f2f2;--accent:#777;}
.template-card[data-set="11-vyazanyy"]{--c1:#a55d35;--c2:#f7eadb;--accent:#6d8a66;}
.template-card[data-set="12-morskoy"]{--c1:#147d92;--c2:#e8f8fb;--accent:#ef8354;}
.template-card[data-set="13-osenniy-les"]{--c1:#a65f2a;--c2:#fff2d5;--accent:#c9472c;}
.template-card[data-set="14-pchelki"]{--c1:#d39800;--c2:#fff7cf;--accent:#2c2c2c;}
.template-card[data-set="15-raduga"]{--c1:#6f61d8;--c2:#fff4fb;--accent:#ff7e79;}
.template-card[data-set="16-sovyata"]{--c1:#76528b;--c2:#f5ecfb;--accent:#d29b47;}
.template-card[data-set="17-kosmos"]{--c1:#293a80;--c2:#edf0ff;--accent:#ffcf56;}
.template-card[data-set="18-karandashi"]{--c1:#e65f5c;--c2:#fff3d6;--accent:#2c8c99;}
.template-card[data-set="19-shkolnaya-doska-mel"]{--c1:#335b4b;--c2:#eaf1ed;--accent:#f6d86b;}
.template-card[data-set="20-tetradnyy"]{--c1:#5275a5;--c2:#f4f8ff;--accent:#d54f5f;}


/* HTML-first composition index: useful with JS, fully functional without it. */
.composition-extra-note{margin:20px 0 0;padding:13px 15px;border:1px dashed #bac8b6;border-radius:10px;background:rgba(255,253,248,.72);color:#52625a;font-size:13px;line-height:1.55}
.composition-index-section{padding:70px 0;background:#fffdf8;border-top:1px solid #e6ded0;border-bottom:1px solid #e6ded0}
.composition-index-head{margin-bottom:24px}.composition-index-head p{max-width:650px;color:var(--muted)}
.composition-index-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;align-items:start}
.composition-set{scroll-margin-top:96px;border:1px solid #ddd4c3;border-radius:12px;background:#fff;box-shadow:0 5px 15px rgba(72,61,43,.05);overflow:hidden}
.composition-set>summary{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 18px;cursor:pointer;font-weight:900;list-style:none}
.composition-set>summary::-webkit-details-marker{display:none}.composition-set>summary:after{content:"+";display:grid;place-items:center;flex:0 0 28px;height:28px;border-radius:50%;background:#f2eee4;color:#42544d;font-size:18px;line-height:1}
.composition-set[open]>summary:after{content:"−"}.composition-set>summary small{margin-left:auto;color:var(--muted);font-size:12px;font-weight:800;white-space:nowrap}
.composition-set-list{list-style:none;padding:0 18px 8px;margin:0;border-top:1px solid #eee6d8}
.composition-set-list li{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:9px 0;border-bottom:1px solid #f0eadf;font-size:13px}
.composition-item-title{display:flex;align-items:flex-start;gap:9px;min-width:0}.composition-item-title b{display:grid;place-items:center;flex:0 0 25px;height:25px;border-radius:50%;background:#edf2ec;color:#315b4d;font-size:10px}
.composition-item-actions{display:flex;gap:7px;white-space:nowrap}.composition-item-actions a,.composition-set-zip{color:#315b4d;font-weight:850;text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px}
.composition-set-zip{display:inline-block;margin:4px 18px 17px;font-size:13px}
@media (max-width:760px){.composition-index-grid{grid-template-columns:1fr}.composition-set>summary{padding:14px}.composition-set-list{padding:0 14px 7px}.composition-set-list li{align-items:flex-start;gap:10px}.composition-item-actions{flex-direction:column;gap:3px;text-align:right}}

.composition-set:target{outline:3px solid rgba(71,122,103,.28);outline-offset:3px}
