/* Readability, layout and motion on top of site.css. */

/* Section titles stay legible over bright photos (the halal logo especially). */
.directory-card .tile-copy strong{text-shadow:0 1px 10px rgba(7,25,14,.7)}
.directory-card.tile-halal:after{background:linear-gradient(rgba(0,0,0,0) 30%,rgba(7,25,14,.5) 55%,rgba(7,25,14,.92) 100%)}

/* The copy is pinned to the bottom while the icon was centred, so long titles grew into it. Keep the icon in the top corner. */
.directory-card,.mobile-edition .directory-card{justify-content:flex-start!important}

/* One image per section instead of the 4x3 sprite: the sprite's 400%/300% sizing stretched photos on non-square tiles. */
.directory-card.tile-fatwa:before{background-image:url('/static/assets/tiles/fatwa.webp')!important}
.directory-card.tile-charity:before{background-image:url('/static/assets/tiles/charity.webp')!important}
.directory-card.tile-zakat:before{background-image:url('/static/assets/tiles/zakat.webp')!important}
.directory-card.tile-prayer:before{background-image:url('/static/assets/tiles/prayer.webp')!important}
.directory-card.tile-news:before{background-image:url('/static/assets/tiles/news.webp')!important}
.directory-card.tile-about:before{background-image:url('/static/assets/tiles/about.webp')!important}
.directory-card.tile-contacts:before{background-image:url('/static/assets/tiles/contacts.webp')!important}
.directory-card.tile-fatwa:before,.directory-card.tile-charity:before,.directory-card.tile-zakat:before,.directory-card.tile-prayer:before,.directory-card.tile-news:before,.directory-card.tile-about:before,.directory-card.tile-contacts:before{background-size:cover!important;background-position:center!important}

/* Donations had the same photo as charity: its own animated illustration of a hand putting a coin into a sadaqa box. */
.directory-card.tile-sadaqa:before{background-image:url('/static/assets/sadaqa-box.svg')!important;background-size:cover!important;background-position:center top!important}

/* Safari sizes a grid item that has aspect-ratio to its content instead of the column (tiles shrank to dots on iPhone
   and to icon width on Mac), so the tiles are stretched to the column explicitly. */
.directory-grid>.directory-card{justify-self:stretch!important;width:100%!important;max-width:none!important}

/* Phones: square tiles in two rows of four, so all eight fit above the bottom bar on any phone or narrow window. */
@media(max-width:720px){
.directory-grid,.mobile-edition .directory-grid{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;max-width:none!important;gap:7px!important}
.directory-card,.directory-card.tile-school,.directory-card.tile-charity,.mobile-edition .directory-card,.mobile-edition .directory-card.tile-school,.mobile-edition .directory-card.tile-charity{aspect-ratio:1/1!important;height:auto!important;min-height:0!important;padding:5px!important;border-radius:13px!important}
.directory-card .tile-copy small,.directory-card .tile-copy>span,.directory-card .tile-arrow{display:none!important}
/* The small section icon stays, as on desktop, shrunk into the top-left corner above the title. */
.directory-card .tile-icon,.mobile-edition .directory-card .tile-icon{display:grid!important;place-items:center;position:absolute!important;top:6px;left:6px;width:clamp(22px,6.4vw,32px)!important;height:clamp(22px,6.4vw,32px)!important;margin:0!important;border-radius:9px!important;z-index:1}
.directory-card .tile-icon svg{width:60%!important;height:60%!important}
/* Like on desktop, the school and halal tiles carry no badge — their photo and logo are the icon. */
.directory-card.tile-school .tile-icon,.directory-card.tile-halal .tile-icon{display:none!important}
.directory-card .tile-copy{left:4px!important;right:4px!important;bottom:6px!important;top:auto!important;text-align:center!important;align-items:center!important}
.directory-card .tile-copy strong,.directory-card.tile-school .tile-copy strong,.directory-card.tile-charity .tile-copy strong,.directory-card.tile-sadaqa .tile-copy strong,.mobile-edition .directory-card.tile-charity .tile-copy strong,.mobile-edition .directory-card.tile-sadaqa .tile-copy strong{font:400 clamp(9.5px,3vw,16px)/1.1 Georgia,serif!important;letter-spacing:0!important;white-space:normal!important;overflow-wrap:normal!important;hyphens:auto;text-align:center!important;width:100%}
/* Square crop centred on the hand-and-box scene, with room below for the title. */
.directory-card.tile-sadaqa:before{background-image:url('/static/assets/sadaqa-tile.svg?v=5')!important;background-size:cover!important;background-position:center!important}
.directory-card.tile-sadaqa{background:radial-gradient(circle at 50% 38%,#3f6b52,#1d4234 55%,#0d261d)!important}
}

/* Donation page: the main «Садака» button shows the same animated hand-and-box scene as the home tile. */
.sadaqa-action .sadaqa-hand{display:block;width:150px;height:150px;margin:0 auto 4px;background:url('/static/assets/sadaqa-button.svg?v=4') center/contain no-repeat}
.sadaqa-action .sadaqa-hand svg{display:none}
@media(max-width:720px){.sadaqa-action .sadaqa-hand{width:120px;height:120px}}

/* Teachers' announcements in the header carousel: titles may take two lines instead of being cut. */
.promo-teacher .promo-label{text-transform:uppercase}
.header .promo-slide.promo-teacher h2{white-space:normal!important;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;line-height:1.15}

/* ---------- Readability on every screen ---------- */
/* iPhones in landscape enlarge text on their own; older Safari needs the prefixed blur and a vh fallback for dvh. */
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
.app-bottom-nav{-webkit-backdrop-filter:blur(15px)}
.modal-backdrop{-webkit-backdrop-filter:blur(6px)}
@supports not (height:1dvh){.modal{max-height:88vh!important}#prayer-month-dialog{max-height:90vh!important}.month-table-scroll{max-height:48vh!important}}
/* The «Благотворительность» heading in the narrow footer column no longer runs past it. */
#footer-giving h2{overflow-wrap:anywhere;hyphens:auto}

@media(max-width:720px){
/* Fine print was 6–8px: raised to a readable minimum while still fitting a 320px screen. */
.brand small{font-size:clamp(7px,2.3vw,8.5px)!important}
.prayer-strip-label>span,.strip-slot>span,#strip-next-label{font-size:9px!important}
.prayer-strip-label small{font-size:8px!important}
.header-madhhab button,.prayer-month-button{font-size:10px!important}
.promo-slide .promo-label,.youtube-kicker,#youtube-status{font-size:10px!important}
.youtube-card time,.youtube-heading-actions a,.centre-ticker .ticker-track>span,.footer-base,.footer-base a{font-size:10.5px!important}
.app-bottom-nav a>span,.app-bottom-nav button>span{font-size:clamp(9px,2.75vw,11px)!important}
/* Buttons big enough for a finger (about 32px), without moving the layout around them. */
#promo-prev,#promo-pause,#promo-next,#slide-prev,#slide-pause,#slide-next,#site-theme-toggle{min-width:32px!important;min-height:32px!important}
.promo-cta{display:inline-block!important;padding:9px 0!important;margin:-9px 0!important}
/* iPhone zooms the whole page into any field with text under 16px. */
input:not([type=checkbox]):not([type=radio]):not([type=range]),select,textarea{font-size:16px!important}
}

/* ---------- Cookie notice, consent checkbox, legal links ---------- */
.cookie-notice{position:fixed;left:16px;right:16px;bottom:16px;z-index:95;max-width:640px;margin:0 auto;display:flex;align-items:center;gap:14px;
 padding:14px 16px;border-radius:16px;background:#fffdf6;border:1px solid #d3dcc6;box-shadow:0 10px 30px -10px rgba(20,50,35,.35);color:#294535;font:14px/1.5 Arial,sans-serif}
.cookie-notice p{margin:0;flex:1}
.cookie-notice a{color:#164d3e;text-decoration:underline}
.cookie-notice button{flex:none;min-height:40px;padding:8px 18px;border:0;border-radius:11px;background:#164d3e;color:#fff;font:700 14px Arial,sans-serif;cursor:pointer}
@media(max-width:720px){.cookie-notice{bottom:calc(92px + env(safe-area-inset-bottom));flex-direction:column;align-items:stretch;gap:10px;font-size:13px}}
.consent-check{display:flex!important;gap:8px;align-items:flex-start;margin:10px 0 14px;font-size:13px;line-height:1.45;text-align:left;cursor:pointer}
.consent-check input{flex:none;width:18px!important;height:18px!important;min-height:0!important;margin:2px 0 0!important;accent-color:#164d3e}
.consent-check a{text-decoration:underline}
.legal-links{display:flex;flex-wrap:wrap;gap:6px 14px;font-size:13px}
.legal-links a{text-decoration:underline;text-underline-offset:2px}

/* ---------- Motion ---------- */
@media(prefers-reduced-motion:no-preference){

/* Tiles rise in one after another, sharpening from a soft blur. */
@keyframes tile-in{from{opacity:0;transform:translateY(18px) scale(.97);filter:blur(6px)}to{opacity:1;transform:none;filter:none}}
.directory-grid>.directory-card{animation:tile-in .7s cubic-bezier(.2,.7,.2,1) backwards!important}
.directory-grid>.directory-card:nth-child(2){animation-delay:.06s!important}
.directory-grid>.directory-card:nth-child(3){animation-delay:.12s!important}
.directory-grid>.directory-card:nth-child(4){animation-delay:.18s!important}
.directory-grid>.directory-card:nth-child(5){animation-delay:.24s!important}
.directory-grid>.directory-card:nth-child(6){animation-delay:.3s!important}
.directory-grid>.directory-card:nth-child(7){animation-delay:.36s!important}
.directory-grid>.directory-card:nth-child(8){animation-delay:.42s!important}

/* Light sweeps across a tile on hover (desktop) — the sheen span is added by tweaks.js. */
.tile-sheen{position:absolute;inset:0;z-index:0;pointer-events:none;background:linear-gradient(115deg,transparent 30%,rgba(255,240,200,.28) 48%,transparent 62%);transform:translateX(-120%);transition:transform .9s cubic-bezier(.2,.7,.2,1)}
.directory-card:hover .tile-sheen{transform:translateX(120%)}

/* 3D tilt that follows the cursor (values set by tweaks.js). */
@media(hover:hover) and (pointer:fine){
.directory-card{transition:transform .25s ease,box-shadow .3s ease!important;will-change:transform}
.directory-card:hover{transform:perspective(800px) rotateX(var(--rx,0deg)) rotateY(var(--ry,0deg)) translateY(-6px)!important;box-shadow:0 22px 40px -12px rgba(16,52,38,.45)!important}
.directory-card:hover:before{transform:scale(1.07)!important;transition:transform 1.2s cubic-bezier(.2,.7,.2,1)!important}
}

/* Touch: a short press-in so taps feel physical. */
.directory-card:active{transform:scale(.97)!important;transition:transform .12s ease!important}

/* Sections further down glide in as they reach the screen. */
.reveal{opacity:0;transform:translateY(28px);transition:opacity .8s ease,transform .8s cubic-bezier(.2,.7,.2,1)}
.reveal.is-visible{opacity:1;transform:none}

/* The current prayer softly breathes. */
@keyframes prayer-glow{0%,100%{box-shadow:0 0 0 0 rgba(179,138,69,0)}50%{box-shadow:0 0 0 6px rgba(179,138,69,.18)}}
.prayer-strip .is-current,.prayer-strip [aria-current],.prayer-strip .active{animation:prayer-glow 3s ease-in-out infinite;border-radius:10px}

/* «Садака» button: a soft gold glow breathes around it, a light sweeps across every few seconds, hover lifts it. */
@keyframes sadaqa-breathe{0%,100%{box-shadow:0 14px 34px -14px rgba(22,69,51,.55),0 0 0 0 rgba(214,173,91,0)}50%{box-shadow:0 18px 40px -14px rgba(22,69,51,.6),0 0 0 10px rgba(214,173,91,.14)}}
@keyframes sadaqa-sweep{0%,70%{transform:translateX(-130%) skewX(-18deg)}100%{transform:translateX(230%) skewX(-18deg)}}
.sadaqa-action{animation:sadaqa-breathe 3.6s ease-in-out infinite;transition:transform .3s cubic-bezier(.2,.7,.2,1)}
.sadaqa-action:after{content:'';position:absolute;top:0;bottom:0;left:0;width:45%;pointer-events:none;background:linear-gradient(90deg,transparent,rgba(255,240,200,.22),transparent);animation:sadaqa-sweep 4.5s ease-in-out infinite}
.sadaqa-action:hover{transform:translateY(-4px) scale(1.015)}
.sadaqa-action:active{transform:scale(.98)}
}

/* Lighter tiles: the photos show through, and only the bottom, behind the title, is shaded for legibility. */
.directory-card{background:#4a7360!important}
.directory-card:not(.tile-school):not(.tile-halal):after{background:linear-gradient(180deg,rgba(5,18,13,0) 22%,rgba(5,18,13,.3) 48%,rgba(5,18,13,.68) 100%)!important}
.directory-card.tile-family{background:linear-gradient(160deg,#79a487,#4b7a61)!important}
.directory-card.tile-family:before{background:radial-gradient(circle at 70% 20%,rgba(255,244,214,.28),transparent 60%)!important}
.directory-card.tile-sadaqa{background:radial-gradient(circle at 50% 38%,#6f9c80,#467459 60%,#2f5b45)!important}
.directory-card .tile-copy strong{text-shadow:0 1px 3px rgba(5,18,13,.55),0 1px 12px rgba(5,18,13,.6)}
/* Larger labels and descriptions (they were 7px and 10px). */
.directory-card .tile-copy small{font-size:11px!important;letter-spacing:.06em!important;opacity:1!important}
.directory-card .tile-copy>span{font-size:12.5px!important;line-height:1.35!important;opacity:1!important}
/* «Садака» with «пожертвования» in small type under it, on every screen size. */
.directory-card .tile-copy .tile-sub{display:block;font:italic 400 13px/1.2 Georgia,serif;opacity:.95;margin-top:2px;text-shadow:0 1px 6px rgba(5,18,13,.7)}
@media(max-width:720px){
.directory-card .tile-copy strong,.directory-card.tile-school .tile-copy strong,.directory-card.tile-charity .tile-copy strong,.directory-card.tile-sadaqa .tile-copy strong,.mobile-edition .directory-card.tile-charity .tile-copy strong,.mobile-edition .directory-card.tile-sadaqa .tile-copy strong{font-size:clamp(10.5px,3.3vw,17px)!important}
.directory-card .tile-copy .tile-sub{font-size:clamp(8px,2.3vw,12px);margin-top:1px}
}
.directory-card .tile-copy small,.directory-card .tile-copy>span{text-shadow:0 1px 2px rgba(5,18,13,.8),0 0 10px rgba(5,18,13,.6)}
/* «пожертвования» under the title already says what the tile is, so the kicker above it is dropped. */
.directory-card.tile-sadaqa .tile-copy small{display:none!important}
/* Only the title on every tile (plus «пожертвования» under «Садака»): the kicker and description lines are hidden on all screens. */
.directory-card .tile-copy small,.directory-card .tile-copy>span{display:none!important}
/* «пожертвования»: spaced gold capitals, set apart from the serif title. */
.directory-card .tile-copy .tile-sub{font:600 10px/1.3 "Trebuchet MS","Segoe UI",Arial,sans-serif!important;text-transform:uppercase;letter-spacing:.22em;color:#f3d58c;margin-top:5px;padding-top:4px;border-top:1px solid rgba(243,213,140,.45);display:inline-block;text-shadow:0 1px 3px rgba(5,18,13,.75)}
@media(max-width:720px){.directory-card .tile-copy .tile-sub{font-size:clamp(7.5px,2.2vw,9.5px)!important;letter-spacing:0;max-width:100%;margin-top:2px;padding-top:2px}}
/* School and halal get the same top-left badge as the other tiles. */
.directory-card.tile-school .tile-icon,.directory-card.tile-halal .tile-icon{display:grid!important;transform:none!important}
.directory-card.tile-school .tile-icon,.directory-card.tile-halal .tile-icon{background:rgba(10,30,22,.35)!important;backdrop-filter:blur(3px);-webkit-backdrop-filter:blur(3px)}
/* Charity's badge had no border and a tilt, so it came out larger and offset; it now matches the others. */
.directory-card.tile-charity .tile-icon{border:1px solid #fff7dd77!important;transform:none!important}
@media(min-width:721px){.directory-card.tile-charity .tile-icon{width:40px!important;height:43px!important;top:18px!important;left:18px!important}}
/* Phones: slightly taller tiles, so two- and three-line titles sit under the picture instead of over it. The sheikh's
   photo is lifted so his face stays above the title, and the long titles break only between words. */
@media(max-width:720px){
.directory-card,.directory-card.tile-school,.directory-card.tile-charity,.mobile-edition .directory-card,.mobile-edition .directory-card.tile-school,.mobile-edition .directory-card.tile-charity{aspect-ratio:4/5!important}
.directory-card.tile-school:before{background-size:118% auto!important;background-position:50% 0!important}
.directory-card.tile-school:after{background:linear-gradient(180deg,rgba(5,18,13,0) 45%,rgba(5,18,13,.55) 70%,rgba(5,18,13,.9) 100%)!important}
.directory-card .tile-copy{bottom:5px!important}
.directory-card .tile-copy strong,.directory-card.tile-school .tile-copy strong,.directory-card.tile-charity .tile-copy strong,.directory-card.tile-sadaqa .tile-copy strong,.mobile-edition .directory-card.tile-charity .tile-copy strong,.mobile-edition .directory-card.tile-sadaqa .tile-copy strong{line-height:1.05!important}
}
@media(max-width:400px){
.directory-card .tile-copy strong,.directory-card.tile-school .tile-copy strong,.directory-card.tile-charity .tile-copy strong,.directory-card.tile-sadaqa .tile-copy strong,.mobile-edition .directory-card.tile-charity .tile-copy strong,.mobile-edition .directory-card.tile-sadaqa .tile-copy strong{font-size:clamp(9.5px,3.05vw,12.5px)!important}
}
@media(max-width:400px){
.directory-card .tile-copy{left:3px!important;right:3px!important}
.directory-card .tile-copy .tile-sub{font-size:clamp(7px,2.15vw,9px)!important;border-top:0;padding-top:0}
.directory-card.tile-school .tile-copy strong{letter-spacing:-.02em!important}
}
/* No corner badges on any tile: the picture and the title are enough. */
.directory-card .tile-icon,.mobile-edition .directory-card .tile-icon,.directory-card.tile-school .tile-icon,.directory-card.tile-halal .tile-icon,.directory-card.tile-charity .tile-icon{display:none!important}
/* The header button now reads just «Войти»: a little wider so the short word does not look cramped. */
@media(min-width:721px){.header .btn[data-action=account]{min-width:84px;justify-content:center;text-align:center}}

/* School quiz: a centred card on computers, a bottom sheet on phones. */
html.quiz-open{overflow:hidden}
.quiz-overlay{position:fixed;inset:0;z-index:1000;display:grid;place-items:center;padding:16px;background:rgba(10,28,20,.55);-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);animation:quiz-fade .2s ease}
.quiz-card{position:relative;width:min(520px,100%);max-height:calc(100dvh - 32px);overflow:auto;padding:26px 24px 20px;border-radius:22px;background:#fffdf7;color:#24412f;box-shadow:0 30px 60px -20px rgba(10,30,20,.5);animation:quiz-up .28s cubic-bezier(.2,.7,.2,1)}
.quiz-close{position:absolute;top:10px;right:12px;width:36px;height:36px;border:0;border-radius:50%;background:transparent;color:#6e7d62;font-size:26px;line-height:1;cursor:pointer}
.quiz-close:hover{background:#eef2e8}
.quiz-kicker{margin:0 0 10px;font:600 11px/1 Arial,sans-serif;letter-spacing:.16em;text-transform:uppercase;color:#a07d2c}
.quiz-dots{display:flex;gap:6px;margin-bottom:14px}
.quiz-dots i{width:26px;height:4px;border-radius:4px;background:#e2e7da}
.quiz-dots i.on{background:#164d3e}
.quiz-card h2{margin:0 0 6px;font:400 25px/1.2 Georgia,serif;color:#164d3e;outline:0}
.quiz-lead{margin:0 0 14px;font-size:15px;line-height:1.5;color:#4b5d48}
.quiz-lead b{color:#24412f}
.quiz-options{display:grid;gap:9px;margin-bottom:18px}
.quiz-option{position:relative;display:flex;align-items:center;gap:13px;padding:13px 14px;border:1.5px solid #dce3d4;border-radius:15px;background:#fff;cursor:pointer;transition:border-color .15s,background .15s}
.quiz-option:hover{border-color:#9db79f}
.quiz-option input{position:absolute;opacity:0;pointer-events:none}
.quiz-mark{flex:none;width:22px;height:22px;border:2px solid #9aab92;border-radius:7px;display:grid;place-items:center;box-sizing:border-box;transition:all .15s}
.quiz-option input[type=radio]+.quiz-mark{border-radius:50%}
.quiz-option input:checked+.quiz-mark{background:#164d3e;border-color:#164d3e}
.quiz-option input:checked+.quiz-mark:after{content:'';width:6px;height:11px;border:solid #fff;border-width:0 2.5px 2.5px 0;transform:translateY(-1px) rotate(45deg)}
.quiz-option input[type=radio]:checked+.quiz-mark:after{width:8px;height:8px;border:0;border-radius:50%;background:#fff;transform:none}
.quiz-option:has(input:checked){border-color:#164d3e;background:#f1f6ee}
.quiz-option input:focus-visible+.quiz-mark{outline:2px solid #164d3e;outline-offset:3px}
.quiz-text{display:grid;gap:2px}
.quiz-text b{font:600 16px/1.25 Arial,sans-serif;color:#24412f}
.quiz-text small{font-size:13px;line-height:1.35;color:#6e7d62}
.quiz-actions{display:flex;gap:10px;justify-content:flex-end;align-items:center}
.quiz-next,.quiz-back{min-height:46px;padding:0 22px;border-radius:14px;font:600 15px Arial,sans-serif;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;text-align:center;text-decoration:none;box-sizing:border-box}
.quiz-next{flex:1;border:0;background:#164d3e;color:#fffdf2}
.quiz-next:disabled{background:#c9d3c3;color:#f6f7f1;cursor:default}
.quiz-back{border:1.5px solid #dce3d4;background:#fff;color:#24412f}
.quiz-go{background:linear-gradient(135deg,#1d6b54,#164d3e);color:#fffdf2}
.quiz-skip{display:block;margin-top:14px;text-align:center;font-size:13.5px;color:#4b6b55}
@keyframes quiz-fade{from{opacity:0}}
@keyframes quiz-up{from{opacity:0;transform:translateY(24px) scale(.98)}}
@media(max-width:600px){
.quiz-overlay{place-items:end stretch;padding:0}
.quiz-card{width:100%;max-height:92dvh;border-radius:22px 22px 0 0;padding:22px 16px calc(18px + env(safe-area-inset-bottom))}
.quiz-card h2{font-size:22px}
}
@media(prefers-reduced-motion:reduce){.quiz-overlay,.quiz-card{animation:none}}

/* ===== Садака: анимация кнопки (24.11) — в такт монете на рисунке (цикл 4 с, купюры входят в ящик на 50%) ===== */
.sadaqa-action{animation:sadaqa-breathe 4s ease-in-out infinite,sadaqa-shimmer 7s ease infinite}
@keyframes sadaqa-breathe{0%,44%{box-shadow:0 14px 34px -14px rgba(22,69,51,.55),0 0 0 0 rgba(214,173,91,0)}
 52%{box-shadow:0 18px 42px -12px rgba(22,69,51,.6),0 0 0 6px rgba(214,173,91,.22),0 0 34px rgba(243,213,139,.35)}
 100%{box-shadow:0 14px 34px -14px rgba(22,69,51,.55),0 0 0 14px rgba(214,173,91,0)}}
.sadaqa-action:hover:before,.sadaqa-action:focus-visible:before{animation-duration:2.2s}
.sadaqa-action .sadaqa-hand{position:relative;z-index:1}
.sadaqa-action .sadaqa-hand:after{content:'';position:absolute;left:50%;top:58%;width:120%;height:70%;transform:translate(-50%,-50%) scale(.7);border-radius:50%;z-index:-1;pointer-events:none;
 background:radial-gradient(closest-side,rgba(243,213,139,.45),rgba(243,213,139,0));opacity:0;animation:sadaqa-halo 4s ease-out infinite}
@keyframes sadaqa-halo{0%,46%{opacity:0;transform:translate(-50%,-50%) scale(.7)}54%{opacity:1}100%{opacity:0;transform:translate(-50%,-50%) scale(1.15)}}
.sadaqa-action strong,.sadaqa-action small{position:relative;z-index:1}
.sadaqa-heart{display:inline-block;color:#f3d58b;transform-origin:50% 60%;animation:sadaqa-beat 4s ease-in-out infinite}
@keyframes sadaqa-beat{0%,47%,100%{transform:scale(1)}52%{transform:scale(1.32)}58%{transform:scale(.94)}64%{transform:scale(1.12)}72%{transform:scale(1)}}
.sadaqa-mote{position:absolute;bottom:-6px;width:5px;height:5px;border-radius:50%;pointer-events:none;z-index:0;
 background:radial-gradient(circle,#fff4cb,#e8c774 60%,rgba(232,199,116,0));opacity:0;animation:sadaqa-rise linear infinite}
@keyframes sadaqa-rise{0%{opacity:0;transform:translate(0,0) scale(.6)}15%{opacity:.9}70%{opacity:.6}100%{opacity:0;transform:translate(var(--dx,8px),-190px) scale(1.1)}}
.sadaqa-burst{position:absolute;width:7px;height:7px;margin:-3.5px 0 0 -3.5px;border-radius:50%;pointer-events:none;z-index:3;background:radial-gradient(circle,#fffbe6,#f0cf7c 55%,#c99a45)}
.sadaqa-ring{position:absolute;width:12px;height:12px;margin:-6px 0 0 -6px;border-radius:50%;pointer-events:none;z-index:3;border:2px solid rgba(243,213,139,.9)}
@media (prefers-reduced-motion:reduce){.sadaqa-action .sadaqa-hand:after,.sadaqa-heart,.sadaqa-mote{animation:none!important;opacity:0}}
.sadaqa-action .sadaqa-hand{width:180px;height:180px;margin-bottom:0}
@media(max-width:720px){.sadaqa-action .sadaqa-hand{width:160px;height:160px}}

/* ===== Шапка: «Войти» — главная кнопка (крупнее «RU»), язык и тема — скромнее (25.11, отзыв учеников) ===== */
header .actions .btn[data-action="account"]{display:inline-flex;align-items:center;gap:6px;min-height:44px;padding:0 18px!important;border-radius:14px;
 font:700 15px/1 'Golos Text',Arial,sans-serif!important;letter-spacing:0;box-shadow:0 6px 14px -8px rgba(22,77,62,.6)}
header .actions .btn[data-action="account"]::before{content:'';width:18px;height:18px;flex:none;background:currentColor;
 -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21a8 8 0 0 1 16 0'/%3E%3C/svg%3E") center/contain no-repeat;
 mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21a8 8 0 0 1 16 0'/%3E%3C/svg%3E") center/contain no-repeat}
header .actions .language-menu summary{min-height:34px;padding:4px 8px;font-size:12px}
header .actions #site-theme-toggle{min-width:34px;min-height:34px}
@media (max-width:420px){header .actions .btn[data-action="account"]{padding:0 14px!important;font-size:14px!important}}

/* ===== Подвал (30.11, v2): как карточки личного кабинета — светлая карточка с тонкой рамкой, без цветной заливки ===== */
body footer.footer{--fb:#fffdf8;--fl:#e4e0d3;--fi:#203f32;--fm:#6f7d72;--fg:#164d3e;
  position:relative;margin-top:48px!important;padding:0 0 24px!important;color:var(--fm);background:transparent!important;border:0!important;border-radius:0;box-shadow:none}
html[data-theme=dark] body footer.footer{--fb:#16231c;--fl:#2a3b31;--fi:#e6eee8;--fm:#9fb1a5;--fg:#7fc4a2}
body footer.footer>.wrap:first-child{background:var(--fb);border:1px solid var(--fl);border-radius:20px;box-shadow:0 4px 14px rgba(13,51,40,.05);padding:28px 28px 0;box-sizing:border-box}
body footer.footer a{color:var(--fi);text-decoration:none}
body footer.footer .footer-service-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:32px;padding:0 0 24px;margin:0}
body footer.footer .footer-service-grid section{display:flex;flex-direction:column;align-items:flex-start;gap:8px;background:none!important;border:0!important;padding:0!important;box-shadow:none!important}
body footer.footer .footer-service-grid :is(.kicker,p){display:block!important}
body footer.footer .kicker{color:var(--fm)!important;font:600 12px/1.2 "Golos Text",Arial,sans-serif;letter-spacing:0;text-transform:none;opacity:1}
body footer.footer h2{margin:0 0 4px!important;color:var(--fi)!important;font:700 17px/1.3 "Golos Text",Arial,sans-serif!important;letter-spacing:0}
body footer.footer .footer-service-grid p{margin:0;color:var(--fm);font-size:14px;line-height:1.5;max-width:34ch}
body footer.footer .footer-service-grid a{display:inline-flex;align-items:center;min-height:28px;font-size:14px;color:var(--fi)!important;background:none!important;border:0!important;text-decoration:underline;text-decoration-color:transparent;text-underline-offset:3px;transition:text-decoration-color .2s,color .2s}
body footer.footer .footer-service-grid a:is(:hover,:focus-visible){color:var(--fg)!important;text-decoration-color:currentColor}
/* нижняя строка внутри карточки */
body footer.footer .footer-base{display:flex;flex-wrap:wrap;align-items:center;gap:8px 18px;padding:16px 0;margin:0;border-top:1px solid var(--fl);font-size:13px;color:var(--fm);background:none!important}
body footer.footer .footer-base strong{order:-1;margin-inline-end:auto;display:inline-flex;align-items:center;gap:10px;color:var(--fi);font:700 15px/1 "Golos Text",Arial,sans-serif}
body footer.footer .footer-base strong::before{content:'';width:28px;height:28px;border-radius:8px;background:url('/static/assets/centre-logo-160.webp') center/cover no-repeat;border:1px solid var(--fl)}
body footer.footer .footer-base>span{order:1}
body footer.footer .legal-links{order:2;display:flex;flex-wrap:wrap;gap:4px 14px}
body footer.footer .legal-links a,body footer.footer .footer-base>a{color:var(--fm)!important;background:none!important;border:0!important;padding:0!important;font-size:13px}
body footer.footer .legal-links a:hover,body footer.footer .footer-base>a:hover{color:var(--fi)!important}
body footer.footer .footer-base>a{order:3}
/* «Хочу такой сайт» — тихая строка под карточкой */
body footer.footer .footer-credit{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px 20px;padding:16px 4px 0;margin-top:0;border:0;background:none!important}
body footer.footer .footer-credit div{display:grid;gap:2px}
body footer.footer .footer-credit strong{color:var(--fi);font:600 14px/1.4 "Golos Text",Arial,sans-serif}
body footer.footer .footer-credit span{color:var(--fm);font-size:13px}
body footer.footer .website-order-button{padding:9px 16px;border-radius:12px;border:1px solid var(--fl)!important;background:var(--fb)!important;color:var(--fi)!important;font:600 13px/1 "Golos Text",Arial,sans-serif;transition:border-color .2s,color .2s}
body footer.footer .website-order-button:hover{border-color:var(--fg)!important;color:var(--fg)!important}
@media (max-width:860px){
  body footer.footer>.wrap:first-child{padding:22px 18px 0}
  body footer.footer .footer-service-grid{grid-template-columns:1fr;gap:22px}
  body footer.footer .footer-base strong{flex-basis:100%}
}
@media (max-width:720px){body footer.footer{padding-bottom:calc(96px + env(safe-area-inset-bottom))!important}}

/* ===== Плавная смена темы (30.11): новая тема растекается кругом от нажатой кнопки; где браузер не умеет — цвета перетекают ===== */
html.site-vt-theme::view-transition-group(root){animation:none}
html.site-vt-theme::view-transition-old(root),html.site-vt-theme::view-transition-new(root){animation:none;mix-blend-mode:normal}
html.site-vt-theme::view-transition-new(root){animation:site-reveal .55s cubic-bezier(.4,0,.2,1) both}
html.site-vt-theme *{view-transition-name:none!important}
html.theme-fade,html.theme-fade *,html.theme-fade *::before,html.theme-fade *::after{transition:background-color .45s ease,color .45s ease,border-color .45s ease,fill .45s ease,box-shadow .45s ease!important}
#site-theme-toggle .theme-symbol{display:inline-block;transition:transform .55s cubic-bezier(.4,0,.2,1)}
html[data-theme=dark] #site-theme-toggle .theme-symbol{transform:rotate(360deg)}
@media (prefers-reduced-motion:reduce){#site-theme-toggle .theme-symbol{transition:none}}

/* ===== «Хочу такой сайт» — мягко мигает золотым (30.11) ===== */
@keyframes order-pulse{0%,100%{box-shadow:0 0 0 0 rgba(22,77,62,.28)}50%{box-shadow:0 0 0 7px rgba(22,77,62,0)}}
body footer.footer .website-order-button{animation:order-pulse 2.6s ease-in-out infinite}
body footer.footer .website-order-button:hover{animation-play-state:paused}

/* ===== Карточка автора сайта при первом заходе (30.11) ===== */
.dev-card{position:fixed;z-index:60;inset-inline-start:18px;bottom:18px;width:min(360px,calc(100vw - 36px));display:grid;grid-template-columns:56px 1fr;gap:12px 14px;align-items:center;
  padding:16px 16px 14px;border-radius:20px;background:#fffdf8;color:#203f32;border:1px solid #e4e0d3;box-shadow:0 22px 48px -18px rgba(13,51,40,.45);
  font-family:"Golos Text","Noto Naskh Arabic",Arial,sans-serif;opacity:0;transform:translateY(16px);transition:opacity .35s ease,transform .35s cubic-bezier(.2,.8,.2,1)}
.dev-card.show{opacity:1;transform:none}
html[data-theme=dark] .dev-card{background:#16231c;color:#e6eee8;border-color:#2a3b31}
.dev-avatar{width:56px;height:56px;border-radius:50%;display:grid;place-items:center;font:750 22px/1 "Golos Text",Arial,sans-serif;color:#fff;text-decoration:none;
  background:url('/static/assets/developer.webp?v=1') center/cover no-repeat,linear-gradient(135deg,#1f6a52,#0d3328);box-shadow:0 0 0 1px #e4e0d3;
  color:transparent;overflow:hidden}   /* фото есть — буква «D» под ним не видна */
.dev-card .dev-text{min-width:0}
.dev-card .dev-text small{display:block;font-size:12px;color:#6f7d72}
.dev-card .dev-text strong{display:block;font-size:16px;font-weight:750;line-height:1.25}
.dev-card .dev-text span{display:block;font-size:13px;opacity:.75;margin-top:2px}
.dev-card .dev-actions{grid-column:1/-1;display:flex;gap:8px}
.dev-card .dev-actions a{flex:1;display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:8px 12px;border-radius:12px;font-weight:700;font-size:13px;text-decoration:none}
.dev-card .dev-about{background:#164d3e;color:#fff}
.dev-card .dev-tg{background:transparent;color:inherit;border:1px solid #d9d3c2}
html[data-theme=dark] .dev-card .dev-tg{border-color:#2a3b31}
html[data-theme=dark] .dev-card .dev-text small{color:#9fb1a5}
html[data-theme=dark] .dev-card .dev-about{background:#2f6e57}
.dev-card .dev-close{position:absolute;top:8px;inset-inline-end:8px;width:32px;height:32px;border:0;border-radius:50%;background:transparent;color:inherit;opacity:.6;font-size:20px;line-height:1;cursor:pointer}
.dev-card .dev-close:hover{opacity:1;background:rgba(0,0,0,.06)}
@media (max-width:720px){.dev-card{bottom:calc(92px + env(safe-area-inset-bottom))}}
@media (prefers-reduced-motion:reduce){body footer.footer .website-order-button{animation:none}.dev-card{transition:none}}

/* ===== Страница «Об авторе сайта» (30.11, v3): мягкий полупрозрачный зелёный, чёткий текст, живые частицы вокруг фото ===== */
.dev-page{position:relative;display:grid;grid-template-columns:auto 1fr;gap:28px;align-items:center;margin:8px 0 18px;padding:26px 28px;border-radius:22px;color:#18392c;overflow:hidden;
  background:linear-gradient(135deg,rgba(22,77,62,.13),rgba(22,77,62,.05) 60%,rgba(201,154,75,.08)),#fffdf8;border:1px solid rgba(22,77,62,.16);box-shadow:0 4px 14px rgba(13,51,40,.05)}
html[data-theme=dark] .dev-page{color:#eef4ef;background:linear-gradient(135deg,rgba(95,191,149,.14),rgba(95,191,149,.05) 60%,rgba(201,154,75,.07)),#16231c;border-color:rgba(95,191,149,.2)}
.dev-page h2{margin:0 0 6px;color:inherit;font:700 clamp(22px,2.6vw,28px)/1.2 "Golos Text",Arial,sans-serif}
.dev-page p{margin:0;color:inherit;opacity:.85;max-width:62ch;line-height:1.55}
.dev-page .dev-links{display:flex;flex-wrap:wrap;gap:10px;margin-top:16px}
.dev-page .dev-links a{display:inline-flex;align-items:center;min-height:44px;padding:10px 18px;border-radius:12px;font-weight:700;font-size:14px;text-decoration:none}
.dev-page .dev-links .primary{background:#164d3e;color:#fff}
.dev-page .dev-links .ghost{border:1px solid rgba(22,77,62,.25);color:inherit;background:rgba(255,255,255,.5)}
html[data-theme=dark] .dev-page .dev-links .primary{background:#2f6e57}
html[data-theme=dark] .dev-page .dev-links .ghost{border-color:rgba(255,255,255,.2);background:rgba(255,255,255,.04)}
/* фото с частицами: две «орбиты» мелких светящихся точек медленно вращаются вокруг */
.dev-page .dev-photo{position:relative;width:132px;height:132px;flex:none}
.dev-page .dev-avatar{position:relative;z-index:1;width:132px;height:132px;font-size:40px;box-shadow:0 0 0 4px rgba(255,255,255,.7),0 10px 26px -8px rgba(13,51,40,.35)}
.dev-page .dev-photo::before,.dev-page .dev-photo::after{content:'';position:absolute;left:50%;top:50%;width:4px;height:4px;border-radius:50%;pointer-events:none;
  background:transparent;animation:dev-orbit 14s linear infinite}   /* центр орбиты невидим — видны только частицы вокруг (раньше точка была на фото) */
.dev-page .dev-photo::before{box-shadow:58px -60px 0 0 rgba(22,77,62,.55),-74px -20px 0 1px rgba(201,154,75,.7),-40px 70px 0 0 rgba(22,77,62,.45),78px 34px 0 1px rgba(201,154,75,.55),8px -86px 0 0 rgba(22,77,62,.35),-86px 40px 0 0 rgba(201,154,75,.45)}
.dev-page .dev-photo::after{width:3px;height:3px;animation-duration:22s;animation-direction:reverse;
  box-shadow:84px -10px 0 0 rgba(22,77,62,.4),-60px -64px 0 1px rgba(201,154,75,.5),30px 82px 0 0 rgba(201,154,75,.6),-88px -6px 0 0 rgba(22,77,62,.35),62px 62px 0 0 rgba(22,77,62,.45)}
html[data-theme=dark] .dev-page .dev-photo::before,html[data-theme=dark] .dev-page .dev-photo::after{filter:brightness(1.6)}
@keyframes dev-orbit{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}
@media (prefers-reduced-motion:reduce){.dev-page .dev-photo::before,.dev-page .dev-photo::after{animation:none}}
.dev-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:14px;margin-bottom:30px}
.dev-grid section{padding:20px;border-radius:20px;background:#fffdf8;border:1px solid #e4e0d3;box-shadow:0 4px 14px rgba(13,51,40,.05)}
html[data-theme=dark] .dev-grid section{background:#16231c;border-color:#2a3b31;color:#e6eee8}
.dev-grid h3{margin:0 0 6px;font:750 17px/1.3 "Golos Text",Arial,sans-serif}
.dev-grid p{margin:0;font-size:14px;opacity:.8}
@media (max-width:640px){.dev-page{grid-template-columns:1fr;text-align:center;justify-items:center}.dev-page .dev-links{justify-content:center}}

/* ===== Карточка автора: пульсация (30.11) — от фото расходятся мягкие волны, карточка «дышит», по кнопке пробегает блик ===== */
@keyframes dev-ring{0%{box-shadow:0 0 0 1px #e4e0d3,0 0 0 0 rgba(22,77,62,.45),0 0 0 0 rgba(201,154,75,.35)}
  60%{box-shadow:0 0 0 1px #e4e0d3,0 0 0 10px rgba(22,77,62,0),0 0 0 18px rgba(201,154,75,0)}100%{box-shadow:0 0 0 1px #e4e0d3,0 0 0 0 rgba(22,77,62,0),0 0 0 0 rgba(201,154,75,0)}}
@keyframes dev-breathe{0%,100%{box-shadow:0 22px 48px -18px rgba(13,51,40,.45),0 0 0 0 rgba(22,77,62,0)}50%{box-shadow:0 26px 56px -18px rgba(13,51,40,.5),0 0 0 6px rgba(22,77,62,.07)}}
@keyframes dev-sheen{0%,65%{transform:translateX(-120%) skewX(-18deg)}100%{transform:translateX(260%) skewX(-18deg)}}
.dev-card.show{animation:dev-breathe 3.2s ease-in-out .4s infinite}
.dev-card .dev-avatar{animation:dev-ring 2.4s ease-out .6s infinite}
.dev-card .dev-about{position:relative;overflow:hidden}
.dev-card .dev-about::after{content:'';position:absolute;top:0;bottom:0;left:0;width:40%;background:linear-gradient(90deg,transparent,rgba(255,255,255,.35),transparent);animation:dev-sheen 3.6s ease-in-out 1s infinite;pointer-events:none}
@media (prefers-reduced-motion:reduce){.dev-card.show,.dev-card .dev-avatar,.dev-card .dev-about::after{animation:none}}

/* ===== «Мои работы» (30.11): кейс, услуги, шаги, для кого, призыв — карточки как в кабинете ===== */
.dev-block{margin:0 0 26px}
.dev-kicker{display:inline-block;margin-bottom:6px;padding:4px 10px;border-radius:999px;font:600 12px/1.2 "Golos Text",Arial,sans-serif;color:#164d3e;background:rgba(22,77,62,.08)}
html[data-theme=dark] .dev-kicker{color:#9fd8bd;background:rgba(95,191,149,.12)}
.dev-block>h3{margin:0 0 10px;font:700 clamp(20px,2.2vw,26px)/1.25 "Golos Text",Arial,sans-serif}
.dev-lead{margin:0 0 16px;max-width:72ch;line-height:1.6;opacity:.9}
.dev-facts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:14px}
.dev-facts div{padding:16px;border-radius:18px;background:#fffdf8;border:1px solid #e4e0d3}
html[data-theme=dark] .dev-facts div{background:#16231c;border-color:#2a3b31}
.dev-facts b{display:block;font:750 30px/1 "Golos Text",Arial,sans-serif;color:#164d3e;margin-bottom:6px}
html[data-theme=dark] .dev-facts b{color:#9fd8bd}
.dev-facts span{font-size:13px;line-height:1.4;opacity:.8}
.dev-steps{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;counter-reset:step}
.dev-steps li{position:relative;padding:16px;border-radius:18px;background:#fffdf8;border:1px solid #e4e0d3;counter-increment:step}
html[data-theme=dark] .dev-steps li{background:#16231c;border-color:#2a3b31}
.dev-steps li::before{content:counter(step);display:grid;place-items:center;width:28px;height:28px;margin-bottom:10px;border-radius:50%;background:#164d3e;color:#fff;font:700 13px/1 "Golos Text",Arial,sans-serif}
.dev-steps b{display:block;margin-bottom:4px;font:700 15px/1.3 "Golos Text",Arial,sans-serif}
.dev-steps span{font-size:13px;line-height:1.45;opacity:.8}
.dev-tags{display:flex;flex-wrap:wrap;gap:8px}
.dev-tags span{padding:9px 14px;border-radius:999px;background:#fffdf8;border:1px solid #e4e0d3;font-size:14px}
html[data-theme=dark] .dev-tags span{background:#16231c;border-color:#2a3b31}
.dev-cta{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:16px;margin:0 0 30px;padding:22px 24px;border-radius:20px;
  background:linear-gradient(135deg,rgba(22,77,62,.12),rgba(22,77,62,.04)),#fffdf8;border:1px solid rgba(22,77,62,.16)}
html[data-theme=dark] .dev-cta{background:linear-gradient(135deg,rgba(95,191,149,.14),rgba(95,191,149,.04)),#16231c;border-color:rgba(95,191,149,.2)}
.dev-cta h3{margin:0 0 4px;font:700 20px/1.3 "Golos Text",Arial,sans-serif}
.dev-cta p{margin:0;opacity:.85}
.dev-cta .primary{display:inline-flex;align-items:center;min-height:46px;padding:10px 20px;border-radius:12px;background:#164d3e;color:#fff;font-weight:700;text-decoration:none}
html[data-theme=dark] .dev-cta .primary{background:#2f6e57}
@media (max-width:980px){.dev-steps{grid-template-columns:repeat(2,minmax(0,1fr))}.dev-facts{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:560px){.dev-steps,.dev-facts{grid-template-columns:1fr}}
.dev-grid.dev-grid-3{grid-template-columns:repeat(3,minmax(0,1fr))}
@media (max-width:900px){.dev-grid.dev-grid-3{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:560px){.dev-grid.dev-grid-3{grid-template-columns:1fr}}

/* ===== «Мои работы» v3 (01.12): проекты системы «Аль-Фауз» отдельными карточками, без украшательств ===== */
.dev-page .dev-meta{margin:0 0 8px;font-size:14px;opacity:.7}
.dev-projects{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.dev-proj{display:flex;flex-direction:column;gap:8px;padding:20px;border-radius:20px;background:#fffdf8;border:1px solid #e4e0d3;box-shadow:0 4px 14px rgba(13,51,40,.05)}
html[data-theme=dark] .dev-proj{background:#16231c;border-color:#2a3b31;color:#e6eee8}
.dev-tag{align-self:flex-start;padding:3px 10px;border-radius:999px;font:600 12px/1.4 "Golos Text",Arial,sans-serif;color:#164d3e;background:rgba(22,77,62,.08)}
html[data-theme=dark] .dev-tag{color:#9fd8bd;background:rgba(95,191,149,.12)}
.dev-proj h4{margin:0;font:700 17px/1.3 "Golos Text",Arial,sans-serif}
.dev-proj p{margin:0;font-size:14px;line-height:1.5;opacity:.85}
.dev-proj .dev-for{margin-top:auto;padding-top:10px;border-top:1px solid #e4e0d3;opacity:1}
html[data-theme=dark] .dev-proj .dev-for{border-color:#2a3b31}
@media (max-width:900px){.dev-projects{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:560px){.dev-projects{grid-template-columns:1fr}}

/* ===== Фото на «Мои работы» (01.12): вращающееся градиентное кольцо со свечением + частицы (свой CSS, без библиотек) ===== */
@property --dev-a{syntax:'<angle>';inherits:false;initial-value:0deg}
@keyframes dev-spin{to{--dev-a:360deg}}
@keyframes dev-glow{0%,100%{box-shadow:0 0 18px 2px rgba(22,77,62,.28),0 0 42px 6px rgba(201,154,75,.14)}50%{box-shadow:0 0 26px 4px rgba(201,154,75,.32),0 0 56px 10px rgba(22,77,62,.16)}}
@keyframes dev-float{0%,100%{transform:translateY(0)}50%{transform:translateY(-6px)}}
.dev-page .dev-photo{width:150px;height:150px;padding:7px;border-radius:50%;box-sizing:border-box;
  background:conic-gradient(from var(--dev-a),#164d3e,#5fbf95,#c99a4b,#f3d79a,#c99a4b,#5fbf95,#164d3e);
  animation:dev-spin 5s linear infinite,dev-glow 4s ease-in-out infinite,dev-float 6s ease-in-out infinite}
.dev-page .dev-photo .dev-avatar{width:136px;height:136px;box-shadow:0 0 0 3px #fffdf8!important;animation:none}
html[data-theme=dark] .dev-page .dev-photo .dev-avatar{box-shadow:0 0 0 3px #16231c!important}
/* частицы теперь вращаются вокруг кольца, а не стоят в нём */
.dev-page .dev-photo::before,.dev-page .dev-photo::after{z-index:2}
@media (prefers-reduced-motion:reduce){.dev-page .dev-photo{animation:none}}
.dev-proj.dev-proj-wide{max-width:none}
/* Карточка автора: крупная кнопка «Закрыть» и ярлычок у края экрана (05.12) */
.dev-card[hidden]{display:none}
.dev-card .dev-close-big{grid-column:1/-1;display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:48px;width:100%;border:2px solid #164d3e;border-radius:12px;background:#fff;color:#123a2f;font:700 17px/1.2 'Golos Text',Arial,sans-serif;cursor:pointer}
.dev-card .dev-close-big span{font-size:20px;line-height:1}
.dev-card .dev-close-big:hover{background:#164d3e;color:#fff}
.dev-card .dev-close-big:focus-visible{outline:3px solid #c99a4b;outline-offset:2px}
html[data-theme=dark] .dev-card .dev-close-big{background:transparent;color:#fff;border-color:#9fd3bb}
html[data-theme=dark] .dev-card .dev-close-big:hover{background:#2f6e57}
.dev-tab{position:fixed;z-index:59;inset-inline-start:0;top:58%;display:flex;flex-direction:column;align-items:center;gap:5px;padding:7px 4px 8px;border:1px solid rgba(201,154,75,.55);border-inline-start:0;border-radius:0 10px 10px 0;background:#164d3e;color:#fff;box-shadow:0 8px 20px -8px rgba(13,51,40,.5);cursor:pointer;transform:translateX(-110%);transition:transform .35s cubic-bezier(.2,.8,.2,1)}
.dev-tab.show{transform:none}
.dev-tab:hover{background:#0d3328}
.dev-tab:focus-visible{outline:3px solid #c99a4b;outline-offset:2px}
.dev-tab-dot{display:grid;place-items:center;width:18px;height:18px;border-radius:50%;background:#c99a4b;color:#1d1606;font:800 10px/1 'Golos Text',Arial,sans-serif}
.dev-tab-text{writing-mode:vertical-rl;transform:rotate(180deg);font:700 11px/1 'Golos Text',Arial,sans-serif;letter-spacing:.03em}
[dir=rtl] .dev-tab{border-radius:10px 0 0 10px}
@media (prefers-reduced-motion:reduce){.dev-tab{transition:none}}
