/* =========================================================================
   Shabyt — тема «Шабытпен өсеміз» (редизайн 12.2026, по видео агентства).
   Один файл на весь публичный сайт. style="" в разметке запрещён CSP — только классы.
   ========================================================================= */
:root {
    --cream: #f7f4ea; --cream2: #eef5df; --ink: #16301c; --muted: #5b6b5e;
    --green: #287a28; --green-d: #1f5a2a; --forest: #173f22; --lime: #9fd35a; --lime2: #d4ecaa;
    --brown: #5a3a1e; --yellow: #f6c343; --coral: #c94a2c; --sky: #ddeef3;
    --r: 22px; --r-lg: 34px;
    --sh: 0 10px 30px rgba(31, 70, 30, .08); --sh2: 0 18px 40px rgba(31, 70, 30, .14);
    --f-h: 'Montserrat', system-ui, sans-serif; --f-b: 'Nunito', system-ui, sans-serif; --f-s: 'Caveat', cursive;
    --ease: cubic-bezier(.2, .8, .2, 1);
    --hdr: 96px;
}
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-padding-top: calc(var(--hdr) + 10px); -webkit-text-size-adjust: 100%; }
body { background: var(--cream); color: var(--ink); font: 17px/1.6 var(--f-b); overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
.container { width: min(1240px, 100% - 48px); margin: 0 auto; }
.icon { width: 1.15em; height: 1.15em; flex: none; }
.script { font-family: var(--f-s); font-weight: 700; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 300; background: var(--forest); color: #fff; padding: 10px 18px; border-radius: 999px; font-weight: 800; }
.skip-link:focus-visible { top: 12px; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 8px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font: 800 16px/1.2 var(--f-b); border-radius: 999px; padding: 17px 30px; border: 2px solid transparent; cursor: pointer; transition: transform .25s var(--ease), box-shadow .25s, background .25s, color .25s; text-align: center; }
.btn:hover { transform: translateY(-2px); }
.btn-sm { padding: 12px 22px; font-size: 14px; }
.btn-green { background: var(--green); color: #fff; box-shadow: 0 8px 20px rgba(47, 138, 47, .3); }
.btn-green:hover { background: #1f6a21; }
.btn-brown { background: var(--brown); color: #fff; box-shadow: 0 10px 24px rgba(90, 58, 30, .3); }
.btn-ghost, .btn-outline { background: #fff; border-color: #e3eed3; color: var(--ink); }
.btn-outline { padding: 13px 24px; font-size: 15px; }
.btn-ghost:hover, .btn-outline:hover { border-color: var(--lime); }
.btn-yellow { background: var(--yellow); color: var(--ink); box-shadow: 0 10px 24px rgba(246, 195, 67, .35); }

/* ---------- top bar ---------- */
.topbar { background: var(--forest); color: #e6f0dc; font-size: 14px; font-weight: 600; position: relative; z-index: 60; }
.topbar-in { display: flex; justify-content: space-between; align-items: center; min-height: 42px; gap: 20px; }
.tb-group { display: flex; align-items: center; gap: 28px; }
.tb-item { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; min-height: 32px; }
.tb-item .icon { color: var(--lime); width: 16px; height: 16px; }
a.tb-item:hover { color: var(--lime); }
.lang { display: flex; background: rgba(255, 255, 255, .08); border-radius: 999px; padding: 3px; }
.lang > * { font: 800 12px/1 var(--f-b); padding: 6px 13px; border-radius: 999px; color: #cfe0c2; }
.lang .lang-on { background: var(--lime); color: var(--forest); }
.lang a:hover { color: #fff; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(247, 244, 234, .98); box-shadow: 0 6px 24px rgba(23, 63, 34, 0); transition: box-shadow .45s var(--ease), background-color .45s var(--ease); }
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(23, 63, 34, .09); background-color: var(--cream); }
.header-inner { display: flex; align-items: center; gap: 16px; height: var(--hdr); }
.brand { flex: none; margin-right: auto; }
.site-header .brand .logo-img { height: 78px; width: auto; transform-origin: left center; transition: transform .45s var(--ease); }
.site-header.is-scrolled .brand .logo-img { transform: scale(.82); }
.site-nav { margin-left: 4px; }
.menu { display: flex; gap: 4px; font-weight: 700; font-size: 15px; white-space: nowrap; }
.menu > li { position: relative; }
.menu > li > a { display: inline-flex; align-items: center; gap: 4px; padding: 10px 9px; position: relative; }
.menu > li > a::after { content: ""; position: absolute; left: 9px; right: 100%; bottom: 4px; height: 3px; border-radius: 3px; background: var(--lime); transition: right .3s var(--ease); }
.menu > li:hover > a::after, .menu > li.is-active > a::after { right: 9px; }
.caret { flex: none; width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s; }
.menu .sub { position: absolute; left: -6px; top: 100%; min-width: 240px; background: #fff; border-radius: 18px; padding: 10px; box-shadow: var(--sh2); display: none; }
.menu .has-sub:hover .sub, .menu .has-sub:has(:focus-visible) .sub { display: block; animation: drop-in .2s var(--ease) both; }
@keyframes drop-in { from { opacity: 0; transform: translateY(8px); } }
.menu .has-sub:hover .caret { transform: rotate(180deg); }
.menu .sub a { display: block; padding: 10px 14px; border-radius: 12px; font-weight: 700; }
.menu .sub a:hover, .menu .sub a[aria-current] { background: var(--cream2); color: var(--green-d); }
.nav-mobile-extra { display: none; }
.hdr-cta { padding: 14px 22px; font-size: 15px; white-space: nowrap; }
.nav-toggle { display: none; margin-left: 0; width: 46px; height: 46px; border: 0; border-radius: 14px; background: #fff; box-shadow: var(--sh); cursor: pointer; place-items: center; }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { display: block; width: 22px; height: 2.5px; border-radius: 3px; background: var(--forest); transition: transform .3s, opacity .3s; }
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -7px; } .nav-toggle-bars::after { top: 7px; }
.nav-open .nav-toggle-bars { background: transparent; }
.nav-open .nav-toggle-bars::before { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle-bars::after { transform: translateY(-7px) rotate(-45deg); }

/* ---------- shared decor ---------- */
.cloud path { fill: #fff; }
.cloud { filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .05)); }
.sun circle { fill: var(--yellow); }
.sun-rays path { fill: none; stroke: var(--yellow); stroke-width: 5; stroke-linecap: round; }
.orbit circle { fill: none; stroke: #8cc63f; stroke-width: 5; stroke-dasharray: 1 16; stroke-linecap: round; }
.hills .h1 { fill: var(--lime2); } .hills .h2 { fill: var(--lime); } .hills .h3 { fill: var(--cream); }
.leaf { position: absolute; width: 26px; opacity: .85; }

/* ---------- typography blocks ---------- */
.sec { padding: 120px 0; }
.kicker { display: inline-flex; align-items: center; gap: 10px; font: 700 30px/1.1 var(--f-s); color: var(--green); }
.kicker img { width: 26px; height: auto; }
.kicker.k-light { color: var(--lime); }
.h2 { font: 800 clamp(30px, 3.6vw, 52px)/1.15 var(--f-h); color: var(--forest); letter-spacing: -.01em; margin: 10px 0 20px; }
.h2 em, .page-head h1 em { font-style: normal; color: var(--green); position: relative; white-space: nowrap; }
.h2 em::after { content: ""; position: absolute; left: 0; right: 0; bottom: -.14em; height: .26em; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 16' preserveAspectRatio='none'%3E%3Cpath d='M3 13Q100 -3 197 13' stroke='%239fd35a' stroke-width='5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") center/100% 100% no-repeat; }
.h2.light { color: #fff; } .h2.light em { color: var(--lime); }
.txt { font-size: 18px; color: var(--muted); max-width: 660px; font-weight: 600; }
.txt.light { color: #c9dcc4; }
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; margin-bottom: 40px; }
.h3 { font: 800 21px/1.3 var(--f-h); color: var(--forest); }

/* ---------- home hero ---------- */
.hero { position: relative; padding: 60px 0 0; overflow: hidden; background: linear-gradient(115deg, #fbf3dc 0%, #f7f4ea 45%, #eef5df 100%); }
.hero-glow, .ph-glow { position: absolute; right: -10%; top: -20%; width: 60%; height: 120%; background: radial-gradient(closest-side, rgba(200, 233, 140, .35), transparent); pointer-events: none; }
.hero-in { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 30px; align-items: start; z-index: 2; }
.hero-in > * { min-width: 0; }
.pill { display: inline-flex; align-items: center; gap: 10px; background: #fff; border-radius: 999px; padding: 9px 20px 9px 10px; font: 800 15px/1.3 var(--f-b); color: var(--green-d); box-shadow: var(--sh); }
.pill img { width: 30px; height: 30px; object-fit: contain; background: #eef6e2; border-radius: 50%; padding: 4px; }
.hero-title { margin: 22px 0 26px; line-height: 1; display: inline-flex; flex-direction: column; align-items: center; }
.hero-title .script { display: block; font-size: clamp(56px, 6.6vw, 100px); color: var(--green); transform: rotate(-3deg); transform-origin: center; line-height: .8; position: relative; z-index: 1; }
.hero-title .big { display: inline-block; position: relative; font: 800 clamp(58px, 7.4vw, 110px)/.9 var(--f-h); color: var(--forest); letter-spacing: -.02em; margin-top: -.06em; }
.hero-title .big::after { content: ""; position: absolute; left: 0; right: 0; bottom: -14px; height: 22px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 16' preserveAspectRatio='none'%3E%3Cpath d='M3 13Q100 -1 197 13' stroke='%239fd35a' stroke-width='6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") center/100% 100% no-repeat; transform: scaleX(0); transform-origin: left; transition: transform 1s .8s var(--ease); }
.hero-title.in .big::after, .no-js .hero-title .big::after { transform: scaleX(1); }
.lead { font-size: 20px; color: #3f4f42; max-width: 600px; font-weight: 600; }
.hero-btns { display: flex; gap: 16px; margin: 36px 0 40px; flex-wrap: wrap; }
.stats { display: inline-flex; background: #fff; border-radius: var(--r); box-shadow: var(--sh2); padding: 22px 10px; position: relative; z-index: 3; margin-bottom: 120px; }
.stats > div { padding: 0 26px; border-left: 2px solid #eef2e6; }
.stats > div:first-child { border: 0; }
.stats dt { font: 800 38px/1 var(--f-h); color: var(--green); font-variant-numeric: tabular-nums; }
.stats dd { font-weight: 700; color: var(--muted); font-size: 15px; }

.hero-art { position: relative; height: 640px; }
.crown { position: absolute; left: 24%; top: 70px; width: 66%; aspect-ratio: 1; border-radius: 50%; border: 12px solid #fff; overflow: hidden; box-shadow: var(--sh2); z-index: 2; background: var(--lime2); }
.crown img, .mini img, .ph-crown img, .t-crown img { width: 100%; height: 100%; object-fit: cover; }
.trunk { position: absolute; left: 39%; top: 440px; width: 38%; z-index: 1; }
.hero-sprout { position: absolute; left: 10%; top: 0; width: 28%; z-index: 3; transform-origin: 50% 100%; }
.mini { position: absolute; left: 8%; bottom: 110px; width: 30%; aspect-ratio: 1; border-radius: 50% 50% 50% 18%; border: 8px solid #fff; overflow: hidden; box-shadow: var(--sh2); z-index: 4; }
.hero-art .cloud { position: absolute; left: 0; top: 10px; width: 130px; }
.hero-art .sun { position: absolute; right: 0; top: 40px; width: 120px; }
.orbit { position: absolute; left: 18%; top: 20px; width: 80%; opacity: .9; z-index: 1; }
.chip { position: absolute; display: flex; align-items: center; gap: 12px; background: #fff; border-radius: 18px; padding: 12px 18px 12px 12px; box-shadow: var(--sh2); z-index: 5; line-height: 1.15; }
.chip b { font-weight: 800; font-size: 16px; }
.chip small { display: block; color: var(--muted); font-weight: 600; font-size: 13px; }
.chip-a { left: 4%; top: 300px; } .chip-b { right: 0; top: 450px; }
.ci { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; }
.ci-green { background: #eaf5dc; color: var(--green); } .ci-yellow { background: #fff3cf; color: #d9a520; }
.hero-art .l1 { left: 2%; top: 230px; transform: rotate(-30deg); }
.hero-art .l2 { right: 6%; top: 320px; width: 20px; }
.hero-art .l3 { left: 60%; bottom: 60px; width: 18px; }
.hero .hills { position: absolute; left: 0; bottom: 0; width: 100%; height: 170px; z-index: 1; }

/* ---------- tiles ---------- */
.tiles-sec { background: var(--lime); position: relative; }
.tiles-sec::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: calc(60% + 48px); background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 48' preserveAspectRatio='none'%3E%3Cpath d='M0 14c260 30 520 26 760 6s460-22 680 8V48H0z' fill='%23f7f4ea'/%3E%3C/svg%3E") top / 100% 48px no-repeat, linear-gradient(var(--cream), var(--cream)) 0 47px / 100% calc(100% - 47px) no-repeat; }
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; position: relative; z-index: 2; transform: translateY(-70px); margin-bottom: -70px; }
.tile { position: relative; display: block; background: #fff; border-radius: var(--r); padding: 30px 26px 34px; box-shadow: var(--sh2); overflow: hidden; transition: transform .3s var(--ease); }
.tile::after { content: ""; position: absolute; right: -30px; bottom: -30px; width: 120px; height: 120px; background: url(../img/sprout.png) center/contain no-repeat; opacity: .08; transition: transform .5s var(--ease); }
.tile:hover { transform: translateY(-6px); }
.tile:hover::after { transform: rotate(-15deg) scale(1.1); }
.num { font: 800 18px var(--f-h); color: var(--coral); }
.arr { position: absolute; right: 22px; top: 24px; width: 40px; height: 40px; border-radius: 50%; background: #eef6e2; display: grid; place-items: center; color: var(--green); transition: background .3s, color .3s; }
.tile:hover .arr, .att-card:hover .arr, .att-item:hover .arr { background: var(--green); color: #fff; }
.tile-title { display: block; font: 800 clamp(17px, 1.45vw, 21px)/1.3 var(--f-h); overflow-wrap: anywhere; margin: 8px 0 6px; }
.tile-desc { display: block; color: var(--muted); font-weight: 600; }

/* ---------- about (home) ---------- */
.about { display: grid; grid-template-columns: .85fr 1.15fr; gap: 60px; align-items: start; }
.founder-card { background: radial-gradient(circle at 85% 85%, #3f8a33 0, transparent 45%), linear-gradient(160deg, #1f4f27, #173f22); color: #fff; border-radius: var(--r-lg); padding: 40px; box-shadow: var(--sh2); }
.f-head { display: flex; align-items: center; gap: 20px; }
.f-photo { width: 110px; height: 110px; border-radius: 50% 50% 50% 14%; border: 4px solid var(--lime); overflow: hidden; flex: none; background: #fff; }
.f-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.s-lime { color: var(--lime); font-size: 26px; line-height: 1; }
.f-name { font: 800 24px/1.25 var(--f-h); }
.f-text { margin: 28px 0; padding-left: 16px; border-left: 3px solid var(--lime); color: #dfeadb; font-weight: 600; }
.f-path li { display: flex; align-items: center; gap: 16px; padding: 12px 0; border-bottom: 1px solid rgba(255, 255, 255, .1); font-weight: 700; }
.f-path li:last-child { border: 0; }
.f-path b, .year-pill { font: 800 15px var(--f-h); background: var(--lime); color: var(--forest); border-radius: 999px; padding: 5px 12px; flex: none; }
.f-path b.y { background: var(--yellow); }
.f-more { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; color: var(--lime); font-weight: 800; }
.values { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 36px; }
.val { display: flex; gap: 16px; background: #fff; border-radius: var(--r); padding: 24px; box-shadow: var(--sh); transition: transform .3s var(--ease); }
.val:hover { transform: translateY(-4px); }
.vi { width: 54px; height: 54px; border-radius: 50% 50% 50% 14%; display: grid; place-items: center; flex: none; }
.vi .icon { width: 24px; height: 24px; }
.vi.pink { background: #fde3df; color: #e8604a; } .vi.yellow { background: #fff0c4; color: #c8941a; } .vi.green { background: #e6f3d6; color: var(--green); } .vi.blue { background: #dceffa; color: #3b8dc4; } .vi.white { background: #fff; color: #3b8dc4; }
.val h3 { font: 800 18px/1.3 var(--f-h); margin-bottom: 6px; }
.val p { color: var(--muted); font-size: 15px; font-weight: 600; }

/* ---------- groups growth ---------- */
.groups-sec { background: linear-gradient(180deg, var(--cream) 0, var(--cream2) 25%, var(--cream2) 80%, var(--cream) 100%); padding-bottom: 90px; }
.stairs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 22px; align-items: end; margin-top: 20px; }
.g-col { display: flex; flex-direction: column; align-items: center; min-width: 0; }
.g1 { --lift: 0px; --s: .42; } .g2 { --lift: 50px; --s: .55; } .g3 { --lift: 100px; --s: .68; } .g4 { --lift: 150px; --s: .82; } .g5 { --lift: 200px; --s: .96; }
.g-card { position: relative; display: block; width: 100%; background: #fff; border-radius: var(--r); padding: 16px 16px 22px; box-shadow: var(--sh2); margin-bottom: 14px; transition: transform .3s var(--ease); }
.g-card:hover { transform: translateY(-6px) rotate(-1deg); }
.age { position: absolute; left: 12px; top: 12px; z-index: 2; background: var(--yellow); font-weight: 800; font-size: 13px; border-radius: 999px; padding: 4px 11px; }
.g-ph { display: block; aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: var(--cream2); }
.g-ph img { width: 100%; height: 100%; object-fit: cover; }
.g-name { display: block; font: 800 19px/1.3 var(--f-h); margin: 16px 4px 4px; }
.g-cap { display: flex; align-items: center; gap: 6px; color: var(--muted); font-weight: 700; font-size: 15px; margin-left: 4px; }
.g-cap .icon { color: var(--green); }
.grow { display: flex; flex-direction: column; align-items: center; width: 100%; height: calc(360px * var(--s)); justify-content: flex-end; }
.g-sp { width: calc(170px * var(--s)); transform-origin: 50% 100%; margin-bottom: -6px; position: relative; z-index: 2; }
.g-tr { width: calc(190px * var(--s)); height: calc(130px * var(--s)); object-fit: fill; transform-origin: 50% 100%; }
.soil { position: relative; height: 72px; background: var(--brown); border-radius: 0 0 40px 40px; border-top: 10px solid #4f9a2a; }
.soil::before { content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 8px; background: radial-gradient(circle at 6px 8px, #4f9a2a 6px, transparent 6.5px) 0 0/14px 8px repeat-x; }
.soil i { position: absolute; width: 6px; height: 6px; border-radius: 50%; background: #7a5634; }
.soil i:nth-child(1) { left: 12%; top: 40%; } .soil i:nth-child(2) { left: 35%; top: 22%; } .soil i:nth-child(3) { left: 52%; top: 62%; } .soil i:nth-child(4) { left: 70%; top: 30%; } .soil i:nth-child(5) { left: 86%; top: 55%; } .soil i:nth-child(6) { left: 93%; top: 20%; }
.path-line { display: flex; align-items: center; gap: 16px; margin-top: 22px; color: var(--brown); font-size: 28px; }
.path-line i { flex: 1; border-top: 2px dashed #8a6a48; opacity: .6; }

/* ---------- clubs (home) ---------- */
.clubs-sec { padding: 0 16px; }
.clubs-box { position: relative; background-color: var(--forest); background-image: radial-gradient(rgba(255, 255, 255, .05) 1.5px, transparent 1.5px); background-size: 26px 26px; border-radius: 60px; padding: 110px 0 120px; overflow: hidden; }
.clubs-sprout { position: absolute; right: 6%; top: 40px; width: 120px; }
.clubs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 50px; }
.club { background: #fff; border-radius: var(--r); padding: 10px 10px 22px; display: flex; flex-direction: column; transition: transform .3s var(--ease); }
.club:hover { transform: translateY(-6px); }
.c-ph { position: relative; display: block; aspect-ratio: 4/3; border-radius: 16px; overflow: hidden; background: var(--cream2); }
.c-ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.club:hover .c-ph img { transform: scale(1.07); }
.c-ph span { position: absolute; left: 10px; bottom: 10px; background: #fff; border-radius: 999px; font-size: 12px; font-weight: 800; padding: 3px 11px; }
.club h3 { font: 800 19px/1.3 var(--f-h); margin: 18px 12px 8px; }
.club p { color: var(--muted); font-size: 15px; font-weight: 600; margin: 0 12px 16px; flex: 1; }
.c-link { margin: 0 12px; padding: 6px 0; color: var(--green); font-weight: 800; font-size: 15px; }
.club-cta { background: var(--lime); padding: 30px; justify-content: flex-end; }
.club-cta img { width: 70px; margin: 0 auto auto; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .1)); }
.club-cta h3 { margin: 20px 0 8px; font-size: 21px; color: var(--forest); }
.club-cta p { margin: 0 0 20px; color: #2f4f2a; flex: 0; }
.club-cta .btn { align-self: flex-start; }

/* ---------- infra mosaic ---------- */
.mosaic { display: grid; grid-template-columns: 1.3fr 1fr 1fr; grid-template-rows: 300px 300px; gap: 20px; margin-top: 40px; }
.mosaic > a { position: relative; display: block; overflow: hidden; border-radius: var(--r); background: var(--forest); }
.mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.mosaic > a:hover img { transform: scale(1.06); }
.mosaic > a::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(23, 63, 34, .85)); }
.mosaic .cap { position: absolute; left: 24px; right: 20px; bottom: 20px; color: #fff; z-index: 2; line-height: 1.3; text-shadow: 0 1px 8px rgba(0, 0, 0, .45); }
.mosaic .cap b { display: block; font: 800 21px/1.25 var(--f-h); }
.mosaic .cap small { font-size: 14px; opacity: .9; font-weight: 600; display: block; margin-top: 4px; }
.mosaic .m1 { grid-row: 1 / 3; border-top-right-radius: 200px; }
.mosaic .m3 { border-top-left-radius: 120px; }
.tags { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.tags a { background: #fff; border-radius: 999px; padding: 9px 18px; font-weight: 800; font-size: 14px; color: var(--green-d); box-shadow: var(--sh); transition: background .2s; }
.tags a::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--lime); margin-right: 8px; vertical-align: 1px; }
.tags a:hover { background: var(--cream2); }

/* ---------- events marquee ---------- */
.events-sec { overflow: hidden; }
.marquee { overflow: hidden; margin-top: 22px; }
.track { display: flex; gap: 22px; width: max-content; animation: scroll-l 60s linear infinite; will-change: transform; }
.marquee-right .track { animation-name: scroll-r; }
.marquee:hover .track { animation-play-state: paused; }
.ev { position: relative; display: block; height: 250px; overflow: hidden; flex: none; background: var(--cream2); }
.ev img { width: 100%; height: 100%; object-fit: cover; }
.ev span { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); max-width: calc(100% - 40px); background: #fff; border-radius: 999px; font-size: 14px; font-weight: 800; line-height: 1.25; padding: 6px 14px; text-align: center; width: max-content; }
.ev.s2 span { bottom: 30px; max-width: 76%; }
.ev.s3 span { left: 16px; transform: none; }
.s1 { width: 330px; border-radius: 24px; } .s2 { width: 250px; border-radius: 50% 50% 50% 50% / 55% 55% 45% 45%; } .s3 { width: 380px; border-radius: 24px 24px 90px 24px; } .s4 { width: 280px; border-radius: 120px 24px 24px 24px; }

/* ---------- parents ---------- */
.parents { display: grid; grid-template-columns: 1.4fr 1fr; gap: 50px; align-items: start; }
.steps { margin-top: 36px; position: relative; }
.steps::before { content: ""; position: absolute; left: 39px; top: 40px; bottom: 40px; border-left: 3px dashed var(--lime); }
.step { position: relative; display: flex; gap: 24px; background: #fff; border-radius: var(--r); padding: 26px; box-shadow: var(--sh); margin-bottom: 22px; }
.sn { width: 80px; height: 80px; flex: none; border-radius: 50% 50% 50% 14%; display: grid; place-items: center; font: 800 24px var(--f-h); color: #fff; position: relative; z-index: 1; margin: -6px 0 0 -12px; }
.sn.g { background: var(--green); } .sn.y { background: var(--yellow); color: var(--forest); } .sn.r { background: var(--coral); }
.step h3 { font: 800 20px/1.3 var(--f-h); margin: 4px 0 8px; }
.step p { color: var(--muted); font-weight: 600; font-size: 15px; }
.step a { display: inline-block; margin-top: 10px; font-weight: 800; color: var(--green); font-size: 15px; }
.side-cards { display: grid; gap: 22px; position: sticky; top: 130px; }
.consult { position: relative; background: var(--sky); border-radius: var(--r-lg); padding: 40px; overflow: hidden; }
.consult h3 { font: 800 25px/1.3 var(--f-h); margin: 24px 0 14px; color: var(--forest); }
.consult p { color: #4c6066; font-weight: 600; margin-bottom: 28px; }
.consult .vi { width: 64px; height: 64px; }
.consult-tree { position: absolute; right: -30px; bottom: -40px; width: 180px; opacity: .12; filter: hue-rotate(160deg) saturate(.3); pointer-events: none; }
.consult .btn { position: relative; z-index: 1; }
.att-card { position: relative; display: flex; align-items: center; gap: 18px; background: #fff; border-radius: var(--r); padding: 24px 70px 24px 24px; box-shadow: var(--sh); transition: transform .3s var(--ease); }
.att-card:hover { transform: translateY(-4px); }
.att-card b { display: block; font: 800 17px/1.3 var(--f-h); }
.att-card small { display: block; color: var(--muted); font-weight: 600; font-size: 14px; margin-top: 4px; }
.att-card .arr { top: 50%; margin-top: -20px; }

/* ---------- contacts ---------- */
.contacts { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.cards { display: grid; gap: 14px; margin-top: 30px; }
.cc { display: flex; align-items: center; gap: 18px; background: #fff; border-radius: 18px; padding: 18px 22px; box-shadow: var(--sh); transition: transform .25s var(--ease); }
a.cc:hover { transform: translateX(6px); }
.cci { width: 46px; height: 46px; border-radius: 50%; background: #eaf5dc; color: var(--green); display: grid; place-items: center; flex: none; }
.cc small { display: block; color: var(--muted); font-weight: 600; font-size: 13px; }
.cc b { font-weight: 800; font-size: 16px; }
.map { position: relative; border-radius: var(--r-lg); overflow: hidden; min-height: 520px; box-shadow: var(--sh2); margin-top: 20px; }
.map > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.mp-bg { fill: #e3f0d2; } .mp-block rect { fill: #cfe6b4; } .mp-home { fill: #b6dc8a; } .mp-road { stroke: #fff; stroke-width: 16; fill: none; } .mp-sea { fill: #bfe0ef; }
.pin { position: absolute; left: 51%; top: 42%; transform: translate(-50%, -100%); display: flex; flex-direction: column; align-items: center; }
.pin-card { display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 16px; padding: 12px 16px; box-shadow: var(--sh2); white-space: nowrap; }
.pin-card img { height: 44px; width: auto; }
.pin-card b { display: block; font-weight: 800; }
.pin-card small { color: var(--muted); font-size: 12px; font-weight: 600; }
.pin i { width: 22px; height: 22px; margin-top: 22px; border-radius: 50% 50% 50% 0; background: var(--coral); transform: rotate(-45deg); box-shadow: 0 6px 10px rgba(239, 106, 78, .4); }
.map-btn { position: absolute; left: 24px; bottom: 24px; }

/* ---------- inner page head ---------- */
.page-head { position: relative; overflow: hidden; background: linear-gradient(115deg, #fbf3dc 0%, #f7f4ea 45%, #eef5df 100%); padding: 50px 0 140px; }
.ph-inner { position: relative; display: grid; grid-template-columns: 1.4fr 1fr; gap: 30px; align-items: center; z-index: 2; }
.ph-inner > * { min-width: 0; }
.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 0 8px; font-size: 14px; font-weight: 700; color: var(--muted); margin-bottom: 18px; }
.breadcrumbs a { padding: 8px 0; }
.breadcrumbs a:hover { color: var(--green); }
.breadcrumbs a:last-child { color: var(--green-d); }
.page-head h1 { font: 800 clamp(30px, 4vw, 56px)/1.12 var(--f-h); color: var(--forest); letter-spacing: -.015em; margin: 12px 0 18px; overflow-wrap: break-word; hyphens: auto; }
.page-head .lead { font-size: 19px; }
.ph-art { position: relative; height: 340px; }
.ph-art .cloud { position: absolute; left: 4%; top: 10px; width: 120px; }
.ph-art .sun { position: absolute; right: 2%; top: 0; width: 100px; }
.ph-crown { position: absolute; left: 20%; top: 20px; width: 62%; aspect-ratio: 1; border-radius: 50%; border: 10px solid #fff; overflow: hidden; box-shadow: var(--sh2); z-index: 2; background: var(--lime2); }
.ph-trunk { position: absolute; left: 36%; top: 250px; width: 30%; }
.ph-sprout { position: absolute; left: 8%; top: -10px; width: 24%; z-index: 3; transform-origin: 50% 100%; }
.ph-sprout-solo { left: 34%; top: 30px; width: 34%; }
.ph-trunk-solo { left: 33%; top: 205px; width: 36%; }
.page-head .l1 { left: 0; top: 190px; } .page-head .l2 { right: 8%; top: 230px; width: 20px; }
.page-head .hills { position: absolute; left: 0; bottom: -1px; width: 100%; height: 130px; z-index: 1; }

/* ---------- generic inner components ---------- */
.card { background: #fff; border-radius: var(--r); box-shadow: var(--sh); }
.split { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: start; }
.prose { font-size: 17px; color: #34453a; }
.prose p + p { margin-top: 14px; }
.prose h2 { font: 800 26px/1.25 var(--f-h); color: var(--forest); margin-bottom: 14px; }
.facts { padding: 32px; }
.facts .h3 { margin-bottom: 18px; }
.facts dl > div { display: grid; grid-template-columns: 1fr 1.3fr; gap: 14px; padding: 12px 0; border-bottom: 1px solid #edf1e6; font-size: 15px; }
.facts dl > div:last-child { border: 0; }
.facts dt { color: var(--muted); font-weight: 700; }
.facts dd { font-weight: 800; }
.sec-tint { background: linear-gradient(180deg, var(--cream) 0, var(--cream2) 18%, var(--cream2) 82%, var(--cream) 100%); }
.sec-tight { padding: 70px 0; }
.empty { display: flex; align-items: center; gap: 14px; justify-content: center; text-align: center; background: #fff; border-radius: var(--r); padding: 50px 24px; color: var(--muted); font-weight: 700; box-shadow: var(--sh); }
.empty .icon { color: var(--green); width: 28px; height: 28px; }
.note { margin-top: 30px; background: #fff; border-left: 4px solid var(--lime); border-radius: 14px; padding: 18px 22px; color: var(--muted); font-weight: 600; }
.note a, .link-more { color: var(--green); font-weight: 800; display: inline-flex; align-items: center; gap: 6px; }
.link-back { display: inline-flex; color: var(--green); font-weight: 800; margin-bottom: 24px; }
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }

/* chips (album filter) + tabs (years) */
.chips, .tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 34px; }
.chips a, .tabs a { display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 2px solid #e3eed3; border-radius: 999px; padding: 10px 18px; font-weight: 800; font-size: 15px; transition: background .2s, border-color .2s, color .2s; }
.chips a:hover, .tabs a:hover { border-color: var(--lime); }
.chips a[aria-current], .tabs a[aria-current] { background: var(--green); border-color: var(--green); color: #fff; }
.tabs small { font-weight: 600; opacity: .75; }
.tab-count { min-width: 26px; height: 26px; padding: 0 6px; border-radius: 999px; background: var(--cream2); color: var(--green-d); display: inline-grid; place-items: center; font-size: 13px; font-weight: 800; }
.tabs a[aria-current] .tab-count { background: rgba(255, 255, 255, .2); color: #fff; }

/* photo sections */
.room-list { display: grid; gap: 28px; }
.room { padding: 30px; border-radius: var(--r-lg); }
.room-head { display: flex; gap: 18px; align-items: flex-start; margin-bottom: 22px; }
.feature-icon { width: 56px; height: 56px; border-radius: 50% 50% 50% 14%; display: grid; place-items: center; flex: none; background: #e6f3d6; color: var(--green); }
.feature-icon .icon { width: 26px; height: 26px; }
.room-head h2 { margin-bottom: 4px; }
.room-head p { color: var(--muted); font-weight: 600; }
.room-more { margin-top: 18px; }
.photo-soon { display: flex; gap: 10px; align-items: center; color: var(--muted); font-weight: 700; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.photo-grid li { aspect-ratio: 1; }
.photo-grid a { display: block; width: 100%; height: 100%; overflow: hidden; border-radius: 18px; background: var(--cream2); }
.photo-grid li:nth-child(6n + 1) a { border-top-left-radius: 70px; }
.photo-grid li:nth-child(6n + 4) a { border-bottom-right-radius: 70px; }
.photo-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.photo-grid a:hover img { transform: scale(1.07); }
.photo-grid.is-even { grid-template-columns: repeat(var(--cols, 6), 1fr); }
.photo-grid.c8 { --cols: 8; } .photo-grid.c6 { --cols: 6; } .photo-grid.c5 { --cols: 5; } .photo-grid.c4 { --cols: 4; }
.swap-panel { transition: opacity .25s; }
.swap-panel.is-loading { opacity: .45; pointer-events: none; }
.swap-panel.is-resizing { overflow: hidden; transition: height .3s var(--ease); }

/* groups page */
.group-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
@media (max-width: 1180px) { .group-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px) { .group-grid { grid-template-columns: 1fr 1fr; gap: 12px; } .group-card h2 { font-size: 15px; } }
.group-card { position: relative; padding: 16px 16px 24px; text-align: center; transition: transform .3s var(--ease); }
.group-card:hover { transform: translateY(-6px); }
.group-photo a { display: block; aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: var(--cream2); }
.group-photo img { width: 100%; height: 100%; object-fit: cover; }
.group-card h2 { font: 800 19px/1.3 var(--f-h); margin: 16px 0 6px; }
.group-cap { font-weight: 700; color: var(--muted); }
.group-cap strong { color: var(--green); font: 800 22px var(--f-h); }
.group-card .age { left: 22px; top: 22px; }

/* founder page */
.founder-hero { display: grid; grid-template-columns: 380px 1fr; gap: 50px; align-items: start; }
.founder-portrait { position: relative; }
.founder-portrait .fp-img { aspect-ratio: 3/4; border-radius: 200px 200px 34px 34px; overflow: hidden; border: 10px solid #fff; box-shadow: var(--sh2); background: var(--cream2); }
.founder-portrait .fp-img img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.founder-portrait .fp-sprout { position: absolute; right: -20px; top: -30px; width: 90px; transform-origin: 50% 100%; }
.founder-portrait .chip { position: absolute; left: -20px; bottom: 30px; }
.founder-body .script { color: var(--green); font-size: 30px; }
.founder-body h2 { font: 800 clamp(28px, 3vw, 42px)/1.15 var(--f-h); color: var(--forest); margin: 6px 0 10px; }
.staff-pos { color: var(--muted); font-weight: 800; }
.founder-quote { margin: 26px 0; padding: 26px 30px; background: var(--forest); color: #fff; border-radius: 26px 26px 26px 6px; font: 700 20px/1.45 var(--f-b); position: relative; }
.founder-quote::before { content: "“"; position: absolute; left: 18px; top: -26px; font: 800 80px/1 var(--f-h); color: var(--lime); }
.founder-blocks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.founder-block { background: #fff; border-radius: var(--r-lg); padding: 32px; box-shadow: var(--sh); }
.founder-block:nth-child(2) { background: linear-gradient(160deg, #1f4f27, #173f22); color: #fff; }
.founder-block:nth-child(2) .founder-block-head { color: #fff; }
.founder-block-head { display: flex; align-items: center; gap: 14px; font: 800 21px/1.3 var(--f-h); color: var(--forest); margin-bottom: 20px; }
.founder-facts li, .founder-timeline li, .founder-awards li { display: flex; gap: 14px; align-items: flex-start; padding: 11px 0; border-bottom: 1px solid rgba(120, 140, 120, .18); font-weight: 700; }
.founder-facts li:last-child, .founder-timeline li:last-child, .founder-awards li:last-child { border: 0; }
.founder-facts .icon { color: var(--green); margin-top: 3px; }
.founder-year { font: 800 14px var(--f-h); background: var(--lime); color: var(--forest); border-radius: 999px; padding: 4px 11px; flex: none; }
.founder-awards .founder-year { background: var(--yellow); }

/* team */
.staff-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; }
.staff-card { overflow: hidden; }
.staff-photo { aspect-ratio: 4/5; background: var(--cream2); display: grid; place-items: center; }
.staff-photo img { width: 100%; height: 100%; object-fit: cover; }
.staff-body { padding: 20px 22px 24px; }
.staff-meta { margin-top: 12px; font-size: 14px; }
.staff-meta dt { color: var(--muted); font-weight: 700; }
.staff-meta dd { font-weight: 700; margin-bottom: 8px; }
.media-placeholder { display: grid; place-items: center; width: 100%; height: 100%; color: var(--green); background: var(--cream2); }
.media-placeholder .icon { width: 42px; height: 42px; }

/* news */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.news-card { overflow: hidden; display: flex; flex-direction: column; transition: transform .3s var(--ease); }
.news-card:hover { transform: translateY(-6px); }
.news-card-media { display: block; aspect-ratio: 16/10; background: var(--cream2); overflow: hidden; }
.news-card-media img { width: 100%; height: 100%; object-fit: cover; }
.news-card-body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.news-card time { color: var(--green); font-weight: 800; font-size: 14px; }
.news-card h3 { font: 800 19px/1.3 var(--f-h); }
.news-card p { color: var(--muted); font-weight: 600; font-size: 15px; flex: 1; }
.pager { display: flex; gap: 8px; justify-content: center; margin-top: 40px; }
.pager a { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: #fff; font-weight: 800; box-shadow: var(--sh); }
.pager a[aria-current] { background: var(--green); color: #fff; }
.narrow { width: min(820px, 100% - 48px); }
.article { background: #fff; border-radius: var(--r-lg); padding: 40px; box-shadow: var(--sh); }
.article-date { color: var(--green); font-weight: 800; }
.article-image { width: 100%; border-radius: var(--r); margin: 20px 0; }

/* attestation */
.att-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: att; }
.att-item { position: relative; display: flex; flex-direction: column; gap: 14px; height: 100%; background: #fff; border-radius: var(--r); padding: 26px 26px 28px; box-shadow: var(--sh); transition: transform .3s var(--ease); overflow: hidden; }
.att-item::after { content: ""; position: absolute; right: -30px; bottom: -30px; width: 110px; height: 110px; background: url(../img/sprout.png) center/contain no-repeat; opacity: .07; }
.att-item:hover { transform: translateY(-6px); }
.att-num { width: 52px; height: 52px; border-radius: 50% 50% 50% 14%; display: grid; place-items: center; background: var(--green); color: #fff; font: 800 18px var(--f-h); }
.att-list > li:nth-child(3n + 2) .att-num { background: var(--yellow); color: var(--forest); }
.att-list > li:nth-child(3n) .att-num { background: var(--coral); }
.att-name { font: 800 18px/1.35 var(--f-h); color: var(--forest); padding-right: 30px; flex: 1; }
.att-count { align-self: flex-start; background: var(--cream2); color: var(--green-d); border-radius: 999px; padding: 4px 12px; font-weight: 800; font-size: 14px; }
.att-count.is-empty { background: #f3f3ef; color: #9aa39b; }
.att-item .arr { top: 26px; }
.doc-groups { display: grid; gap: 18px; }
.doc-folder { background: #fff; border-radius: var(--r); box-shadow: var(--sh); overflow: hidden; }
.doc-folder summary { display: flex; align-items: center; gap: 12px; padding: 20px 24px; font: 800 17px/1.3 var(--f-h); color: var(--forest); cursor: pointer; list-style: none; }
.doc-folder summary::-webkit-details-marker { display: none; }
.doc-folder summary .icon { color: var(--green); width: 22px; height: 22px; }
.doc-folder summary span:first-of-type { flex: 1; }
.doc-folder .doc-list { padding: 0 14px 14px; }
.doc-list { display: grid; gap: 8px; }
.doc { display: flex; align-items: center; gap: 16px; background: #fff; border-radius: 16px; padding: 14px 18px; border: 2px solid #eef2e6; transition: border-color .2s, transform .2s; }
.doc-groups > .doc-list .doc { box-shadow: var(--sh); border-color: transparent; }
.doc:hover { border-color: var(--lime); transform: translateX(4px); }
.doc-ext { width: 50px; height: 50px; flex: none; border-radius: 14px; display: grid; place-items: center; font: 800 12px var(--f-h); color: #fff; background: var(--green); }
.doc-ext-pdf { background: var(--coral); } .doc-ext-doc, .doc-ext-docx { background: #2a6f9f; } .doc-ext-xls, .doc-ext-xlsx { background: var(--green); } .doc-ext-jpg, .doc-ext-jpeg, .doc-ext-png, .doc-ext-webp { background: #8a650c; }
.doc-info { flex: 1; min-width: 0; }
.doc-info strong { display: block; font-weight: 800; overflow-wrap: anywhere; }
.doc-info small { color: var(--muted); font-weight: 600; }
.doc-open { display: inline-flex; align-items: center; gap: 6px; color: var(--green); font-weight: 800; font-size: 14px; white-space: nowrap; }

/* errors */
.error-page { text-align: center; padding: 40px 0; }
.error-code { font: 800 clamp(90px, 14vw, 170px)/1 var(--f-h); color: var(--lime); }
.error-page h1 { font: 800 34px/1.2 var(--f-h); color: var(--forest); margin: 10px 0; }
.error-page p { color: var(--muted); font-weight: 600; margin-bottom: 26px; }
.error-page .err-sprout { width: 110px; margin: 0 auto 10px; }

/* ---------- footer ---------- */
.site-footer { margin-top: 60px; color: #cfe0c8; }
.ftr-wave { display: block; width: 100%; height: 80px; }
.ftr-wave path { fill: var(--forest); }
.ftr-body { background: var(--forest); padding: 60px 0 30px; margin-top: -1px; }
.ftr-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; }
.ftr-brand .logo-img { width: 200px; height: auto; aspect-ratio: 372 / 220; }
.ftr-brand p { margin: 20px 0; font-size: 15px; max-width: 330px; }
.soc { display: flex; gap: 10px; }
.soc a { width: 42px; height: 42px; border-radius: 50%; background: rgba(255, 255, 255, .08); display: grid; place-items: center; transition: background .25s; }
.soc a:hover { background: var(--green); color: #fff; }
.ftr-title { font: 800 16px var(--f-h); color: #fff; margin-bottom: 16px; }
.ftr-links a { display: block; font-size: 15px; margin-bottom: 9px; font-weight: 600; transition: color .2s; }
.ftr-links a:hover { color: var(--lime); }
.ftr-legal { margin-top: 44px; font-size: 13px; color: #9fb79a; }
.ftr-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px 30px; margin-top: 14px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: 13px; color: #8fa88a; }
/* Карточки сотрудников (страница «Мамандар») — в стиле карточки основателя */
.mate-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 26px; }
.mate { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; background: radial-gradient(circle at 85% 90%, #3f8a33 0, transparent 50%), linear-gradient(160deg, #1f4f27, #173f22); color: #fff; border-radius: var(--r-lg); padding: 34px 28px 30px; box-shadow: var(--sh2); }
.mate-photo { width: 190px; aspect-ratio: 4/5; border-radius: 50% 50% 50% 18% / 42% 42% 42% 14%; border: 4px solid var(--lime); overflow: hidden; background: #fff; display: grid; place-items: center; }
.mate-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.mate-pos { margin-top: 20px; font-size: 19px; }
.mate-name { font: 800 22px/1.25 var(--f-h); margin-top: 4px; overflow-wrap: break-word; hyphens: auto; }
.mate-bio { margin-top: 18px; padding-left: 14px; border-left: 3px solid var(--lime); color: #dfeadb; font-weight: 600; text-align: left; align-self: stretch; }
.mate-meta { margin-top: 18px; align-self: stretch; text-align: left; font-size: 14px; border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 12px; }
.mate-meta div { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; }
.mate-meta dt { color: var(--lime2); font-weight: 700; }
.mate-meta dd { font-weight: 700; text-align: right; }
.mate-body { align-self: stretch; display: flex; flex-direction: column; align-items: center; }
.mate-path { align-self: stretch; text-align: left; margin-top: 18px; font-size: 15px; }
.mate-path b { font-size: 13px; white-space: nowrap; }
.mate-wide { grid-column: 1 / -1; flex-direction: row; align-items: flex-start; gap: 40px; text-align: left; padding: 44px; }
.mate-wide .mate-photo { width: 260px; flex: none; }
.mate-wide .mate-body { align-items: flex-start; flex: 1; min-width: 0; }
.mate-wide .mate-pos { margin-top: 0; }
.mate-wide .mate-path { columns: 2; column-gap: 36px; }
.mate-wide .mate-path li { break-inside: avoid; }
.mate-wide .mate-path li:last-child { border-bottom: 1px solid rgba(255, 255, 255, .1); }
@media (max-width: 900px) { .mate-wide { flex-direction: column; align-items: center; padding: 34px 24px; } .mate-wide .mate-body { align-items: center; text-align: center; } .mate-wide .mate-path { columns: 1; } .mate-wide .mate-photo { width: 200px; } }
/* декор внутри карточек сотрудников: солнце, цветы, росток из логотипа — только по углам, под содержимым */
.mate { overflow: hidden; isolation: isolate; }
.mate > .mate-photo, .mate > .mate-body { position: relative; z-index: 1; }
.mate-deco { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.mate-deco > * { position: absolute; }
.md-sun { width: 62px; top: 16px; right: 16px; opacity: .95; }
.md-flower .petals { fill: #fff; }
.md-flower .core { fill: var(--yellow); }
.md-f1 { width: 34px; top: 22px; left: 22px; opacity: .9; }
.md-f2 { width: 22px; top: 64px; left: 50px; opacity: .85; }
.md-f2 .petals { fill: #f4a3a8; }
.md-sprout { width: 70px; right: -6px; bottom: -8px; opacity: .14; transform: rotate(-12deg); }
.mate:nth-child(even) .md-sun { right: auto; left: 16px; }
.mate:nth-child(even) .md-f1 { left: auto; right: 22px; }
.mate:nth-child(even) .md-f2 { left: auto; right: 50px; }
.mate:nth-child(even) .md-sprout { right: auto; left: -6px; transform: scaleX(-1) rotate(-12deg); }
.mate-wide .md-sun { width: 80px; top: 22px; right: 26px; }
.mate-wide .md-f1 { top: auto; bottom: 34px; left: 40px; width: 40px; }
.mate-wide .md-f2 { top: auto; bottom: 80px; left: 96px; width: 26px; }
.mate-wide .md-sprout { width: 110px; opacity: .12; }
.mate { padding-bottom: 72px; }
.mate-wide { padding-bottom: 44px; }
@media (max-width: 900px) {
    .mate-wide { padding-bottom: 72px; }
    .mate-wide .md-sun { width: 52px; top: 14px; right: 14px; }
    .mate-wide .md-f1 { bottom: auto; top: 22px; left: 22px; width: 30px; }
    .mate-wide .md-f2 { bottom: auto; top: 60px; left: 46px; width: 20px; }
    .mate-wide .md-sprout { width: 70px; }
}
@media (max-width: 560px) { .md-sun { width: 52px; top: 14px; right: 14px; } .mate:nth-child(even) .md-sun { left: 14px; } .mate { padding-bottom: 72px; } }
.motion .md-sun { animation: spin 30s linear infinite; }
.motion .md-flower { animation: md-sway 5s ease-in-out infinite alternate; transform-origin: 50% 90%; }
.motion .md-f2 { animation-delay: -2.5s; }
@keyframes md-sway { from { transform: rotate(-8deg); } to { transform: rotate(8deg); } }
@media (prefers-reduced-motion: reduce) { .motion .md-sun, .motion .md-flower { animation: none; } }
@media (max-width: 560px) { .mate-grid { grid-template-columns: 1fr; } .mate { padding: 30px 20px 72px; } .mate-photo { width: 170px; } }
.staff-login { display: inline-flex; align-items: center; gap: 6px; padding: 10px 0; }
.staff-login:hover { color: #fff; }

/* ---------- to top + lightbox ---------- */
.to-top { position: fixed; right: 22px; bottom: 22px; z-index: 40; width: 52px; height: 52px; border: 0; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; box-shadow: var(--sh2); cursor: pointer; opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity .3s, transform .3s, visibility .3s; }
.to-top .icon { transform: rotate(-90deg); }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.lightbox { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 20px; background: rgba(15, 35, 20, .92); }
.lightbox figure { margin: 0; max-width: 100%; text-align: center; color: #fff; }
.lightbox img { max-height: 82vh; max-width: 100%; border-radius: 18px; margin: 0 auto; transition: opacity .15s; }
.lightbox img.is-switching { opacity: 0; }
.lightbox figcaption { margin-top: 12px; font-weight: 700; }
.lightbox button { position: absolute; border: 0; background: rgba(255, 255, 255, .15); color: #fff; width: 50px; height: 50px; border-radius: 50%; font-size: 1.6rem; cursor: pointer; }
.lightbox button:hover { background: var(--green); }
.lightbox .lb-close { top: 16px; right: 16px; } .lightbox .lb-prev { left: 12px; top: 50%; } .lightbox .lb-next { right: 12px; top: 50%; }
.motion .lightbox { animation: fade-in .3s both; }
.motion .lightbox.is-closing { animation: fade-out .18s both; }
.img-fade { opacity: 0; transition: opacity .5s; } .img-fade.is-loaded { opacity: 1; }

/* ---------- motion ---------- */
.motion .rv { opacity: 0; transform: translateY(40px); transition: opacity .9s var(--d, 0s) var(--ease), transform .9s var(--d, 0s) var(--ease); }
.motion .rv.in { opacity: 1; transform: none; }
.d1 { --d: .08s; } .d2 { --d: .16s; } .d3 { --d: .24s; } .d4 { --d: .32s; } .d5 { --d: .4s; } .d6 { --d: .48s; } .d7 { --d: .56s; } .d8 { --d: .64s; }
.motion .crown, .motion .ph-crown, .motion .mini { animation: pop 1s .2s both cubic-bezier(.2, .9, .3, 1.2); }
.motion .hero .trunk, .motion .ph-trunk { animation: rise 1s .1s both; }
.motion .hero-sprout, .motion .ph-sprout, .motion .t-sprout, .motion .fp-sprout, .motion .clubs-sprout { animation: sway 5s ease-in-out infinite; }
.motion .chip-a, .motion .page-head .l1, .motion .hero-art .l1 { animation: float 5s ease-in-out infinite; }
.motion .chip-b, .motion .page-head .l2, .motion .hero-art .l2 { animation: float 6s 1s ease-in-out infinite; }
.motion .hero-art .l3 { animation: float 5s 1.5s ease-in-out infinite; }
.motion .cloud { animation: drift 9s ease-in-out infinite; }
.motion .sun { animation: spin 30s linear infinite; }
.motion .orbit { animation: spin 80s linear infinite; }
.motion .pin i { animation: bounce 1.6s ease-in-out infinite; }
.motion .grow img { transform: scale(0); transition: transform 1s cubic-bezier(.2, .9, .3, 1.3); }
.motion .grow .g-sp { transition-delay: .4s; }
.motion .growth.in .grow img { transform: scale(1); }
.motion .growth.in .g-sp { animation: sway 5s 1.5s ease-in-out infinite; }
@keyframes sway { 0%, 100% { rotate: -4deg; } 50% { rotate: 4deg; } }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }
@keyframes drift { 0%, 100% { translate: 0 0; } 50% { translate: 22px 0; } }
@keyframes spin { to { rotate: 360deg; } }
@keyframes pop { from { opacity: 0; scale: .6; } to { opacity: 1; scale: 1; } }
@keyframes rise { from { opacity: 0; translate: 0 60px; } to { opacity: 1; translate: 0 0; } }
@keyframes bounce { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
@keyframes scroll-l { to { transform: translateX(-50%); } }
@keyframes scroll-r { from { transform: translateX(-50%); } to { transform: translateX(0); } }
@keyframes fade-in { from { opacity: 0; } }
@keyframes fade-out { to { opacity: 0; } }

/* ---------- responsive ---------- */
/* Меню, язык и кнопка в одну строку на любой ширине компьютера */
.menu { font-size: 14.5px; }
.menu > li > a { padding: 10px 7px; }
@media (max-width: 1280px) {
    .menu { font-size: 14px; }
    .menu > li > a { padding: 10px 5px; }
    .hdr-cta { padding: 12px 16px; font-size: 14px; }
    .site-header .brand .logo-img { height: 68px; }
}
@media (max-width: 1240px) {
    .header-inner { gap: 10px; }
    .menu > li > a { padding: 10px 4px; }
    .site-header .brand .logo-img { height: 60px; }
    .hdr-lang .lang > * { padding: 8px 10px; }
}
@media (max-width: 1180px) {
    :root { --hdr: 80px; }
    .tb-hours, .tb-mail { display: none; }
    .hdr-cta { display: none; }
    .nav-toggle { display: grid; }
    .site-header { background: var(--cream); }
    .site-nav { position: fixed; left: 0; right: 0; top: var(--nav-top, 80px); bottom: 0; margin: 0; padding: 18px 24px 40px; background: var(--cream); overflow-y: auto; overscroll-behavior: contain; display: none; z-index: -1; border-top: 1px solid #e6ecdc; }
    .nav-open .site-nav { display: block; animation: nav-in .35s var(--ease) both; }
    .nav-open { overflow: hidden; }
    .menu { flex-direction: column; gap: 0; font-size: 20px; white-space: normal; }
    .menu > li { border-bottom: 1px solid #e6ecdc; }
    .menu > li > a { padding: 16px 4px; width: 100%; font-family: var(--f-h); font-weight: 700; font-size: 19px; }
    .menu > li > a::after, .caret { display: none; }
    .menu .sub, .menu .has-sub:hover .sub { position: static; display: block; animation: none; box-shadow: none; background: none; padding: 0 0 12px 12px; min-width: 0; }
    .menu .sub a { padding: 8px 10px; font-size: 16px; }
    .nav-mobile-extra { display: grid; gap: 12px; margin-top: 26px; }
    .header-inner { position: relative; }
    .hero-in, .ph-inner { grid-template-columns: 1fr; }
    .hero-art { height: 560px; max-width: 620px; margin: 0 auto; width: 100%; }
    .ph-art { display: none; }
    .page-head { padding-bottom: 120px; }
    .tiles { grid-template-columns: 1fr 1fr; }
    .about, .parents, .contacts, .split, .founder-hero { grid-template-columns: 1fr; }
    .side-cards { position: static; }
    .clubs { grid-template-columns: 1fr 1fr; }
    .stairs { grid-template-columns: repeat(5, minmax(150px, 1fr)); overflow-x: auto; padding: 0 4px 10px; }
    .att-list { grid-template-columns: 1fr 1fr; }
    .feature-grid { grid-template-columns: 1fr 1fr; }
    .founder-blocks { grid-template-columns: 1fr; }
    .founder-portrait { max-width: 380px; }
    .photo-grid.is-even { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
}
@media (max-width: 700px) {
    body { font-size: 16px; }
    .container, .narrow { width: calc(100% - 32px); }
    .tb-addr { display: none; }
    .topbar-in { justify-content: flex-end; }
    .site-header .brand .logo-img { height: 58px; }
    .hero { padding-top: 30px; }
    .hero-art { height: 440px; }
    .chip-a { top: 230px; } .chip-b { top: auto; bottom: 70px; }
    .founder-portrait .chip { left: 10px; }
    .founder-portrait .fp-sprout { right: 4px; width: 70px; }
    .stats { margin-bottom: 10px; }
    .hero-art { height: 420px; }
    .stairs { grid-template-columns: repeat(5, 44%); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 0 12px; margin-top: 10px; scrollbar-width: none; }
    .stairs::-webkit-scrollbar { display: none; }
    .g-col { scroll-snap-align: start; }
    .g1 { --lift: 0px; } .g2 { --lift: 14px; } .g3 { --lift: 28px; } .g4 { --lift: 42px; } .g5 { --lift: 56px; }
    .g-card { margin-bottom: 10px; }
    .grow { height: calc(235px * var(--s)); }
    .g-sp { width: calc(110px * var(--s)); } .g-tr { width: calc(120px * var(--s)); height: calc(80px * var(--s)); }
    .clubs { grid-template-columns: 1fr 1fr; gap: 12px; }
    .club { padding: 6px 6px 14px; border-radius: 18px; }
    .club h3 { font-size: 15px; margin: 12px 6px 6px; }
    .club p { font-size: 13px; margin: 0 6px 10px; }
    .c-link { margin: 0 6px; font-size: 13px; }
    .club-cta { grid-column: 1 / -1; padding: 24px; }
    .g-name { font-size: 15px; overflow-wrap: anywhere; }
    .g-card { padding: 12px 12px 16px; }
    .stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 0; width: 100%; }
    .stats > div:nth-child(3) { border: 0; }
    .stats dt { font-size: 30px; }
    .tiles { transform: translateY(-30px); margin-bottom: -30px; }
    .tiles, .values, .att-list, .feature-grid { grid-template-columns: 1fr; }
    .sec { padding: 80px 0; }
    .sec-head { flex-direction: column; align-items: flex-start; }
    .mosaic { grid-template-columns: 1fr; grid-template-rows: none; }
    .mosaic > a { height: 240px; } .mosaic .m1 { grid-row: auto; }
    .clubs-sec { padding: 0 8px; }
    .clubs-box { border-radius: 36px; padding: 70px 0; }
    .clubs-sprout { width: 70px; top: 24px; }
    .founder-card, .consult, .facts, .article, .room { padding: 26px 22px; }
    .f-name { font-size: 20px; }
    .f-photo { width: 84px; height: 84px; }
    .ftr-grid { grid-template-columns: 1fr 1fr; }
    .ftr-brand { grid-column: 1 / -1; }
    .map { min-height: 380px; }
    .step { padding: 22px 18px; gap: 16px; }
    .sn { width: 62px; height: 62px; font-size: 19px; margin: -4px 0 0 -6px; }
    .steps::before { left: 30px; }
    .photo-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .photo-grid.is-even { grid-template-columns: repeat(2, 1fr); }
    .doc { flex-wrap: wrap; }
    .doc { padding: 12px; gap: 12px; }
    .doc-info { flex: 1 1 calc(100% - 70px); }
    .doc-ext { width: 46px; height: 46px; }
    .doc-open { margin-left: 58px; }
    .doc-folder .doc-list { padding: 0 8px 8px; }
    .doc-folder summary { padding: 18px 16px; font-size: 16px; }
    .facts dl > div { grid-template-columns: 1fr; gap: 2px; }
    .s1 { width: 250px; } .s2 { width: 200px; } .s3 { width: 280px; } .s4 { width: 220px; }
    .ev { height: 200px; }
    .ev span { font-size: 13px; padding: 5px 11px; bottom: 14px; }
    .ev.s2 span { bottom: 24px; }
    .to-top { right: 14px; bottom: 14px; width: 46px; height: 46px; }
}

/* ---------- inner page extras ---------- */
.tiles.tiles-static { transform: none; margin: 0; }
.room-head > div { flex: 1; }
.room-count { display: inline-flex; align-items: center; gap: 6px; background: var(--cream2); color: var(--green-d); border-radius: 999px; padding: 6px 12px; font-weight: 800; font-size: 14px; flex: none; }
.room-c1 .feature-icon { background: #fff0c4; color: #c8941a; }
.room-c2 .feature-icon { background: #fde3df; color: #e8604a; }
.room-c3 .feature-icon { background: #dceffa; color: #3b8dc4; }
.chips .icon { width: 17px; height: 17px; }
.consult-lime { background: var(--lime); }
.consult-lime p { color: #2f4f2a; }
.empty-big { flex-direction: row; gap: 28px; text-align: left; justify-content: flex-start; padding: 40px; }
.empty-sprout { width: 80px; flex: none; }
.empty-big p:first-child { font: 800 20px/1.3 var(--f-h); color: var(--forest); }
.empty-sub { margin-top: 6px; }
.empty-btns { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.article-back { margin-top: 26px; }
.doc-folder summary .caret { width: 20px; height: 20px; color: var(--muted); }
.doc-folder[open] summary .caret { transform: rotate(180deg); }
.group-card .age { left: 22px; top: 22px; }
.groups-page { padding-top: 90px; }
.founder-bio { margin-top: 10px; }
@media (max-width: 700px) {
    .empty-big { flex-direction: column; text-align: center; align-items: center; padding: 30px 20px; }
    .empty-btns { justify-content: center; }
    .room-head { flex-wrap: wrap; gap: 14px; }
    .room-head > div { flex: 1 1 calc(100% - 74px); }
    .room-head .h3 { font-size: 17px; }
    .room-count { margin-left: 70px; }
}

@keyframes nav-in { from { opacity: 0; transform: translateX(40px); } }

/* ---------- узкие экраны и крупный текст: колонки не распираются длинными словами ---------- */
.about > *, .parents > *, .contacts > *, .split > *, .founder-hero > *, .sec-head > *, .val > div, .step > div, .cc > div, .att-card > span, .room-head > div, .f-head > div { min-width: 0; }
.h2, .h3, .val h3, .step h3, .consult h3, .club h3, .att-name, .founder-body h2, .founder-block-head, .tile-title, .g-name, .f-name { overflow-wrap: break-word; hyphens: auto; }
.cc b, .doc-info strong { overflow-wrap: anywhere; }
@media (max-width: 360px) {
    .h2 { font-size: 25px; }
    .page-head h1 { font-size: 27px; }
    .val h3, .step h3 { font-size: 16px; }
    .hero-title .big { font-size: 52px; }
    .vi { width: 46px; height: 46px; }
    .val { padding: 18px; gap: 12px; }
}

/* Колонки не шире экрана даже с длинным словом (вложенные grid: min-content слова распирал трек) */
.side-cards, .founder-blocks, .cards, .doc-groups, .room-list, .steps, .values, .feature-grid, .clubs { min-width: 0; }
@media (max-width: 1180px) {
    .side-cards, .founder-blocks, .cards, .doc-groups, .room-list { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 700px) {
    .values, .feature-grid, .att-list, .tiles { grid-template-columns: minmax(0, 1fr); }
    .clubs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .consult h3 { font-size: 21px; }
}
.consult h3, .founder-block-head, .founder-facts li, .founder-timeline li, .founder-awards li, .att-card b { overflow-wrap: anywhere; hyphens: auto; }

/* Переключатель языка — всегда в шапке рядом с кнопкой */
.hdr-lang .lang { background: #e8efdc; }
.hdr-lang .lang > * { color: var(--green-d); font-size: 13px; padding: 9px 14px; }
.hdr-lang .lang .lang-on { background: var(--green); color: #fff; }
.hdr-lang .lang a:hover { color: var(--forest); background: #dbe8c8; }
@media (max-width: 1180px) { .hdr-lang .lang > * { padding: 9px 12px; } }

/* Телефон: в «дереве» на главной плашки не закрывают фото — стоят рядом под стволом */
@media (max-width: 700px) {
    .hero-art { height: 465px; }
    .crown { left: 17%; top: 40px; width: 66%; }
    .hero-sprout { left: 4%; top: 0; width: 26%; }
    .trunk { top: 255px; left: 33%; width: 34%; }
    .hero-art .mini, .hero-art .l3 { display: none; }
    .orbit { left: 9%; top: 6px; width: 82%; }
    .hero-art .sun { width: 84px; top: 20px; }
    .hero-art .cloud { width: 96px; top: 6px; }
    .chip { padding: 10px 12px 10px 10px; gap: 10px; }
    .chip b { font-size: 14px; } .chip small { font-size: 12px; }
    .ci { width: 34px; height: 34px; }
    .chip-a { left: 0; top: auto; bottom: 0; }
    .chip-b { right: 0; top: auto; bottom: 0; }
    .motion .chip-a, .motion .chip-b { animation: none; }
    .hero-art { margin-bottom: 30px; }
    .tiles { transform: none; margin-bottom: 0; padding-top: 8px; }
}

/* Производительность: анимации блоков за пределами экрана стоят на паузе (класс ставит theme.js) */
.motion .is-off *, .motion .is-off *::before, .motion .is-off *::after { animation-play-state: paused !important; }
