/* "Документи" as the way to the house (parts/documents.php): stepping stones on a path that is drawn as the page is
   scrolled (assets/js/documents.js) and leads to the house, which welcomes the reader; a check list on a clipboard
   whose ticks are put one by one; a note pinned beside it, and the files to download. */

.adm { position: relative; padding: 40px 0 80px; overflow: hidden; }
.bg .adm .adm__title, .bg .adm .adm__label, .bg .adm .adm__paper-title, .bg .adm .step__stone b { font-family: 'Neucha', Arial, sans-serif; }
.adm .adm__title { margin: 0 auto 10px; font: 400 52px/1.1 'Cabin Sketch', Arial, sans-serif; text-align: center; color: #ff5736; letter-spacing: .04em; opacity: 0; transform: translateY(20px) scale(.9); transition: opacity .7s, transform .9s cubic-bezier(.34, 1.56, .64, 1); }
.adm .adm__title.is-in { opacity: 1; transform: none; }
.adm__intro { max-width: 820px; text-align: center; opacity: 0; transition: opacity .8s; }
.adm__intro.is-in { opacity: 1; }
.adm .adm__intro p { font-size: 17px; line-height: 1.8; color: #3c4741; }

/* ---------- The way: the stones, the path and the house ---------- */
.adm__way { position: relative; padding-top: 10px; }
.adm .adm__label { position: relative; z-index: 1; margin: 0 0 30px; font: 400 34px/1.2 'Cabin Sketch', Arial, sans-serif; text-align: center; color: #52aae8; }
.adm__path { position: absolute; z-index: 0; left: 0; top: 0; overflow: visible; pointer-events: none; }
.adm__road { fill: none; stroke: #eadccc; stroke-width: 26; stroke-linecap: round; }
.adm__line { fill: none; stroke: #ffcf6e; stroke-width: 8; stroke-linecap: round; stroke-dasharray: 0 99999; }
.adm__steps { position: relative; z-index: 1; margin: 0; padding: 0; list-style: none; }
.step { display: grid; grid-template-columns: 1fr 240px 1fr; align-items: center; min-height: 130px; margin: 0 0 16px; }
.step__stone { position: relative; grid-column: 2; grid-row: 1; justify-self: center; display: grid; place-items: center; width: 70px; height: 70px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 6px #fff, 0 0 0 10px var(--c), 0 14px 22px -10px rgba(60, 40, 20, .5); transition: background .5s, transform .6s cubic-bezier(.34, 1.8, .64, 1), box-shadow .5s; }
.step.is-left .step__stone { translate: -58px 0; }
.step.is-right .step__stone { translate: 58px 0; }
.adm .step__stone b { font: 400 34px/1 'Cabin Sketch', Arial, sans-serif; color: var(--c); transition: color .5s; }
.step__text { grid-row: 1; margin: 0; padding: 18px 24px; border-radius: 22px; background: #fff; box-shadow: 0 18px 30px -20px rgba(60, 40, 20, .5); font-size: 17px; line-height: 1.6; color: #3c4741; transition: opacity .6s, transform .8s cubic-bezier(.34, 1.4, .64, 1); }
.step.is-left .step__text { grid-column: 1; border-right: 5px solid var(--c); text-align: right; }
.step.is-right .step__text { grid-column: 3; border-left: 5px solid var(--c); }
/* with the script on, a step waits faded until the path reaches its stone */
.adm__way.is-drawn .step__text { opacity: .38; transform: translateY(14px); }
.adm__way.is-drawn .step.is-lit .step__text { opacity: 1; transform: none; }
.step.is-lit .step__stone { background: var(--c); transform: scale(1.12); box-shadow: 0 0 0 6px #fff, 0 0 0 10px var(--c), 0 0 26px 10px color-mix(in srgb, var(--c) 45%, transparent); }
.step.is-lit .step__stone b { color: #fff; }
/* the steps in the site's handwriting, big enough to read at a glance (the client, 2026-11-12: "Стъпките са с много
   дребен и някак обикновен шрифт") – the site's general rules for paragraphs used to make them small Open Sans */
.adm .adm__steps .step__text { padding: 20px 28px 21px; font: 400 23px/1.32 'Cabin Sketch', Arial, sans-serif; letter-spacing: .01em; color: #2f3a34; }
.bg .adm .adm__steps .step__text { font: 400 25px/1.3 'Neucha', Arial, sans-serif; letter-spacing: .005em; }
.adm .adm__steps .step__stone { width: 78px; height: 78px; }
.adm .adm__steps .step__stone b { font-size: 40px; }
.adm__way.is-drawn .step__text { opacity: .5; }
.adm__home { position: relative; z-index: 1; display: flex; justify-content: center; padding-top: 20px; }
.adm__house { position: relative; display: block; width: 240px; height: 206px; background: url('../images/montessorihouse.svg') no-repeat center bottom / contain; transform-origin: 50% 100%; }
.adm__fan { position: absolute; left: 58%; top: 52.3%; width: 6.43%; height: 7.83%; background: url('../images/fan.svg') no-repeat center / contain; animation: adm-spin 1.6s linear infinite; }
@keyframes adm-spin { to { transform: rotate(360deg); } }
.adm__way.is-home .adm__house { animation: adm-welcome 1s cubic-bezier(.34, 1.56, .64, 1); }
.adm__way.is-home .adm__fan { animation-duration: .4s; }
@keyframes adm-welcome { 0% { transform: none; } 30% { transform: scale(1.08, .9); } 60% { transform: scale(.96, 1.06) translateY(-10px); } 100% { transform: none; } }

/* ---------- The papers: the clipboard, the note and the files ---------- */
.adm__papers { display: grid; grid-template-columns: 1.3fr 1fr; gap: 50px; align-items: start; margin-top: 80px; }
.adm__clipboard { position: relative; padding: 46px 22px 22px; border-radius: 20px; background: repeating-linear-gradient(100deg, rgba(120, 70, 30, 0) 0 22px, rgba(120, 70, 30, .07) 22px 25px), linear-gradient(#d39a5f, #bf8247); box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .15), 0 26px 40px -24px rgba(70, 40, 20, .65); rotate: -1deg; opacity: 0; transform: translateY(50px); transition: opacity .7s, transform 1s cubic-bezier(.34, 1.3, .64, 1); }
.adm__clipboard.is-in { opacity: 1; transform: none; }
.adm__clamp { position: absolute; z-index: 2; left: 50%; top: -18px; width: 130px; height: 50px; margin-left: -65px; border-radius: 12px 12px 6px 6px; background: linear-gradient(#eef1f4, #b9c1c9); box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .12), 0 4px 6px rgba(0, 0, 0, .2); }
.adm__clamp::before { content: ''; position: absolute; left: 50%; top: 9px; width: 34px; height: 14px; margin-left: -17px; border-radius: 8px; background: #8b949d; box-shadow: inset 0 3px 3px rgba(0, 0, 0, .3); }
.adm__paper { padding: 34px 34px 26px; border-radius: 6px; background: #fff; box-shadow: 0 2px 0 #e9e2da; }
.adm .adm__paper-title { margin: 0 0 20px; font: 400 32px/1.2 'Cabin Sketch', Arial, sans-serif; color: #3c4741; }
.adm__list { margin: 0; padding: 0; list-style: none; }
.adm__list li { display: grid; grid-template-columns: 28px 1fr; gap: 14px; align-items: start; padding: 10px 0; border-bottom: 1px dashed #e3dcd4; font-size: 16px; line-height: 1.6; color: #3c4741; }
.adm__list li:last-child { border-bottom: 0; }
/* a paper that is filled in on the site (the application): a link with a pencil, in the list and on the note */
.adm__list a, .adm .adm__note a { color: #1f6fb2; font-weight: 600; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; text-decoration-color: rgba(31, 111, 178, .35); transition: color .2s, text-decoration-color .2s; }
.adm__list a:hover, .adm .adm__note a:hover { color: #ff5736; text-decoration-color: currentColor; }
.adm__list a::after { content: ''; display: inline-block; width: 15px; height: 15px; margin-left: 7px; vertical-align: -2px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 17.25V21h3.75L17.8 9.95l-3.75-3.75L3 17.25zm17.7-10.2a1 1 0 0 0 0-1.4l-2.35-2.35a1 1 0 0 0-1.4 0l-1.85 1.85 3.75 3.75 1.85-1.85z'/%3E%3C/svg%3E") no-repeat center / contain; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 17.25V21h3.75L17.8 9.95l-3.75-3.75L3 17.25zm17.7-10.2a1 1 0 0 0 0-1.4l-2.35-2.35a1 1 0 0 0-1.4 0l-1.85 1.85 3.75 3.75 1.85-1.85z'/%3E%3C/svg%3E") no-repeat center / contain; }
.adm__tick { width: 26px; height: 26px; margin-top: 1px; border: 2px solid #b8c4cf; border-radius: 7px; background: #fff; }
.adm__tick path { fill: none; stroke: #4cb944; stroke-width: 3.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 26; stroke-dashoffset: 26; transition: stroke-dashoffset .35s ease-out calc(.7s + var(--k) * .22s); }
.adm__clipboard.is-in .adm__tick path { stroke-dashoffset: 0; }
.adm__side { display: flex; flex-direction: column; gap: 40px; padding-top: 10px; }
.adm__note { position: relative; padding: 38px 28px 26px; background: linear-gradient(#fff6a8, #ffec70); box-shadow: 0 20px 30px -18px rgba(90, 70, 0, .5); rotate: 2deg; opacity: 0; transform: translateY(-30px) rotate(6deg); transform-origin: 50% 0; transition: opacity .6s .3s, transform 1s cubic-bezier(.34, 1.56, .64, 1) .3s; }
.adm__note.is-in { opacity: 1; transform: none; animation: adm-flutter 4s ease-in-out 1.5s infinite alternate; }
@keyframes adm-flutter { from { skew: 0deg 0deg; } to { skew: .6deg -.4deg; } }
.adm .adm__note p { margin: 0; font-size: 17px; line-height: 1.7; color: #5a4a12; }
.adm__pin { position: absolute; left: 50%; top: -18px; width: 26px; height: 40px; margin-left: -13px; background: url('../images/pin.svg') no-repeat center / contain; }
.adm__files { opacity: 0; transform: translateY(30px); transition: opacity .7s .2s, transform .9s cubic-bezier(.34, 1.3, .64, 1) .2s; }
.adm__files.is-in { opacity: 1; transform: none; }
.adm__files .two-col-list { display: grid; gap: 30px; margin: 0; padding: 0; list-style: none; }
.adm__files .two-col-list li { position: relative; width: auto; margin: 0; padding: 26px 24px 24px; border-radius: 4px 18px 18px 18px; background: #fff; box-shadow: 0 18px 30px -20px rgba(60, 40, 20, .5); }
/* each file is a folder with a tab */
.adm__files .two-col-list li::before { content: ''; position: absolute; left: 0; top: -14px; width: 110px; height: 16px; border-radius: 10px 10px 0 0; background: #fff; }
.adm__files .two-col-list li:nth-child(2n+1) { border-top: 5px solid #52aae8; } .adm__files .two-col-list li:nth-child(2n) { border-top: 5px solid #7ad068; }
.adm__files .two-col-list li:nth-child(2n+1)::before { background: #52aae8; } .adm__files .two-col-list li:nth-child(2n)::before { background: #7ad068; }
.adm .adm__files h5 { margin: 0 0 14px; font-size: 18px; font-weight: 700; }
.adm .adm__files p:empty { display: none; }

/* ---------- Smaller screens ---------- */
@media only screen and (max-width: 1100px) {
	.step { grid-template-columns: 1fr 200px 1fr; }
	.step.is-left .step__stone { translate: -44px 0; } .step.is-right .step__stone { translate: 44px 0; }
	.adm__papers { grid-template-columns: 1fr; }
}
@media only screen and (max-width: 768px) {
	.adm .adm__title { font-size: 40px; }
	.adm .adm__label { font-size: 28px; }
	.step, .step.is-right { grid-template-columns: 96px 1fr; min-height: 0; margin-bottom: 26px; }
	.step__stone { grid-column: 1; width: 54px; height: 54px; }
	.step.is-left .step__stone { translate: -6px 0; } .step.is-right .step__stone { translate: 10px 0; }
	.adm .step__stone b { font-size: 27px; }
	.step.is-left .step__text, .step.is-right .step__text { grid-column: 2; padding: 14px 18px; border-right: 0; border-left: 5px solid var(--c); text-align: left; font-size: 16px; }
	.adm .adm__steps .step__text { padding: 15px 18px 16px; font-size: 20px; line-height: 1.32; }
	.bg .adm .adm__steps .step__text { font-size: 21px; }
	.adm .adm__steps .step__stone { width: 52px; height: 52px; }
	.adm .adm__steps .step__stone b { font-size: 27px; }
	.adm__house { width: 190px; height: 163px; }
	.adm__papers { gap: 44px; margin-top: 60px; }
	.adm__clipboard { padding: 40px 12px 12px; }
	.adm__paper { padding: 26px 18px 18px; }
	.adm .adm__paper-title { font-size: 27px; }
	.adm__list li { font-size: 15px; }
	/* the download button of a phone: the name of the file left, "Download" right, never one over the other */
	.adm__files .btn-download { padding: 12px 108px 12px 16px; font: 600 14px/1.35 'Open Sans', Arial, sans-serif; text-align: left; overflow-wrap: anywhere; }
	.adm__files .btn-download span { right: 34px; width: 66px; font-size: 13px; }
	.adm__files .btn-online { font-size: 18px; }
	.adm .adm__files h5 { font-size: 17px; line-height: 1.35; }
}
@media (prefers-reduced-motion: reduce) {
	.adm *, .adm *::before, .adm *::after { animation: none !important; transition: none !important; }
	.adm .adm__title, .adm__intro, .adm__clipboard, .adm__note, .adm__files, .step__text { opacity: 1 !important; transform: none !important; }
	.adm__tick path { stroke-dashoffset: 0 !important; }
}
