/* «Гүлім-2021» — альбом для рисования: бумага в точку, цветные карандаши, толстые контуры и «картонные» тени.
   Шрифты свои (Pangolin, Caveat, Nunito), без внешних зависимостей. */

@font-face { font-family: "Pangolin"; font-weight: 400; font-display: swap; src: url("../assets/fonts/pangolin-cyrillic-ext.woff2") format("woff2"); unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: "Pangolin"; font-weight: 400; font-display: swap; src: url("../assets/fonts/pangolin-cyrillic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Pangolin"; font-weight: 400; font-display: swap; src: url("../assets/fonts/pangolin-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Caveat"; font-weight: 700; font-display: swap; src: url("../assets/fonts/caveat-cyrillic-ext.woff2") format("woff2"); unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: "Caveat"; font-weight: 700; font-display: swap; src: url("../assets/fonts/caveat-cyrillic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Caveat"; font-weight: 700; font-display: swap; src: url("../assets/fonts/caveat-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Nunito"; font-weight: 400; font-display: swap; src: url("../assets/fonts/nunito-cyrillic-ext-400.woff2") format("woff2"); unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: "Nunito"; font-weight: 700; font-display: swap; src: url("../assets/fonts/nunito-cyrillic-ext-700.woff2") format("woff2"); unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: "Nunito"; font-weight: 800; font-display: swap; src: url("../assets/fonts/nunito-cyrillic-ext-800.woff2") format("woff2"); unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: "Nunito"; font-weight: 400; font-display: swap; src: url("../assets/fonts/nunito-cyrillic-400.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Nunito"; font-weight: 700; font-display: swap; src: url("../assets/fonts/nunito-cyrillic-700.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Nunito"; font-weight: 800; font-display: swap; src: url("../assets/fonts/nunito-cyrillic-800.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Nunito"; font-weight: 400; font-display: swap; src: url("../assets/fonts/nunito-latin-400.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122, U+FEFF, U+FFFD; }
@font-face { font-family: "Nunito"; font-weight: 700; font-display: swap; src: url("../assets/fonts/nunito-latin-700.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122, U+FEFF, U+FFFD; }
@font-face { font-family: "Nunito"; font-weight: 800; font-display: swap; src: url("../assets/fonts/nunito-latin-800.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122, U+FEFF, U+FFFD; }

:root {
  --paper: #fffaf0; --paper-2: #fff3dc; --white: #fffefb;
  --ink: #3b2f6b; --ink-soft: #675c93;
  --pink: #ff6b8b; --orange: #ff9f1c; --yellow: #ffd23f; --green: #3ecf9a; --blue: #4aa8ff; --purple: #a678ff; --red: #ef476f;
  --pink-l: #ffd3e0; --yellow-l: #fff1a6; --blue-l: #cfe9ff; --green-l: #cdf5e3; --orange-l: #ffe0b8; --purple-l: #e6dcff;
  --stroke: 3px solid var(--ink);
  --lift: 5px 5px 0 var(--ink);
  --lift-s: 3px 3px 0 var(--ink);
  --wob: 255px 18px 225px 18px / 18px 225px 18px 255px;
  --wob2: 18px 255px 18px 225px / 225px 18px 255px 18px;
  --head: "Pangolin", "Caveat", "Comic Sans MS", "Marker Felt", cursive;
  --note: "Caveat", "Pangolin", "Comic Sans MS", cursive;
  --body: "Nunito", "Segoe UI", system-ui, sans-serif;
  --bar-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--bar-h) + 14px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--body); font-size: 1.06rem; line-height: 1.6; color: var(--ink);
  background-color: var(--paper);
  background-image: radial-gradient(rgba(59, 47, 107, .17) 1.5px, transparent 1.7px);
  background-size: 28px 28px;
  overflow-x: clip;
}
img, svg { max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--head); font-weight: 400; line-height: 1.12; color: var(--ink); }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px dashed var(--pink); outline-offset: 4px; }
::selection { background: var(--yellow); color: var(--ink); }

.ico { width: 1.2em; height: 1.2em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.wrap { width: min(1160px, 100% - 44px); margin-inline: auto; }
.skip-link { position: fixed; left: 12px; top: -70px; z-index: 80; padding: 10px 16px; border: var(--stroke); border-radius: 12px; background: #fff; font-weight: 800; }
.skip-link:focus { top: 12px; }
.muted { color: var(--ink-soft); }
a.inline { font-weight: 800; color: var(--red); text-decoration: underline wavy; text-underline-offset: 4px; }
.hp-field { position: absolute; left: -9999px; }

/* ---------- Кнопки и «стикеры» ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 0 26px; border: var(--stroke); border-radius: var(--wob); cursor: pointer; font-family: var(--head); font-size: 1.2rem; text-decoration: none; background: #fff; color: var(--ink); box-shadow: var(--lift); transition: transform .15s ease, box-shadow .15s ease, background .2s; }
.btn:hover { transform: translate(-2px, -2px) rotate(-1deg); box-shadow: 7px 7px 0 var(--ink); }
.btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.btn-main { background: var(--yellow); }
.btn-line { background: #fff; }
.btn[disabled] { opacity: .6; cursor: wait; }
.kicker { display: inline-flex; align-items: center; gap: 8px; padding: 4px 16px 6px; border: 2.5px solid var(--ink); border-radius: var(--wob); background: var(--yellow); color: var(--ink); font-family: var(--note); font-size: 1.4rem; font-weight: 700; line-height: 1.1; rotate: -2deg; box-shadow: var(--lift-s); }
.kicker .ico { width: 1em; height: 1em; }

.head { display: grid; gap: 14px; justify-items: start; margin-bottom: clamp(26px, 4vw, 44px); }
.head-center { justify-items: center; text-align: center; }
.head h2, .docs-grid h2, .about-text h2, .contact-info h2 { font-size: clamp(2.1rem, 5vw, 3.5rem); }
.head h2::after, .about-text h2::after, .docs-grid h2::after, .contact-info h2::after {
  content: ""; display: block; height: 14px; width: min(100%, 250px); margin-top: 8px; background: var(--u, var(--pink));
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 220 18' preserveAspectRatio='none'%3E%3Cpath d='M3 11C22 2 34 17 54 9S88 16 108 8 142 16 162 8 196 15 217 7' fill='none' stroke='%23000' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E") left / 100% 100% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 220 18' preserveAspectRatio='none'%3E%3Cpath d='M3 11C22 2 34 17 54 9S88 16 108 8 142 16 162 8 196 15 217 7' fill='none' stroke='%23000' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E") left / 100% 100% no-repeat;
}
.head-center h2::after { margin-inline: auto; }
#groups { --u: var(--blue); } #extras { --u: var(--green); } #gallery { --u: var(--orange); } #news { --u: var(--purple); } #docs { --u: var(--red); } #contact { --u: var(--pink); } #team { --u: var(--orange); }
.lede { max-width: 62ch; color: var(--ink-soft); font-size: 1.12rem; }
.section { position: relative; padding: clamp(56px, 8vw, 100px) 0; overflow-x: clip; }
.section::before { content: ""; position: absolute; z-index: -1; width: clamp(180px, 26vw, 340px); aspect-ratio: 1; border-radius: 50%; background: var(--b, transparent); opacity: .5; pointer-events: none; }
#about { --b: var(--yellow-l); } #about::before { right: -6%; top: 4%; }
#groups { --b: var(--blue-l); } #groups::before { left: -8%; top: 10%; }
#extras { --b: var(--green-l); } #extras::before { right: -7%; top: 8%; }
#gallery { --b: var(--orange-l); } #gallery::before { left: -8%; bottom: 6%; }
#news { --b: var(--purple-l); } #news::before { right: -8%; top: 6%; }
#contact { --b: var(--pink-l); } #contact::before { left: -7%; top: 3%; }

/* ---------- Шапка ---------- */
.top { position: fixed; inset: 0 0 auto; z-index: 50; display: flex; align-items: center; gap: 14px; height: var(--bar-h); padding: 0 clamp(12px, 2.4vw, 28px); background: rgba(255, 250, 240, .94); border-bottom: var(--stroke); backdrop-filter: blur(6px); }
.brand { display: inline-flex; align-items: center; gap: 10px; min-width: 0; text-decoration: none; font-family: var(--head); font-size: 1.35rem; white-space: nowrap; }
.brand img { flex: none; width: 44px; height: 44px; }
.brand span { overflow: hidden; text-overflow: ellipsis; }
.menu { display: flex; align-items: center; gap: 2px; margin-inline: auto; }
.menu a { position: relative; padding: 6px 13px 8px; border-radius: var(--wob); font-family: var(--head); font-size: 1.1rem; text-decoration: none; white-space: nowrap; transition: background .2s, rotate .2s; }
.menu a:hover { background: var(--yellow-l); rotate: -2deg; }
.menu a.is-active { background: var(--yellow); box-shadow: inset 0 0 0 2px var(--ink); }
.chips { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.menu + .chips { margin-left: 0; }
.chip { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; min-width: 44px; padding: 0 14px; border: var(--stroke); border-radius: 999px; background: #fff; font-family: var(--head); font-size: 1.05rem; text-decoration: none; box-shadow: 0 3px 0 var(--ink); cursor: pointer; }
.chip:hover { background: var(--yellow-l); }
.chip-call { background: var(--yellow); }
.chip-menu { display: none; padding: 0; }
.chip-menu .ico { width: 24px; height: 24px; }
.progress { position: absolute; left: 0; right: 0; bottom: -10px; width: 100%; height: 12px; color: var(--pink); pointer-events: none; overflow: visible; }
.progress path { stroke-dasharray: 1; stroke-dashoffset: 1; }
html:not(.js) .progress path { stroke-dashoffset: 0; }

/* ---------- Первый экран ---------- */
.hero { position: relative; min-height: min(100svh, 920px); display: flex; align-items: center; padding: calc(var(--bar-h) + 40px) 0 60px; overflow: hidden; }
.hero-doodles { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.hd { position: absolute; overflow: visible; }
.hd-sun { left: 2.5%; top: 17%; width: clamp(70px, 9vw, 120px); }
.hd-cloud { right: 4%; top: 16%; width: clamp(90px, 12vw, 170px); }
.hd-birds { left: 46%; top: 13%; width: clamp(70px, 8vw, 110px); }
.hd-house { left: 1.5%; bottom: 5%; width: clamp(96px, 12vw, 180px); }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr); gap: clamp(20px, 4vw, 56px); align-items: center; }
.hero-text { display: grid; gap: 22px; justify-items: start; }
.hero h1 { display: grid; gap: 8px; }
.hero-name { font-family: var(--head); font-size: clamp(1.3rem, 2.5vw, 1.9rem); color: var(--ink-soft); }
.hero-name small { font-family: var(--note); font-size: 1.25em; font-weight: 700; color: var(--red); margin-left: .2em; }
.hero-title { display: block; font-size: clamp(2.9rem, 7.4vw, 5.8rem); line-height: 1; }
.hero-title .squiggle { display: block; width: min(60%, 380px); height: 16px; margin-top: 10px; color: var(--red); }
.squiggle path { stroke-dasharray: 1; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-facts li { display: inline-flex; align-items: center; gap: 8px; padding: 7px 15px; border: 2.5px solid var(--ink); border-radius: var(--wob); font-weight: 800; font-size: .98rem; box-shadow: var(--lift-s); }
.hf-a { background: var(--yellow-l); rotate: -1.5deg; } .hf-b { background: var(--pink-l); rotate: 1.2deg; } .hf-c { background: var(--blue-l); rotate: -.8deg; } .hf-d { background: var(--green-l); rotate: 1.6deg; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; }
.hero-logo { position: relative; display: grid; justify-items: center; }
.hero-note { position: absolute; left: 0; top: 0; z-index: 2; display: grid; justify-items: start; width: 130px; color: var(--pink); font-family: var(--note); font-size: 2rem; line-height: 1; rotate: -8deg; pointer-events: none; }
.hero-note svg { width: 76px; height: 58px; margin: 2px 0 0 30px; overflow: visible; }

/* ---------- Живой логотип ---------- */
.gl { display: block; width: min(540px, 100%); margin: 0; padding: 0; border: 0; background: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.gl:focus-visible { outline: 3px dashed var(--pink); outline-offset: 8px; border-radius: 40px; }
.gl-svg { display: block; width: 100%; height: auto; overflow: visible; }
.gl-bee, .gl-trail { opacity: 1; }
.gl-wing { transform-box: fill-box; transform-origin: 50% 100%; }
.gl-eye { transform-box: fill-box; transform-origin: center; }
.gl-flower { transform-origin: 200px 175px; }
.gl-plant { transform-origin: 200px 372px; }
.gl-dd { transform-box: fill-box; transform-origin: center; }
.gl-word text { paint-order: stroke; }
.gl.is-paused * { animation-play-state: paused !important; }
.mark-svg { display: block; }

@media (prefers-reduced-motion: no-preference) {
  /* 1. линии прорисовываются, 2. цвет закрашивается мазком, 3. рисунок оживает */
  .dr { stroke-dasharray: 1; stroke-dashoffset: 1; animation: gl-draw var(--d, .8s) var(--t, 0s) cubic-bezier(.45, .05, .3, 1) both; }
  .fl { clip-path: inset(100% 0 0 0); animation: gl-fill var(--d, .6s) var(--t, 0s) ease-out both; }
  .gl-eyes, .gl-cheeks { animation: gl-pop .5s 2.7s both; }
  .gl-word text { clip-path: inset(-10% 100% -10% 0); animation: gl-write 1s 3s ease-out both; }
  .gl-bee, .gl-trail { animation: gl-fade .8s 3.8s both; }
  .gl-flower { animation: gl-sway 7s ease-in-out 4.3s infinite alternate; }
  .gl-petal { animation: gl-breathe 4.4s ease-in-out calc(4.3s + var(--i, 0) * .4s) infinite; }
  .gl-plant { animation: gl-plant 8s ease-in-out 3s infinite alternate; }
  .gl-eye { animation: gl-blink 5.6s 4.5s infinite; }
  .gl-dd { animation: gl-bob 4.4s ease-in-out calc(4.4s + var(--i, 0) * .8s) infinite alternate; }
  .gl-wing { animation: gl-flap .1s linear infinite alternate; }
  .hero-title { animation: gl-write-block 1.3s .35s ease-out both; }
  .hero-name, .hero-facts, .hero-actions, .hero-text .kicker { animation: gl-rise .7s ease-out both; }
  .hero-name { animation-delay: .1s; } .hero-text .kicker { animation-delay: .05s; } .hero-facts { animation-delay: 1.1s; } .hero-actions { animation-delay: 1.3s; }
  .hero-title .squiggle path { stroke-dashoffset: 1; animation: gl-draw .9s 1.5s ease-out both; }
  .hero-note { animation: gl-pop .6s 3.9s both; }
  .hero-note .dr-scroll { stroke-dashoffset: 1; animation: gl-draw 1s 4.1s ease-out both; }
  .hd-sun { animation: gl-spin 40s linear infinite; }
  .hd-cloud { animation: gl-drift 14s ease-in-out infinite alternate; }
  .hd-birds { animation: gl-drift 9s ease-in-out infinite alternate-reverse; }
}
@keyframes gl-draw { to { stroke-dashoffset: 0; } }
@keyframes gl-fill { to { clip-path: inset(0); } }
@keyframes gl-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes gl-pop { 0% { opacity: 0; transform: scale(.2); } 70% { transform: scale(1.18); } 100% { opacity: 1; transform: none; } }
@keyframes gl-write { to { clip-path: inset(-10% 0 -10% 0); } }
@keyframes gl-write-block { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 -2% 0 0); } }
@keyframes gl-rise { from { opacity: 0; translate: 0 18px; } to { opacity: 1; translate: 0 0; } }
@keyframes gl-sway { from { transform: rotate(-3.5deg); } to { transform: rotate(3.5deg); } }
@keyframes gl-breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.065); } }
@keyframes gl-plant { from { transform: rotate(-1.8deg); } to { transform: rotate(1.8deg); } }
@keyframes gl-blink { 0%, 91%, 100% { transform: scaleY(1); } 94% { transform: scaleY(.08); } }
@keyframes gl-bob { from { transform: translateY(-4px) rotate(-5deg); } to { transform: translateY(6px) rotate(5deg); } }
@keyframes gl-flap { from { transform: rotate(-16deg); } to { transform: rotate(14deg); } }
@keyframes gl-spin { to { rotate: 360deg; } }
@keyframes gl-drift { from { translate: -14px 0; } to { translate: 18px 6px; } }

/* ---------- О нас ---------- */
.about-grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.1fr); gap: clamp(26px, 5vw, 64px); align-items: start; }
.about-text { display: grid; gap: 16px; justify-items: start; }
.stamps { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 10px; }
.stamp { display: grid; place-items: center; align-content: center; width: 138px; aspect-ratio: 1; border: 3px dashed var(--ink); border-radius: 50%; background: #fff; outline: 3px solid var(--ink); outline-offset: 4px; text-align: center; line-height: 1.05; }
.stamp strong { font-family: var(--head); font-weight: 400; font-size: 3rem; }
.stamp span { font-family: var(--note); font-size: 1.35rem; font-weight: 700; color: var(--ink-soft); }
.stamp-a { rotate: -7deg; background: var(--yellow-l); } .stamp-b { rotate: 6deg; background: var(--pink-l); }
.sticky-board h3 { margin-bottom: 18px; font-size: 1.6rem; color: var(--ink-soft); }
.sticky-board dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 18px; margin: 0; }
.sticky { position: relative; padding: 18px 16px 14px; border: 2.5px solid var(--ink); border-radius: 6px 6px 22px 6px; box-shadow: var(--lift-s); background: var(--yellow-l); overflow-wrap: anywhere; }
.sticky::before { content: ""; position: absolute; left: 50%; top: -12px; width: 62px; height: 22px; background: rgba(255, 255, 255, .7); border: 2px solid rgba(59, 47, 107, .35); translate: -50% 0; rotate: -3deg; }
.sticky.wide { grid-column: 1 / -1; }
.sticky-1 { background: var(--pink-l); } .sticky-2 { background: var(--blue-l); } .sticky-3 { background: var(--green-l); } .sticky-4 { background: var(--orange-l); }
.sticky:nth-child(3n+1) { rotate: -1.4deg; } .sticky:nth-child(3n+2) { rotate: 1.1deg; } .sticky:nth-child(3n) { rotate: -.5deg; }
.sticky dt { font-family: var(--note); font-size: 1.3rem; font-weight: 700; line-height: 1.05; color: var(--ink-soft); }
.sticky dd { margin: 4px 0 0; font-weight: 800; }
.sticky a { color: var(--ink); text-underline-offset: 3px; }
.sticky a.inline { display: block; width: fit-content; margin-top: 6px; }
.about-photos { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; margin-top: 52px; }
.about-photos img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border: var(--stroke); border-radius: var(--wob); box-shadow: var(--lift); }
.about-photos img:nth-child(2n) { border-radius: var(--wob2); rotate: 1.2deg; } .about-photos img:nth-child(2n+1) { rotate: -1deg; }

/* ---------- Заведующая ---------- */
.people { display: grid; gap: 40px 34px; justify-content: center; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.people-1 { grid-template-columns: minmax(0, 880px); }
.person { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); align-items: center; }
.people:not(.people-1) .person { grid-template-columns: 1fr; justify-items: center; text-align: center; }
.person-frame { position: relative; width: min(100%, 300px); rotate: -2deg; }
.person-frame::before, .person-frame::after { content: ""; position: absolute; z-index: 2; width: 90px; height: 28px; background: rgba(255, 210, 63, .78); border: 2px solid rgba(59, 47, 107, .35); }
.person-frame::before { left: -22px; top: 6px; rotate: -38deg; } .person-frame::after { right: -22px; bottom: 6px; rotate: -38deg; }
.person-photo { aspect-ratio: 4 / 5; overflow: hidden; border: 4px solid var(--ink); border-radius: var(--wob); background: var(--pink-l); box-shadow: var(--lift); }
.person-photo img, .person-photo .avatar { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 28%; }
.person-years { position: absolute; right: -16px; bottom: -22px; display: grid; place-items: center; width: 108px; aspect-ratio: 1; border: 3px dashed var(--ink); border-radius: 50%; background: var(--yellow); outline: 3px solid var(--ink); outline-offset: 3px; rotate: 9deg; text-align: center; line-height: 1; }
.person-years strong { font-family: var(--head); font-weight: 400; font-size: 2rem; } .person-years span { font-family: var(--note); font-size: 1.05rem; }
.person-info { display: grid; gap: 10px; justify-items: start; }
.people:not(.people-1) .person-info { justify-items: center; }
.person-role { display: inline-block; padding: 2px 14px 4px; border: 2.5px solid var(--ink); border-radius: var(--wob); background: var(--pink-l); font-family: var(--note); font-size: 1.4rem; font-weight: 700; rotate: -1.5deg; box-shadow: var(--lift-s); }
.person h3 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
.person-edu span { display: block; font-family: var(--note); font-size: 1.25rem; color: var(--ink-soft); }
.person-group, .person-about { color: var(--ink-soft); }

/* ---------- Группы: цветные карандаши ---------- */
.crayons { display: grid; gap: 34px; width: min(940px, 100%); margin-inline: auto; }
.crayon-row { position: relative; }
.crayon-row:nth-child(odd) { rotate: -1.2deg; margin-right: 5%; } .crayon-row:nth-child(even) { rotate: 1deg; margin-left: 5%; }
.crayon { --c: var(--pink); --s: #d84a6a; display: flex; align-items: stretch; min-height: 150px; filter: drop-shadow(5px 5px 0 var(--ink)); transition: translate .25s ease; }
.crayon-row:hover .crayon { translate: 8px -2px; }
.crayon-pink { --c: #ff6b8b; --s: #d84a6a; } .crayon-blue { --c: #4aa8ff; --s: #2b82d6; } .crayon-green { --c: #3ecf9a; --s: #22a878; }
.crayon-yellow { --c: #ffd23f; --s: #e0aa00; } .crayon-orange { --c: #ff9f1c; --s: #d97f00; } .crayon-purple { --c: #a678ff; --s: #7d4fe0; }
.crayon-end { flex: 0 0 22px; border: var(--stroke); border-radius: 18px 0 0 18px; background: var(--s); }
.crayon-body { position: relative; flex: 0 0 clamp(108px, 21%, 190px); display: grid; place-items: center; border: var(--stroke); border-left: 0; background: var(--c); }
.crayon-body::before { content: ""; position: absolute; left: 0; right: 0; top: 12px; height: 8px; background: rgba(255, 255, 255, .4); }
.crayon-age { font-family: var(--head); font-size: clamp(1.7rem, 3.4vw, 2.5rem); color: #fff; text-shadow: 2px 2px 0 var(--ink), -1px -1px 0 var(--ink), 2px -1px 0 var(--ink), -1px 2px 0 var(--ink); rotate: -4deg; white-space: nowrap; }
.crayon-wrap { flex: 1; display: grid; align-content: center; justify-items: start; gap: 8px; padding: 22px 24px; border: var(--stroke); border-left: 0; border-right: 0; background: var(--white); box-shadow: inset 0 9px 0 var(--c), inset 0 -9px 0 var(--c); }
.crayon-wrap h3 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
.crayon-names { color: var(--ink-soft); font-weight: 700; } .crayon-names span { font-family: var(--note); font-size: 1.2rem; }
.crayon-link { display: inline-flex; align-items: center; gap: 8px; font-family: var(--head); font-size: 1.3rem; text-decoration: underline wavy var(--c); text-underline-offset: 6px; }
.crayon-link:hover { color: var(--red); }
.crayon-tip { flex: 0 0 clamp(66px, 12%, 104px); width: clamp(66px, 12%, 104px); height: auto; margin-left: -3px; overflow: visible; }
.crayon-scribble { display: block; width: 62%; height: 26px; margin: 12px 4% 0 auto; overflow: visible; }

/* ---------- Кружки ---------- */
.clubs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 28px; }
.club-open { display: flex; align-items: center; gap: 18px; width: 100%; height: 100%; padding: 20px; border: var(--stroke); border-radius: var(--wob); background: var(--white); box-shadow: var(--lift); text-align: left; transition: transform .2s ease, box-shadow .2s ease; }
button.club-open { cursor: pointer; }
.club:nth-child(2n) .club-open { border-radius: var(--wob2); } .club:nth-child(3n+1) { rotate: -1deg; } .club:nth-child(3n+2) { rotate: .8deg; }
.club.is-openable .club-open:hover { transform: translate(-3px, -3px) rotate(-1deg); box-shadow: 8px 8px 0 var(--ink); }
.club-media { position: relative; flex: none; display: grid; place-items: center; width: 86px; aspect-ratio: 1; border: var(--stroke); border-radius: 50% 44% 52% 46%; overflow: hidden; background: var(--yellow); color: var(--ink); }
.orb-1 { background: var(--pink-l); } .orb-2 { background: var(--blue-l); }
.club-media img { width: 100%; height: 100%; object-fit: cover; }
.extra-ico { width: 56%; height: auto; aspect-ratio: 1; }
.club-body { display: grid; gap: 4px; min-width: 0; }
.club-title { font-family: var(--head); font-weight: 400; font-size: 1.55rem; line-height: 1.1; }
.club-meta { font-family: var(--note); font-size: 1.25rem; font-weight: 700; color: var(--red); }
.club-text { color: var(--ink-soft); font-size: .98rem; }
.story-more { display: inline-flex; align-items: center; gap: 6px; padding-top: 4px; font-family: var(--head); font-size: 1.05rem; color: var(--red); }
.story-count { position: absolute; right: 8px; bottom: 8px; display: inline-flex; align-items: center; gap: 5px; padding: 2px 10px; border: 2px solid var(--ink); border-radius: 999px; background: var(--yellow); font-weight: 800; font-size: .85rem; }

/* ---------- Галерея ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.tab { min-height: 44px; padding: 0 18px; border: 2.5px solid var(--ink); border-radius: var(--wob); background: #fff; cursor: pointer; font-family: var(--head); font-size: 1.05rem; box-shadow: var(--lift-s); }
.tab:hover { background: var(--yellow-l); }
.tab.is-on { background: var(--yellow); }
.album { column-width: 260px; column-gap: 26px; }
.album figure { position: relative; break-inside: avoid; margin: 0 0 30px; }
.album figure:nth-child(3n+1) { rotate: -1.3deg; } .album figure:nth-child(3n+2) { rotate: 1deg; } .album figure:nth-child(3n) { rotate: -.4deg; }
.album figure::before { content: ""; position: absolute; z-index: 2; left: 50%; top: -12px; width: 84px; height: 26px; translate: -50% 0; rotate: -3deg; background: rgba(255, 210, 63, .8); border: 2px solid rgba(59, 47, 107, .35); }
.album figure:nth-child(2n)::before { background: rgba(255, 107, 139, .65); rotate: 4deg; }
.photo-btn { position: relative; display: block; width: 100%; padding: 0; border: var(--stroke); border-radius: var(--wob); overflow: hidden; background: #fff; box-shadow: var(--lift); cursor: zoom-in; }
.album figure:nth-child(2n) .photo-btn { border-radius: var(--wob2); }
.photo-btn img { display: block; width: 100%; height: auto; transition: transform .5s ease; }
.photo-btn:hover img { transform: scale(1.05); }
.photo-btn figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 14px 8px; background: linear-gradient(transparent, rgba(59, 47, 107, .82)); color: #fff; font-family: var(--note); font-size: 1.3rem; text-align: left; opacity: 0; transition: opacity .25s; }
.photo-btn:hover figcaption, .photo-btn:focus-visible figcaption { opacity: 1; }
.album figure[hidden] { display: none; }
.album-more { display: flex; margin: 18px auto 0; }
.note { display: inline-flex; align-items: center; gap: 12px; padding: 14px 26px; border: 2.5px dashed var(--ink); border-radius: var(--wob); background: #fff; font-family: var(--note); font-size: 1.5rem; font-weight: 700; color: var(--ink-soft); }
.note .ico { color: var(--pink); width: 1.3em; height: 1.3em; }

/* ---------- Новости ---------- */
.stories { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 30px; }
.story { position: relative; border: var(--stroke); border-radius: 14px 14px 36px 14px; background: var(--white); box-shadow: var(--lift); overflow: hidden; transition: transform .2s ease, box-shadow .2s; }
.story:hover { transform: translate(-3px, -3px) rotate(-.6deg); box-shadow: 8px 8px 0 var(--ink); }
.story-open { display: flex; flex-direction: column; width: 100%; height: 100%; padding: 0; border: 0; background: none; text-align: left; cursor: pointer; }
.story-img { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; border-bottom: var(--stroke); background: var(--purple-l); }
.story-img img { width: 100%; height: 100%; object-fit: cover; }
.story-img-empty img { object-fit: contain; padding: 8% 22%; }
.story-body { position: relative; display: flex; flex-direction: column; gap: 6px; flex: 1; padding: 22px 22px 22px; }
.story-body time { align-self: flex-start; padding: 1px 12px 3px; border: 2px dashed var(--ink); border-radius: var(--wob); background: var(--yellow-l); font-family: var(--note); font-size: 1.25rem; font-weight: 700; rotate: -2deg; }
.story-title { font-family: var(--head); font-size: 1.55rem; line-height: 1.12; }
.story-excerpt { color: var(--ink-soft); }
.story:only-child { max-width: 560px; }

/* ---------- Документы и вакансии ---------- */
.docs-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(26px, 4vw, 52px); align-items: start; }
.doc-sets { display: grid; gap: 28px; margin-top: 30px; }
.doc-set { position: relative; padding: 24px 26px 22px; border: var(--stroke); border-radius: 6px 24px 24px 24px; background: var(--white); box-shadow: var(--lift); }
.doc-set::before { content: ""; position: absolute; left: 22px; top: -22px; width: 86px; height: 22px; border: var(--stroke); border-bottom: 0; border-radius: 10px 10px 0 0; background: var(--yellow); }
.doc-set:nth-child(2)::before { background: var(--blue); } .doc-set:nth-child(3)::before { background: var(--pink); }
.doc-set h3 { font-size: 1.5rem; margin-bottom: 8px; }
.doc-set li + li { margin-top: 10px; }
.doc-set li a { display: inline-flex; gap: 8px; align-items: flex-start; font-weight: 800; text-underline-offset: 3px; }
.doc-set li a:hover { color: var(--red); }
.doc-set li a .ico { margin-top: .22em; }
.doc-set small { display: block; margin-left: 2em; color: var(--ink-soft); }
.jobs { position: relative; padding: 28px 28px 26px; border: var(--stroke); border-radius: var(--wob); background: var(--yellow-l); box-shadow: var(--lift); rotate: 1deg; }
.jobs h3 { font-size: 1.9rem; }
.jobs .muted { margin-top: 10px; }
.job { margin-top: 14px; padding-top: 14px; border-top: 2.5px dashed var(--ink); }
.job summary { cursor: pointer; font-weight: 800; }
.job p { margin-top: 8px; }
.job a { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; font-family: var(--head); color: var(--red); }

/* ---------- Контакты: открытка ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.contact-info { display: grid; gap: 16px; justify-items: start; }
.contact-phone { font-family: var(--head); font-size: clamp(1.9rem, 4vw, 2.8rem); text-decoration: underline wavy var(--yellow); text-underline-offset: 8px; text-decoration-thickness: 3px; line-height: 1.1; }
.contact-list { display: grid; gap: 12px; margin-top: 6px; }
.contact-list li { display: flex; gap: 12px; align-items: flex-start; font-weight: 700; }
.contact-list .ico { margin-top: .22em; color: var(--red); }
.contact-list a { text-underline-offset: 3px; }
.social-label { margin-top: 6px; font-family: var(--note); font-size: 1.4rem; color: var(--ink-soft); }
.socials { display: flex; flex-wrap: wrap; gap: 12px; }
.socials a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border: 2.5px solid var(--ink); border-radius: var(--wob); background: #fff; font-family: var(--head); text-decoration: none; box-shadow: var(--lift-s); }
.socials a:hover { background: var(--yellow-l); }
.form { position: relative; padding: 38px 32px 30px; border: var(--stroke); border-radius: 10px; background: var(--white); box-shadow: var(--lift); rotate: .6deg; }
.postcard::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 12px; border-radius: 7px 7px 0 0; background: repeating-linear-gradient(135deg, var(--red) 0 16px, #fffefb 16px 26px, var(--blue) 26px 42px, #fffefb 42px 52px); border-bottom: var(--stroke); }
.stamp-corner { position: absolute; top: 26px; right: 22px; display: grid; place-items: center; width: 82px; aspect-ratio: 4 / 5; padding: 6px; border: 3px dashed var(--ink); background: #fff; outline: 3px solid #fff; rotate: 6deg; }
.stamp-corner img { width: 100%; height: auto; }
.form h3 { max-width: calc(100% - 100px); font-size: 2rem; }
.form label { display: block; margin: 16px 0 2px; font-family: var(--note); font-size: 1.35rem; font-weight: 700; color: var(--ink-soft); }
.form input:not([type="checkbox"]), .form select, .form textarea { width: 100%; padding: 8px 4px; border: 0; border-bottom: 3px dashed var(--ink); border-radius: 0; background: transparent; font: inherit; font-weight: 700; color: var(--ink); }
.form textarea { resize: vertical; min-height: 96px; line-height: 30px; background: repeating-linear-gradient(transparent 0 29px, rgba(59, 47, 107, .22) 29px 30px); }
.form input:focus, .form select:focus, .form textarea:focus { outline: 0; border-bottom: 3px solid var(--pink); background-color: rgba(255, 107, 139, .08); }
.form .consent { display: flex; gap: 10px; align-items: flex-start; font-family: var(--body); font-size: .9rem; font-weight: 700; color: var(--ink-soft); margin-top: 18px; }
.form .consent input { flex: none; width: 22px; height: 22px; margin-top: 2px; accent-color: var(--pink); }
.form .btn { width: 100%; margin-top: 20px; }
.form-note { display: none; margin-top: 14px; font-weight: 800; color: var(--ink); }
.form-note.show { display: block; }
.form-note.error { color: var(--red); }
.map { display: block; width: 100%; height: 340px; margin-top: 56px; border: var(--stroke); border-radius: var(--wob); box-shadow: var(--lift); background: var(--blue-l); }
.foot { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 24px; margin-top: 52px; padding: 16px 22px; border: var(--stroke); border-radius: var(--wob2); background: var(--white); box-shadow: var(--lift-s); }
.foot img { flex: none; }
.foot p { margin-right: auto; font-weight: 700; }
.foot a { display: inline-flex; align-items: center; gap: 6px; font-family: var(--head); text-decoration: none; }
.foot a:hover { color: var(--red); }

/* ---------- Окна: просмотр фото и новости ---------- */
.lightbox { position: fixed; inset: 0; z-index: 70; display: flex; align-items: center; justify-content: center; gap: 12px; padding: 24px; background: rgba(40, 30, 80, .88); }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; text-align: center; }
.lightbox img { max-height: 80vh; max-width: min(1000px, 78vw); border: 4px solid #fff; border-radius: var(--wob); }
.lightbox figcaption { margin-top: 12px; color: #fff; font-family: var(--note); font-size: 1.5rem; }
.lb-close, .lb-nav { display: grid; place-items: center; flex: none; width: 48px; height: 48px; border: var(--stroke); border-radius: 50%; background: var(--yellow); color: var(--ink); cursor: pointer; box-shadow: 0 3px 0 var(--ink); }
.lb-close { position: absolute; top: 16px; right: 16px; }
.news-dialog { width: min(780px, calc(100% - 24px)); max-height: 90vh; padding: 0; border: var(--stroke); border-radius: 14px 14px 40px 14px; background: var(--white); color: var(--ink); box-shadow: 8px 8px 0 var(--ink); overflow: auto; }
.news-dialog::backdrop { background: rgba(40, 30, 80, .7); }
.nd-close { position: absolute; top: 12px; right: 12px; z-index: 2; display: grid; place-items: center; width: 46px; height: 46px; border: var(--stroke); border-radius: 50%; background: var(--yellow); cursor: pointer; box-shadow: 0 3px 0 var(--ink); }
.nd-stage { position: relative; background: #2a2150; border-bottom: var(--stroke); }
.nd-img { display: block; width: 100%; height: min(58vh, 470px); object-fit: contain; }
.nd-nav { position: absolute; top: 50%; translate: 0 -50%; display: none; place-items: center; width: 46px; height: 46px; border: var(--stroke); border-radius: 50%; background: var(--yellow); cursor: pointer; }
.nd-prev { left: 12px; } .nd-next { right: 12px; }
.nd-counter { position: absolute; left: 12px; bottom: 12px; display: none; padding: 2px 12px; border-radius: 999px; background: rgba(0, 0, 0, .65); color: #fff; font-weight: 800; font-size: .9rem; }
.has-many .nd-nav { display: grid; } .has-many .nd-counter { display: block; }
.nd-thumbs { display: none; gap: 8px; padding: 10px 12px; overflow-x: auto; background: var(--paper-2); }
.has-many .nd-thumbs { display: flex; }
.nd-thumbs button { flex: none; width: 72px; height: 54px; padding: 0; border: 3px solid transparent; border-radius: 10px; overflow: hidden; background: none; cursor: pointer; opacity: .7; }
.nd-thumbs button.is-active { border-color: var(--pink); opacity: 1; }
.nd-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.nd-body { padding: 24px 28px 32px; }
.nd-gallery[hidden] + .nd-body { padding-top: 62px; }
.nd-body time { font-family: var(--note); font-size: 1.35rem; font-weight: 700; color: var(--red); }
.nd-body h3 { margin: .15em 0 .5em; font-size: 2rem; }
#ndText { overflow-wrap: anywhere; }

/* ---------- Появление при прокрутке и след карандаша ---------- */
#scribble { position: fixed; inset: 0; z-index: 55; width: 100%; height: 100%; pointer-events: none; }
.dr-scroll { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.2s ease-out .2s; }
.is-in .dr-scroll, .is-in.dr-scroll, html:not(.js) .dr-scroll { stroke-dashoffset: 0; }
.head h2::after, .about-text h2::after, .docs-grid h2::after, .contact-info h2::after { transition: clip-path 1s ease-out .3s; }
.js .head:not(.is-in) h2::after, .js .about-text:not(.is-in) h2::after, .js .contact-info:not(.is-in) h2::after, .js .docs-grid > div:not(.is-in) h2::after { clip-path: inset(0 100% 0 0); }
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .6s ease, transform .7s cubic-bezier(.3, 1.4, .5, 1); transition-delay: var(--delay, 0ms); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .crayon-row.reveal { transform: translateX(-60px); }
.js .crayon-row.reveal.is-in { transform: none; }
.js .crayon-row:nth-child(even).reveal { transform: translateX(60px); }
.js .crayon-row:nth-child(even).reveal.is-in { transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; }
  .dr-scroll, .progress path { stroke-dashoffset: 0; }
  #scribble { display: none; }
}

/* ---------- Экраны поуже ---------- */
@media (max-width: 1180px) {
  .chip-menu { display: inline-flex; }
  .menu { position: fixed; top: calc(var(--bar-h) + 10px); left: 12px; right: 12px; z-index: 49; display: none; grid-template-columns: repeat(2, 1fr); gap: 8px; padding: 16px; border: var(--stroke); border-radius: var(--wob); background: var(--paper); box-shadow: var(--lift); margin: 0; }
  .menu.open { display: grid; }
  .menu a { padding: 10px 14px; font-size: 1.2rem; background: #fff; border: 2.5px solid var(--ink); text-align: center; }
  .chips { margin-left: auto; }
  .chip-call span { display: none; }
  .chip-call { width: 44px; padding: 0; }
}
@media (max-width: 920px) {
  .hero { align-items: flex-start; min-height: 0; padding-top: calc(var(--bar-h) + 26px); }
  .hero-grid { grid-template-columns: 1fr; gap: 14px; }
  .hero-logo { order: -1; }
  .gl { width: min(430px, 88%); }
  .hero-note { left: 2%; }
  .hero-text { justify-items: center; text-align: center; }
  .hero-text .kicker { justify-self: center; }
  .hero-title .squiggle { margin-inline: auto; }
  .hero-facts, .hero-actions { justify-content: center; }
  .hd-house, .hd-birds { display: none; }
  .about-grid, .contact-grid, .docs-grid { grid-template-columns: 1fr; }
  .person { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .person-info { justify-items: center; }
  .crayon-row:nth-child(odd), .crayon-row:nth-child(even) { margin-inline: 0; }
}
@media (max-width: 640px) {
  body { font-size: 1.02rem; }
  .wrap { width: min(1160px, 100% - 32px); }
  .brand { font-size: 1.15rem; }
  .brand img { width: 38px; height: 38px; }
  .sticky-board dl { grid-template-columns: 1fr; }
  .stamps { justify-content: center; }
  .crayon { min-height: 126px; }
  .crayon-end { flex-basis: 14px; }
  .crayon-body { flex-basis: 84px; }
  .crayon-wrap { padding: 14px 12px; }
  .crayon-tip { flex-basis: 52px; width: 52px; }
  .crayon-age { font-size: 1.35rem; }
  .crayon-wrap h3 { font-size: 1.4rem; }
  .club-open { padding: 16px; gap: 14px; }
  .club-media { width: 72px; }
  .form { padding: 36px 20px 24px; }
  .stamp-corner { width: 64px; right: 14px; }
  .form h3 { max-width: calc(100% - 78px); font-size: 1.6rem; }
  .map { height: 260px; }
  .lightbox { padding: 12px; gap: 4px; }
  .lightbox img { max-width: 72vw; }
  .menu { grid-template-columns: 1fr; }
}
