/* ============================================================
   Портал «НКО.Рязань» — редизайн в стиле club-socialfi
   Соченый синий, гигантская типографика, лаймовые акценты,
   стикеры-карточки, круговой текст, волнистые скобки.
   ============================================================ */
:root {
    --blue: #2159b2;
    --blue-deep: #143d85;
    --blue-dark: #0d2a63;
    --blue-ink: #0a1f4d;
    --lime: #c6f24e;
    --lime-deep: #a8d932;
    --green: #5bc460;
    --cream: #fef9ff;
    --white: #ffffff;
    --ink: #0e1b3a;
    --muted-on-blue: rgba(255,255,255,.78);
    --radius-xl: 42px;
    --radius-lg: 28px;
    --radius-md: 20px;
    --font: 'Montserrat', 'Segoe UI', system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    background: var(--blue);
    color: var(--white);
    line-height: 1.6;
    overflow-x: clip;
}
html, body { overflow-x: clip; }

::selection { background: var(--lime); color: var(--blue-ink); }

/* ------- фоновые полосы-диагонали как на референсе ------- */
.bg-stripes { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.bg-stripes::before {
    content: ''; position: absolute; inset: -20%;
    background:
        radial-gradient(60% 45% at 18% 8%, rgba(255,255,255,.13) 0%, transparent 60%),
        radial-gradient(50% 40% at 88% 30%, rgba(90,180,255,.16) 0%, transparent 65%),
        radial-gradient(55% 42% at 70% 88%, rgba(198,242,78,.10) 0%, transparent 60%),
        linear-gradient(115deg, var(--blue) 0%, var(--blue-deep) 48%, var(--blue-dark) 100%);
}
.bg-stripes::after {
    content: ''; position: absolute; inset: 0;
    background: repeating-linear-gradient(115deg, transparent 0 110px, rgba(255,255,255,.045) 110px 190px);
    animation: stripesDrift 30s linear infinite;
}
@keyframes stripesDrift { from { transform: translateX(0); } to { transform: translateX(300px); } }

.container { width: min(1280px, 92%); margin: 0 auto; }

/* ------- шапка-таблетка ------- */
.site-header { position: sticky; top: 14px; z-index: 90; padding: 0 14px; }
.header-pill {
    width: min(1280px, 100%); margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between; gap: 14px;
    background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.22);
    border-radius: 999px; padding: 10px 12px 10px 20px;
    backdrop-filter: blur(16px);
    transition: background .35s, box-shadow .35s;
}
.site-header.scrolled .header-pill { background: rgba(13,42,99,.88); box-shadow: 0 18px 50px rgba(5,15,45,.5); }
.logo-link { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--white); }
.logo-link img { height: 44px; width: auto; }
.logo-text b { display: block; font-size: 16px; font-weight: 900; letter-spacing: .03em; }
.logo-text span { display: block; font-size: 10.5px; color: var(--muted-on-blue); letter-spacing: .12em; text-transform: uppercase; }

.main-nav { display: flex; gap: 2px; flex-wrap: wrap; }
.main-nav a {
    color: rgba(255,255,255,.85); text-decoration: none; font-size: 13px; font-weight: 700;
    padding: 9px 13px; border-radius: 999px; transition: all .25s;
}
.main-nav a:hover { color: var(--blue-ink); background: var(--lime); }
.main-nav a.active { color: var(--blue-ink); background: var(--lime); }

.header-cta {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--white); color: var(--blue-ink); text-decoration: none;
    font-size: 13px; font-weight: 800; padding: 12px 22px; border-radius: 999px;
    transition: transform .25s, box-shadow .25s; white-space: nowrap;
}
.header-cta:hover { transform: translateY(-2px) scale(1.03); box-shadow: 0 12px 30px rgba(0,0,0,.3); }

.burger { display: none; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.3); border-radius: 12px; padding: 10px 12px; cursor: pointer; }
.burger span { display: block; width: 20px; height: 2px; background: var(--white); margin: 4px 0; border-radius: 2px; }

/* ------- бегущая строка ------- */
.ticker-wrap { background: var(--blue-ink); border-bottom: 1px solid rgba(255,255,255,.12); overflow: clip; white-space: nowrap; position: relative; z-index: 2; max-width: 100vw; contain: paint; }
.ticker { display: inline-flex; gap: 60px; padding: 10px 0; animation: tickerMove 36s linear infinite; }
.ticker-wrap:hover .ticker { animation-play-state: paused; }
.ticker span { color: rgba(255,255,255,.9); font-size: 13px; font-weight: 700; display: inline-flex; align-items: center; gap: 12px; }
.ticker span::after { content: '✦'; color: var(--lime); font-size: 11px; }
@keyframes tickerMove { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ------- HERO ------- */
.hero { position: relative; padding: 84px 0 60px; text-align: center; }
.hero-badge {
    display: inline-flex; align-items: center; gap: 10px; padding: 9px 20px; border-radius: 999px;
    background: rgba(198,242,78,.14); border: 1.5px solid rgba(198,242,78,.55);
    color: var(--lime); font-size: 12.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
    animation: pulseBadge 2.8s ease-in-out infinite;
}
@keyframes pulseBadge { 0%,100% { box-shadow: 0 0 0 0 rgba(198,242,78,.35); } 50% { box-shadow: 0 0 0 14px rgba(198,242,78,0); } }

.hero-title {
    position: relative; margin: 30px auto 8px; max-width: 1150px;
    font-size: clamp(54px, 10.5vw, 150px); line-height: .92; font-weight: 900;
    letter-spacing: -.02em; text-transform: uppercase;
}
.hero-title .row { display: block; position: relative; }
.hero-title .row:nth-child(2) { margin-left: .6em; }
.hero-title .row:nth-child(3) { margin-left: .25em; }
.hero-title .outline {
    color: transparent;
    -webkit-text-stroke: 2.5px rgba(255,255,255,.9);
    text-stroke: 2.5px rgba(255,255,255,.9);
}
.hero-title .lime-word {
    color: var(--lime);
    text-shadow: 0 0 40px rgba(198,242,78,.35);
    display: inline-block;
    animation: limeGlow 3.2s ease-in-out infinite alternate;
}
@keyframes limeGlow { from { text-shadow: 0 0 24px rgba(198,242,78,.25); } to { text-shadow: 0 0 60px rgba(198,242,78,.55); } }

/* курсивные «рукописные» вставки как на референсе */
.hero-title .script-word {
    font-family: 'Montserrat', cursive;
    font-style: italic; font-weight: 700;
    text-transform: none; letter-spacing: 0;
    color: var(--white);
    position: relative; display: inline-block;
    transform: rotate(-4deg);
    filter: drop-shadow(0 6px 18px rgba(0,0,0,.25));
}

/* зелёные скобки-подчёркивания */
.squiggle { display: block; margin: 6px auto 0; width: min(420px, 60%); }
.squiggle path {
    stroke: var(--lime); stroke-width: 7; fill: none; stroke-linecap: round;
    stroke-dasharray: 600; stroke-dashoffset: 600;
    animation: drawSquiggle 1.6s .5s cubic-bezier(.2,.8,.2,1) forwards;
}
@keyframes drawSquiggle { to { stroke-dashoffset: 0; } }

.hero-sub { max-width: 760px; margin: 30px auto 0; color: var(--muted-on-blue); font-size: 17.5px; }
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-top: 36px; }

.btn {
    display: inline-flex; align-items: center; gap: 10px; padding: 17px 34px; border-radius: 999px;
    font-weight: 900; font-size: 15px; text-decoration: none; border: none; cursor: pointer;
    transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s; font-family: var(--font);
}
.btn-lime { background: var(--lime); color: var(--blue-ink); box-shadow: 0 14px 36px rgba(198,242,78,.35); }
.btn-lime:hover { transform: translateY(-3px) scale(1.03); box-shadow: 0 20px 50px rgba(198,242,78,.5); }
.btn-white { background: var(--white); color: var(--blue-ink); box-shadow: 0 14px 36px rgba(0,0,0,.25); }
.btn-white:hover { transform: translateY(-3px) scale(1.03); }
.btn-ghost { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,.5); }
.btn-ghost:hover { border-color: var(--lime); color: var(--lime); transform: translateY(-3px); }

/* стикеры-карточки поверх hero (как фото-стикеры в референсе) */
.hero-stickers { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.sticker {
    position: absolute; width: 150px; border-radius: 22px; padding: 10px;
    background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.35);
    backdrop-filter: blur(10px); box-shadow: 0 24px 60px rgba(5,15,45,.45);
    animation: stickerFloat 7s ease-in-out infinite;
    pointer-events: auto;
}
.sticker img { width: 100%; border-radius: 14px; display: block; }
.sticker .cap { font-size: 11px; font-weight: 800; color: var(--white); text-align: center; padding-top: 8px; letter-spacing: .04em; }
.sticker.s1 { left: 4%; top: 24%; transform: rotate(-10deg); }
.sticker.s2 { right: 5%; top: 20%; transform: rotate(9deg); animation-delay: -2.4s; }
.sticker.s3 { left: 9%; bottom: 12%; transform: rotate(7deg); animation-delay: -4.8s; width: 132px; }
@keyframes stickerFloat { 0%,100% { translate: 0 0; } 50% { translate: 0 -16px; } }

/* круговой текст-стамп */
.stamp {
    position: absolute; right: max(3%, 24px); bottom: 6%; width: 130px; height: 130px; z-index: 2;
    display: flex; align-items: center; justify-content: center;
    animation: stampSpin 16s linear infinite;
}
.stamp svg { position: absolute; inset: 0; }
.stamp text { fill: var(--lime); font-size: 12.5px; font-weight: 800; letter-spacing: .22em; }
.stamp .stamp-core {
    width: 62px; height: 62px; border-radius: 50%; background: var(--lime);
    display: flex; align-items: center; justify-content: center;
    color: var(--blue-ink); font-weight: 900; font-size: 24px;
    box-shadow: 0 10px 30px rgba(198,242,78,.45);
}
@keyframes stampSpin { to { transform: rotate(360deg); } }

/* ------- белые скруглённые «листы» контента ------- */
.sheet {
    background: var(--cream); color: var(--ink);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    margin-top: 70px; position: relative; z-index: 3;
}
.sheet-inner { padding: 90px 0 80px; }
.sheet h2, .sheet .section-tag { color: var(--ink); }

/* секции на синем фоне */
.section { padding: 90px 0; position: relative; }
.section-tag {
    display: inline-block; font-size: 12.5px; font-weight: 900; letter-spacing: .2em; text-transform: uppercase;
    color: var(--lime); margin-bottom: 16px;
}
.section-tag::before { content: '✦ '; }
.sheet .section-tag { color: var(--blue); }
.section h2 { font-size: clamp(32px, 5vw, 58px); font-weight: 900; letter-spacing: -.015em; line-height: 1.05; text-transform: uppercase; }
.section h2 .accent { color: var(--lime); }
.sheet h2 .accent { color: var(--blue); }
.section-lead { color: var(--muted-on-blue); max-width: 680px; margin-top: 16px; font-size: 17px; }
.sheet .section-lead { color: rgba(14,27,58,.7); }

/* reveal-анимации */
.reveal { opacity: 0; transform: translateY(42px); transition: opacity .8s cubic-bezier(.2,.8,.2,1), transform .8s cubic-bezier(.2,.8,.2,1); }
.reveal.visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: .1s; } .reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; } .reveal-delay-4 { transition-delay: .4s; }

/* ------- буллеты «О портале»: белый текст на синем, как на 2-м референсе ------- */
.about-list { margin-top: 50px; display: flex; flex-direction: column; gap: 0; max-width: 860px; }
.about-item {
    display: flex; gap: 26px; align-items: flex-start; padding: 26px 10px;
    border-bottom: 1px solid rgba(255,255,255,.18);
    transition: background .3s, padding-left .3s;
}
.about-item:first-child { border-top: 1px solid rgba(255,255,255,.18); }
.about-item:hover { background: rgba(255,255,255,.06); padding-left: 22px; }
.about-item .idx { font-size: 14px; font-weight: 900; color: var(--lime); min-width: 44px; padding-top: 5px; letter-spacing: .1em; }
.about-item h3 { font-size: clamp(20px, 2.6vw, 30px); font-weight: 900; text-transform: uppercase; letter-spacing: -.01em; }
.about-item p { color: var(--muted-on-blue); font-size: 15px; margin-top: 6px; max-width: 560px; }

/* ------- карточки-«скобки» на кремовом листе ------- */
.cards-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 52px; }
.info-card {
    background: var(--white); border-radius: var(--radius-lg); padding: 34px 26px;
    border: 1.5px solid rgba(14,27,58,.09); position: relative; overflow: hidden;
    transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s;
}
.info-card::before {
    content: ''; position: absolute; top: 18px; left: 26px; width: 34px; height: 34px;
    border-top: 3.5px solid var(--blue); border-left: 3.5px solid var(--blue);
    border-radius: 10px 0 0 0; opacity: .85;
}
.info-card::after {
    content: ''; position: absolute; bottom: 18px; right: 26px; width: 34px; height: 34px;
    border-bottom: 3.5px solid var(--lime-deep); border-right: 3.5px solid var(--lime-deep);
    border-radius: 0 0 10px 0;
}
.info-card:hover { transform: translateY(-10px) rotate(-.5deg); box-shadow: 0 30px 60px rgba(14,27,58,.14); }
.info-card .num {
    font-size: 12px; font-weight: 900; color: var(--blue); letter-spacing: .14em;
    margin: 26px 0 14px; display: block;
}
.info-card h3 { font-size: 18px; font-weight: 900; margin-bottom: 10px; text-transform: uppercase; letter-spacing: -.01em; }
.info-card p { color: rgba(14,27,58,.66); font-size: 14px; }

/* ------- результаты: огромные цифры как в референсе 1 ------- */
.stats-band {
    margin-top: 54px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px;
}
.stat-item {
    background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.22);
    border-radius: var(--radius-md); padding: 30px 18px; text-align: center;
    transition: transform .3s, background .3s;
}
.stat-item:hover { transform: translateY(-6px); background: rgba(255,255,255,.14); }
.stat-value { font-size: clamp(36px, 4.4vw, 58px); font-weight: 900; line-height: 1; color: var(--white); font-variant-numeric: tabular-nums; }
.stat-value .suffix { color: var(--lime); }
.stat-label { color: var(--muted-on-blue); font-size: 13px; margin-top: 12px; font-weight: 600; }

/* ------- реестр: белая таблица на кремовом ------- */
.search-bar { display: flex; gap: 12px; margin: 44px 0 22px; flex-wrap: wrap; }
.search-bar input {
    flex: 1; min-width: 260px; background: var(--white); border: 1.5px solid rgba(14,27,58,.16);
    border-radius: 999px; padding: 17px 28px; color: var(--ink); font-size: 15px; font-family: var(--font);
    transition: border-color .3s, box-shadow .3s;
}
.search-bar input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(33,89,178,.15); }
.registry-table-wrap { border-radius: var(--radius-lg); overflow: hidden; background: var(--white); border: 1.5px solid rgba(14,27,58,.09); }
.registry-table-wrap-inner { overflow-x: auto; }
.registry-table { width: 100%; border-collapse: collapse; min-width: 900px; }
.registry-table th {
    text-align: left; padding: 17px 20px; font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase;
    color: var(--blue); background: rgba(33,89,178,.07); border-bottom: 1.5px solid rgba(14,27,58,.1); white-space: nowrap;
}
.registry-table td { padding: 17px 20px; border-bottom: 1px solid rgba(14,27,58,.08); font-size: 14.5px; vertical-align: top; color: var(--ink); }
.registry-table tr:last-child td { border-bottom: none; }
.registry-table tbody tr { transition: background .25s; }
.registry-table tbody tr:hover { background: rgba(198,242,78,.14); }
.registry-table td a { color: var(--blue); text-decoration: none; border-bottom: 1.5px dashed rgba(33,89,178,.5); font-weight: 700; }
.registry-table td a:hover { color: var(--blue-deep); border-style: solid; }
.org-name { font-weight: 800; }
.no-results { padding: 44px; text-align: center; color: rgba(14,27,58,.55); display: none; }

/* ------- новости: карточки-стикеры с наклоном ------- */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 52px; }
.news-card {
    background: var(--white); border-radius: var(--radius-lg); overflow: hidden;
    transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s; display: flex; flex-direction: column;
    border: 1.5px solid rgba(14,27,58,.09);
}
.news-card:nth-child(3n+1):hover { transform: translateY(-10px) rotate(-1deg); }
.news-card:nth-child(3n+2):hover { transform: translateY(-10px) rotate(1deg); }
.news-card:nth-child(3n):hover { transform: translateY(-10px); }
.news-card:hover { box-shadow: 0 34px 70px rgba(14,27,58,.18); }
.news-card .img { height: 185px; background: linear-gradient(130deg, var(--blue) 0%, var(--blue-deep) 55%, #0f8a5f 100%); position: relative; overflow: hidden; }
.news-card .img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.news-card:hover .img img { transform: scale(1.08) rotate(1deg); }
.news-card .img .date-chip {
    position: absolute; left: 16px; bottom: -13px; background: var(--lime); color: var(--blue-ink);
    font-size: 12px; font-weight: 900; padding: 8px 16px; border-radius: 999px; box-shadow: 0 10px 24px rgba(0,0,0,.22);
    transform: rotate(-3deg);
}
.news-body { padding: 28px 24px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.news-cat { font-size: 11.5px; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; color: var(--blue); }
.news-body h3 { font-size: 18px; font-weight: 900; line-height: 1.32; color: var(--ink); }
.news-body p { color: rgba(14,27,58,.62); font-size: 14px; flex: 1; }
.news-link { color: var(--blue); font-weight: 900; font-size: 14px; text-decoration: none; transition: letter-spacing .25s; }
.news-link:hover { letter-spacing: .04em; }

/* ------- лица: лента стикеров ------- */
.faces-scroll { display: flex; gap: 22px; overflow-x: auto; padding: 52px 6px 28px; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: var(--lime) transparent; }
.face-card {
    min-width: 250px; scroll-snap-align: start; background: var(--white); color: var(--ink);
    border-radius: 26px; padding: 30px 24px; text-align: center; flex: 0 0 auto;
    transition: transform .35s, box-shadow .35s; position: relative;
}
.face-card:nth-child(odd):hover { transform: translateY(-10px) rotate(-1.6deg); box-shadow: 0 30px 60px rgba(5,15,45,.35); }
.face-card:nth-child(even):hover { transform: translateY(-10px) rotate(1.6deg); box-shadow: 0 30px 60px rgba(5,15,45,.35); }
.face-avatar {
    width: 100px; height: 100px; margin: 0 auto 18px; border-radius: 24px;
    display: flex; align-items: center; justify-content: center; font-size: 32px; font-weight: 900; color: var(--white);
    background: linear-gradient(135deg, var(--blue) 0%, var(--blue-deep) 60%, #0f8a5f 120%);
    box-shadow: 0 16px 34px rgba(33,89,178,.4); transition: transform .4s; overflow: hidden;
    transform: rotate(-4deg);
}
.face-card:nth-child(even) .face-avatar { transform: rotate(4deg); }
.face-card:hover .face-avatar { transform: rotate(0) scale(1.07); }
.face-avatar img { width: 100%; height: 100%; object-fit: cover; }
.face-card h3 { font-size: 17.5px; font-weight: 900; }
.face-role { color: var(--blue); font-size: 13px; font-weight: 800; margin-top: 5px; }
.face-org { color: rgba(14,27,58,.6); font-size: 13px; margin-top: 3px; }
.face-quote { color: rgba(14,27,58,.66); font-size: 13px; margin-top: 14px; font-style: italic; border-top: 1.5px dashed rgba(14,27,58,.16); padding-top: 14px; }

/* ------- проекты ------- */
.projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 52px; }
.project-card {
    background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.26);
    border-radius: var(--radius-lg); padding: 34px 28px; position: relative; overflow: hidden;
    transition: transform .35s cubic-bezier(.2,.8,.2,1), background .35s, box-shadow .35s;
    display: flex; flex-direction: column; gap: 14px;
}
.project-card::after {
    content: ''; position: absolute; width: 210px; height: 210px; border-radius: 50%;
    background: radial-gradient(circle, rgba(198,242,78,.2), transparent 70%);
    top: -70px; right: -70px; transition: transform .5s;
}
.project-card:hover { transform: translateY(-10px); background: rgba(255,255,255,.15); box-shadow: 0 30px 60px rgba(5,15,45,.35); }
.project-card:hover::after { transform: scale(1.45); }
.project-badge {
    align-self: flex-start; font-size: 11px; font-weight: 900; letter-spacing: .18em;
    padding: 7px 15px; border-radius: 999px; background: var(--lime); color: var(--blue-ink);
}
.project-card h3 { font-size: 20px; font-weight: 900; line-height: 1.25; text-transform: uppercase; letter-spacing: -.01em; }
.project-format { color: var(--lime); font-weight: 800; font-size: 13.5px; }
.project-desc { color: var(--muted-on-blue); font-size: 14px; flex: 1; }
.project-meta { display: flex; flex-direction: column; gap: 8px; font-size: 13.5px; border-top: 1.5px dashed rgba(255,255,255,.25); padding-top: 16px; }
.project-meta .row { display: flex; gap: 10px; }
.project-meta .k { color: rgba(255,255,255,.6); min-width: 96px; }
.project-meta .v { color: var(--white); font-weight: 700; }
.project-links { display: flex; gap: 12px; flex-wrap: wrap; }
.mini-btn {
    font-size: 13px; font-weight: 900; text-decoration: none; padding: 10px 20px; border-radius: 999px;
    background: var(--lime); color: var(--blue-ink); transition: transform .25s, box-shadow .25s;
}
.mini-btn:hover { transform: translateY(-2px) scale(1.04); box-shadow: 0 10px 26px rgba(198,242,78,.4); }
.mini-btn.ghost { background: transparent; color: var(--white); border: 1.5px solid rgba(255,255,255,.45); }
.mini-btn.ghost:hover { color: var(--lime); border-color: var(--lime); }

.project-hero {
    margin-top: 52px; background: var(--white); color: var(--ink);
    border-radius: var(--radius-xl); padding: 44px; display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px;
    position: relative; overflow: hidden;
}
.project-hero::before {
    content: ''; position: absolute; top: -40px; right: -40px; width: 180px; height: 180px; border-radius: 50%;
    background: radial-gradient(circle, rgba(198,242,78,.5), transparent 70%);
}
.project-hero h3 { font-size: clamp(24px, 3vw, 34px); font-weight: 900; margin-bottom: 14px; text-transform: uppercase; letter-spacing: -.01em; }
.project-hero p { color: rgba(14,27,58,.68); }
.hero-dates { display: flex; flex-direction: column; gap: 12px; font-size: 14.5px; }
.hero-dates .row { display: flex; justify-content: space-between; gap: 16px; border-bottom: 1.5px dashed rgba(14,27,58,.15); padding-bottom: 10px; }
.hero-dates .k { color: rgba(14,27,58,.55); }
.hero-dates .v { font-weight: 800; color: var(--ink); text-align: right; }

/* ------- галерея ------- */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(235px, 1fr)); gap: 18px; margin-top: 52px; }
.gallery-item {
    position: relative; border-radius: 24px; overflow: hidden; cursor: pointer; aspect-ratio: 4/3;
    background: linear-gradient(135deg, var(--blue-deep), #0f8a5f);
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.gallery-item:hover img { transform: scale(1.1) rotate(1deg); }
.gallery-item figcaption {
    position: absolute; inset: auto 0 0 0; padding: 34px 16px 14px; font-size: 13px; font-weight: 800;
    color: var(--white); background: linear-gradient(transparent, rgba(10,31,77,.94));
    opacity: 0; transform: translateY(10px); transition: .35s;
}
.gallery-item:hover figcaption { opacity: 1; transform: none; }

.lightbox {
    position: fixed; inset: 0; z-index: 120; background: rgba(10,31,77,.95); backdrop-filter: blur(10px);
    display: none; align-items: center; justify-content: center; flex-direction: column; gap: 18px; padding: 40px;
}
.lightbox.open { display: flex; animation: fadeIn .3s; }
.lightbox img { max-width: 86vw; max-height: 74vh; border-radius: 24px; box-shadow: 0 40px 120px rgba(0,0,0,.7); animation: zoomIn .35s cubic-bezier(.2,.8,.2,1); }
.lightbox .cap { color: var(--white); font-weight: 800; }
.lightbox-close { position: absolute; top: 26px; right: 30px; background: none; border: none; color: #fff; font-size: 42px; cursor: pointer; line-height: 1; }
.lb-nav { display: flex; gap: 14px; }
.lb-nav button { background: rgba(255,255,255,.1); border: 1.5px solid rgba(255,255,255,.3); color: #fff; width: 54px; height: 54px; border-radius: 50%; font-size: 20px; cursor: pointer; transition: .25s; }
.lb-nav button:hover { background: var(--lime); color: var(--blue-ink); }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes zoomIn { from { transform: scale(.86); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* ------- обратная связь: кремовый лист ------- */
.contact-wrap { display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; margin-top: 52px; }
.contact-info { display: flex; flex-direction: column; gap: 16px; }
.contact-item {
    background: var(--white); border: 1.5px solid rgba(14,27,58,.1); border-radius: 22px; padding: 22px 26px;
    display: flex; gap: 18px; align-items: center; transition: border-color .3s, transform .3s, box-shadow .3s;
}
.contact-item:hover { border-color: var(--blue); transform: translateX(8px); box-shadow: 0 18px 40px rgba(14,27,58,.12); }
.contact-item .ico {
    width: 52px; height: 52px; border-radius: 16px; background: var(--lime);
    display: flex; align-items: center; justify-content: center; font-size: 22px; flex-shrink: 0;
}
.contact-item .k { font-size: 11.5px; color: rgba(14,27,58,.55); text-transform: uppercase; letter-spacing: .12em; font-weight: 800; }
.contact-item .v { font-weight: 800; color: var(--ink); font-size: 15.5px; }

.contact-form { background: var(--white); border-radius: var(--radius-xl); padding: 42px; border: 1.5px solid rgba(14,27,58,.1); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13px; font-weight: 800; color: rgba(14,27,58,.6); margin-bottom: 8px; letter-spacing: .04em; }
.field input, .field textarea {
    width: 100%; background: var(--cream); border: 1.5px solid rgba(14,27,58,.14); border-radius: 16px;
    padding: 15px 20px; color: var(--ink); font-size: 15px; font-family: var(--font); transition: border-color .3s, box-shadow .3s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(33,89,178,.13); }
.field textarea { min-height: 130px; resize: vertical; }
.checkbox-row { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: rgba(14,27,58,.6); margin-bottom: 22px; }
.checkbox-row input { accent-color: var(--blue); margin-top: 4px; width: 16px; height: 16px; }
.form-success {
    display: none; text-align: center; padding: 38px 20px; border-radius: 24px;
    background: rgba(198,242,78,.2); border: 1.5px solid var(--lime-deep);
}
.form-success .check { font-size: 46px; color: var(--blue); animation: popIn .5s cubic-bezier(.2,1.6,.4,1); }
@keyframes popIn { from { transform: scale(0); } to { transform: scale(1); } }
.form-success h3 { margin: 12px 0 8px; color: var(--ink); }
.form-success p { color: rgba(14,27,58,.65); font-size: 14px; }
.form-error { color: #c22d2d; font-size: 13.5px; margin-bottom: 14px; display: none; font-weight: 700; }

/* ------- футер ------- */
.site-footer { background: var(--blue-ink); border-radius: var(--radius-xl) var(--radius-xl) 0 0; padding: 70px 0 36px; margin-top: -40px; position: relative; z-index: 4; }
.sheet + .site-footer, .site-footer.after-sheet { margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 44px; }
.footer-grid h4 { font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--lime); margin-bottom: 20px; }
.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 11px; }
.footer-grid a { color: rgba(255,255,255,.75); text-decoration: none; font-size: 14px; transition: color .25s; }
.footer-grid a:hover { color: var(--lime); }
.footer-about { color: rgba(255,255,255,.72); font-size: 14px; margin-top: 18px; max-width: 380px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-top: 48px; padding-top: 26px; border-top: 1px solid rgba(255,255,255,.14); color: rgba(255,255,255,.6); font-size: 13px; }
.footer-motto { letter-spacing: .08em; }
.footer-motto b { color: var(--lime); }

/* ------- кнопка «вверх» ------- */
.to-top {
    position: fixed; right: 26px; bottom: 26px; z-index: 80; width: 54px; height: 54px; border-radius: 50%;
    background: var(--lime); color: var(--blue-ink); border: none; font-size: 22px; cursor: pointer;
    opacity: 0; pointer-events: none; transform: translateY(14px); transition: .35s;
    box-shadow: 0 14px 34px rgba(198,242,78,.45); font-weight: 900;
}
.to-top.show { opacity: 1; pointer-events: auto; transform: none; }
.to-top:hover { transform: translateY(-4px) scale(1.06); }

/* ------- адаптив ------- */
@media (max-width: 1120px) {
    .cards-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-band { grid-template-columns: repeat(3, 1fr); }
    .news-grid, .projects-grid { grid-template-columns: repeat(2, 1fr); }
    .sticker.s1, .sticker.s2 { width: 120px; }
    .sticker.s3 { display: none; }
    .project-hero { grid-template-columns: 1fr; }
    .contact-wrap { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
    .main-nav {
        position: fixed; top: 84px; left: 4%; right: 4%; flex-direction: column; padding: 18px 22px;
        background: rgba(13,42,99,.97); border: 1px solid rgba(255,255,255,.2); border-radius: 24px;
        transform: translateY(-16px); opacity: 0; pointer-events: none; transition: .3s; z-index: 95;
    }
    .main-nav.open { transform: none; opacity: 1; pointer-events: auto; }
    .burger { display: block; }
    .header-cta { display: none; }
    .logo-link img { height: 34px; max-width: 46vw; object-fit: contain; }
    .logo-text { display: none; }
    .cards-grid, .news-grid, .projects-grid { grid-template-columns: 1fr; }
    .stats-band { grid-template-columns: repeat(2, 1fr); padding: 0; }
    .hero { padding-top: 56px; }
    .hero-stickers { display: none; }
    .stamp { display: none; }
    .contact-form { padding: 28px 22px; }
    .form-row { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .section, .sheet-inner { padding-top: 64px; padding-bottom: 64px; }
    .about-item { flex-direction: column; gap: 8px; }
}
