:root {
    --navy-950: #07172a;
    --navy-900: #0b223b;
    --navy-800: #103657;
    --blue-600: #0e77c7;
    --green-700: #2f6f2d;
    --green-600: #4d8a35;
    --green-500: #6c9d40;
    --green-100: #eef4e6;
    --warm-500: #f0a21b;
    --warm-400: #ffbd3f;
    --cream-100: #f7f4ec;
    --cream-200: #eee9dc;
    --paper: #fffdf8;
    --white: #ffffff;
    --ink: #17212b;
    --muted: #66717a;
    --line: rgba(14, 45, 69, 0.13);
    --shadow-sm: 0 16px 40px rgba(17, 36, 51, 0.08);
    --shadow-lg: 0 30px 80px rgba(5, 24, 38, 0.18);
    --radius-sm: 16px;
    --radius-md: 24px;
    --radius-lg: 34px;
    --container: 1240px;
    --header-height: 98px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body.menu-open {
    overflow: hidden;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

.container {
    width: min(calc(100% - 48px), var(--container));
    margin-inline: auto;
}

.site-shell {
    overflow: clip;
}

.section {
    padding: 112px 0;
}

.section-heading {
    max-width: 760px;
    margin-bottom: 54px;
}

.section-heading h2,
.about-copy h2,
.team-intro h2,
.faq-intro h2,
.consultation-copy h2,
.relatives-copy h2,
.program-panel h2 {
    margin: 8px 0 18px;
    color: var(--navy-950);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.25rem, 4vw, 4.35rem);
    font-weight: 500;
    line-height: 1.03;
    letter-spacing: -0.04em;
}

.section-heading > p,
.split-heading > p,
.about-copy > p,
.team-intro > p,
.faq-intro > p,
.consultation-copy > p,
.relatives-copy > p,
.program-panel > p {
    color: var(--muted);
    font-size: 1.05rem;
}

.split-heading {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
    gap: 70px;
    max-width: none;
    align-items: end;
}

.split-heading > p {
    margin-bottom: 12px;
}

.eyebrow {
    margin: 0;
    color: var(--green-700);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.eyebrow-light {
    color: #dbeabf;
}

.button {
    min-height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 26px;
    border: 1px solid transparent;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 760;
    transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button-primary {
    background: linear-gradient(135deg, var(--green-600), #6e9e42);
    color: var(--white);
    box-shadow: 0 14px 30px rgba(70, 125, 47, 0.32);
}

.button-primary:hover {
    box-shadow: 0 18px 34px rgba(70, 125, 47, 0.4);
}

.button-light {
    background: rgba(255, 255, 255, 0.92);
    color: var(--navy-900);
}

.button-ghost {
    border-color: rgba(255, 255, 255, 0.48);
    color: var(--white);
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
}

.button-ghost:hover {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.78);
}

.button-outline {
    border-color: rgba(16, 54, 87, 0.25);
    color: var(--navy-900);
    background: transparent;
}

.button-outline-light {
    border-color: rgba(255, 255, 255, 0.36);
    color: var(--white);
}

.button-warm {
    background: linear-gradient(135deg, var(--warm-500), var(--warm-400));
    color: #2b210f;
    box-shadow: 0 18px 40px rgba(223, 141, 10, 0.26);
}

.button-small {
    min-height: 42px;
    padding-inline: 18px;
    font-size: 0.82rem;
}

.button-full {
    width: 100%;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
    color: var(--green-700);
    font-weight: 800;
}

.text-link span {
    font-size: 1.4rem;
    transition: transform 180ms ease;
}

.text-link:hover span {
    transform: translateX(4px);
}

/* Header */
.site-header {
    position: fixed;
    z-index: 50;
    inset: 0 0 auto;
    height: var(--header-height);
    display: flex;
    align-items: center;
    border-bottom: 1px solid transparent;
    transition: height 220ms ease, background 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.site-header.is-scrolled {
    height: 78px;
    background: rgba(255, 253, 248, 0.93);
    border-color: var(--line);
    box-shadow: 0 12px 36px rgba(12, 36, 53, 0.08);
    backdrop-filter: blur(18px);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 30px;
}

.brand {
    width: 132px;
    height: 64px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    padding: 7px 12px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.brand img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: clamp(15px, 1.5vw, 25px);
    margin-left: auto;
}

.main-nav a {
    position: relative;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.86rem;
    font-weight: 650;
    white-space: nowrap;
}

.main-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 100%;
    bottom: -8px;
    height: 2px;
    background: var(--warm-400);
    transition: right 180ms ease;
}

.main-nav a:hover::after {
    right: 0;
}

.site-header.is-scrolled .main-nav a {
    color: var(--navy-900);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-phone {
    display: grid;
    color: var(--white);
    line-height: 1.15;
    text-align: right;
}

.header-phone span {
    font-size: 0.61rem;
    opacity: 0.72;
}

.header-phone strong {
    margin-top: 5px;
    font-size: 0.88rem;
}

.site-header.is-scrolled .header-phone {
    color: var(--navy-900);
}

.site-header.is-scrolled .button-light {
    background: var(--green-600);
    color: var(--white);
}

.menu-toggle {
    display: none;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.94);
    cursor: pointer;
}

.menu-toggle span {
    width: 20px;
    height: 2px;
    display: block;
    margin: 4px auto;
    background: var(--navy-900);
    transition: transform 180ms ease, opacity 180ms ease;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

/* Hero */
.hero {
    position: relative;
    min-height: 820px;
    height: min(94vh, 960px);
    display: flex;
    align-items: center;
    color: var(--white);
    overflow: hidden;
    background: var(--navy-950);
}

.hero-media,
.hero-media img,
.hero-shade,
.hero-glow {
    position: absolute;
    inset: 0;
}

.hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 49%;
    animation: heroZoom 16s ease-out both;
}

@keyframes heroZoom {
    from { transform: scale(1.02); }
    to { transform: scale(1.09); }
}

.hero-shade {
    background:
        linear-gradient(90deg, rgba(4, 20, 33, 0.84) 0%, rgba(4, 20, 33, 0.62) 36%, rgba(4, 20, 33, 0.18) 70%, rgba(4, 20, 33, 0.18) 100%),
        linear-gradient(180deg, rgba(4, 20, 33, 0.42) 0%, transparent 35%, rgba(4, 20, 33, 0.38) 100%);
}

.hero-glow {
    background: radial-gradient(circle at 90% 12%, rgba(255, 194, 72, 0.34), transparent 28%);
    mix-blend-mode: screen;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 60px;
    padding-top: 84px;
}

.hero-copy {
    width: min(760px, 70%);
}

.hero h1 {
    max-width: 720px;
    margin: 14px 0 22px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(4rem, 7.2vw, 7.4rem);
    font-weight: 500;
    line-height: 0.92;
    letter-spacing: -0.065em;
    text-wrap: balance;
}

.hero h1 em {
    display: block;
    color: #e3efc7;
    font-weight: 500;
}

.hero-lead {
    max-width: 650px;
    margin: 0;
    color: rgba(255, 255, 255, 0.84);
    font-size: clamp(1.02rem, 1.4vw, 1.3rem);
    line-height: 1.65;
}

.hero-buttons {
    display: flex;
    gap: 14px;
    margin-top: 34px;
    flex-wrap: wrap;
}

.hero-trust {
    display: flex;
    gap: 22px;
    margin-top: 27px;
    color: rgba(255, 255, 255, 0.76);
    font-size: 0.78rem;
    font-weight: 650;
}

.hero-trust span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.hero-trust span::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #b6db84;
    box-shadow: 0 0 0 4px rgba(182, 219, 132, 0.15);
}

.hero-note {
    width: 260px;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 28px;
    background: rgba(4, 27, 44, 0.52);
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(18px);
}

.hero-note-icon {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #dfeac8;
    color: var(--navy-900);
    font-size: 0.8rem;
    font-weight: 900;
}

.hero-note p {
    margin: 18px 0 4px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.78rem;
}

.hero-note strong {
    display: block;
    margin-bottom: 18px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.35rem;
    line-height: 1.2;
}

.hero-note a {
    color: #e5efcc;
    font-weight: 800;
}

.hero-scroll {
    position: absolute;
    z-index: 2;
    left: 50%;
    bottom: 27px;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.66);
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-scroll span {
    width: 22px;
    height: 35px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 20px;
    position: relative;
}

.hero-scroll span::after {
    content: "";
    width: 4px;
    height: 7px;
    position: absolute;
    left: 50%;
    top: 7px;
    transform: translateX(-50%);
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.8);
    animation: scrollDot 1.8s infinite;
}

@keyframes scrollDot {
    0% { transform: translate(-50%, 0); opacity: 0; }
    35% { opacity: 1; }
    100% { transform: translate(-50%, 12px); opacity: 0; }
}

/* Advantage band */
.advantage-band {
    position: relative;
    z-index: 4;
    margin-top: -36px;
}

.advantage-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 10px;
    border: 1px solid rgba(16, 54, 87, 0.08);
    border-radius: 26px;
    background: rgba(255, 253, 248, 0.95);
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(16px);
}

.advantage-card {
    min-height: 140px;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 17px;
    padding: 22px;
    border-right: 1px solid var(--line);
}

.advantage-card:last-child {
    border-right: 0;
}

.advantage-number {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--green-100);
    color: var(--green-700);
    font-size: 0.68rem;
    font-weight: 900;
}

.advantage-card h2 {
    margin: 2px 0 7px;
    color: var(--navy-900);
    font-size: 0.98rem;
    line-height: 1.2;
}

.advantage-card p {
    margin: 0;
    color: var(--muted);
    font-size: 0.78rem;
    line-height: 1.55;
}

/* Process */
.section-process {
    padding-top: 138px;
    background: var(--cream-100);
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.process-card {
    min-height: 280px;
    padding: 26px;
    border: 1px solid rgba(16, 54, 87, 0.08);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.74);
    box-shadow: var(--shadow-sm);
    transition: transform 220ms ease, box-shadow 220ms ease, background 220ms ease;
}

.process-card:hover {
    transform: translateY(-8px);
    background: var(--white);
    box-shadow: 0 24px 54px rgba(17, 36, 51, 0.12);
}

.process-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.process-top span {
    color: var(--green-700);
    font-size: 0.76rem;
    font-weight: 900;
}

.process-top i {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #eef4e6, #dfeacb);
    position: relative;
}

.process-top i::before,
.process-top i::after {
    content: "";
    position: absolute;
    background: var(--green-700);
}

.process-top i::before {
    width: 18px;
    height: 2px;
    left: 15px;
    top: 23px;
}

.process-top i::after {
    width: 2px;
    height: 18px;
    left: 23px;
    top: 15px;
}

.process-card h3 {
    margin: 70px 0 14px;
    color: var(--navy-900);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.48rem;
    font-weight: 500;
    line-height: 1.14;
}

.process-card p {
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
}

/* About */
.section-about {
    background: var(--paper);
}

.about-grid {
    display: grid;
    grid-template-columns: 0.82fr 1.18fr;
    gap: 78px;
    align-items: center;
}

.about-copy .lead {
    color: var(--navy-900);
    font-size: 1.18rem;
    line-height: 1.6;
}

.check-list {
    list-style: none;
    display: grid;
    gap: 14px;
    margin: 30px 0 20px;
    padding: 0;
}

.check-list li {
    position: relative;
    padding-left: 31px;
    color: #35434e;
    font-size: 0.92rem;
}

.check-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: -1px;
    width: 21px;
    height: 21px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--green-100);
    color: var(--green-700);
    font-size: 0.7rem;
    font-weight: 900;
}

.about-visual {
    position: relative;
    padding-bottom: 34px;
}

.about-main-photo {
    margin: 0;
    aspect-ratio: 1.28;
    overflow: hidden;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.about-main-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-stat {
    position: absolute;
    left: -42px;
    bottom: 0;
    width: 150px;
    height: 150px;
    display: grid;
    place-content: center;
    border: 8px solid var(--paper);
    border-radius: 50%;
    background: var(--warm-400);
    color: var(--navy-950);
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.about-stat strong {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 2rem;
    line-height: 1;
}

.about-stat span {
    margin-top: 7px;
    font-size: 0.76rem;
    font-weight: 800;
}

.about-caption {
    position: absolute;
    right: 24px;
    bottom: 4px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 999px;
    background: var(--white);
    box-shadow: var(--shadow-sm);
    color: var(--navy-900);
    font-size: 0.76rem;
    font-weight: 700;
}

.caption-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green-600);
}

/* Directions */
.section-directions {
    background: #f0f3e8;
}

.direction-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.direction-card {
    min-height: 390px;
    display: flex;
    flex-direction: column;
    position: relative;
    padding: 26px;
    border: 1px solid rgba(16, 54, 87, 0.08);
    border-radius: var(--radius-md);
    background: var(--white);
    overflow: hidden;
    transition: transform 220ms ease, box-shadow 220ms ease;
}

.direction-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.direction-dark {
    background: var(--navy-900);
    color: var(--white);
}

.direction-accent {
    background: #dfecc6;
}

.direction-index {
    position: absolute;
    right: 24px;
    top: 22px;
    color: var(--muted);
    font-size: 0.7rem;
    font-weight: 900;
}

.direction-dark .direction-index {
    color: rgba(255, 255, 255, 0.5);
}

.direction-icon {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    margin-bottom: 86px;
    border-radius: 18px;
    background: var(--green-100);
    color: var(--green-700);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.45rem;
    font-weight: 700;
}

.direction-dark .direction-icon {
    background: rgba(255, 255, 255, 0.1);
    color: #e7f2ca;
}

.direction-card h3 {
    margin: 0 0 12px;
    color: var(--navy-900);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.55rem;
    font-weight: 500;
    line-height: 1.12;
}

.direction-dark h3 {
    color: var(--white);
}

.direction-card p {
    margin: 0 0 24px;
    color: var(--muted);
    font-size: 0.9rem;
}

.direction-dark p {
    color: rgba(255, 255, 255, 0.68);
}

.direction-card a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 18px;
    border-top: 1px solid rgba(16, 54, 87, 0.1);
    color: var(--green-700);
    font-size: 0.82rem;
    font-weight: 800;
}

.direction-dark a {
    border-color: rgba(255, 255, 255, 0.13);
    color: #e4efca;
}

/* Program detail */
.section-program-detail {
    background: var(--paper);
}

.program-detail-grid {
    display: grid;
    grid-template-columns: 0.88fr 1.12fr;
    gap: 56px;
    align-items: start;
}

.program-panel {
    position: sticky;
    top: 110px;
    padding: 48px;
    border-radius: var(--radius-lg);
    background:
        radial-gradient(circle at 90% 10%, rgba(255, 188, 61, 0.22), transparent 30%),
        linear-gradient(145deg, var(--navy-900), #0d2944);
    color: var(--white);
    box-shadow: var(--shadow-lg);
}

.program-panel h2 {
    color: var(--white);
    font-size: clamp(2.25rem, 3.8vw, 4rem);
}

.program-panel > p {
    color: rgba(255, 255, 255, 0.68);
}

.program-quote {
    margin-top: 44px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    color: #e8f1d1;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.3rem;
    font-style: italic;
}

.program-list {
    border-top: 1px solid var(--line);
}

.program-list-item {
    min-height: 88px;
    display: grid;
    grid-template-columns: 50px 1fr auto;
    align-items: center;
    gap: 18px;
    border-bottom: 1px solid var(--line);
}

.program-list-item span {
    color: var(--green-700);
    font-size: 0.72rem;
    font-weight: 900;
}

.program-list-item strong {
    color: var(--navy-900);
    font-size: 1rem;
}

.program-list-item i {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--green-100);
    color: var(--green-700);
    font-style: normal;
    transition: transform 180ms ease;
}

.program-list-item:hover i {
    transform: rotate(45deg);
}

/* Conditions */
.section-conditions {
    background: var(--cream-100);
}

.gallery-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.85fr 0.85fr;
    grid-template-rows: 260px 240px;
    gap: 15px;
}

.gallery-item {
    position: relative;
    margin: 0;
    overflow: hidden;
    border-radius: var(--radius-md);
    background: var(--cream-200);
}

.gallery-large {
    grid-row: 1 / 3;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 700ms ease;
}

.gallery-item:hover img {
    transform: scale(1.06);
}

.gallery-item figcaption {
    position: absolute;
    left: 18px;
    bottom: 18px;
    padding: 9px 13px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.88);
    color: var(--navy-900);
    font-size: 0.75rem;
    font-weight: 800;
    backdrop-filter: blur(10px);
}

.gallery-info {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 28px;
    border-radius: var(--radius-md);
    background: var(--green-700);
    color: var(--white);
}

.gallery-info > span {
    margin-bottom: auto;
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    opacity: 0.7;
}

.gallery-info strong {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 3.3rem;
    line-height: 1;
}

.gallery-info p {
    margin: 8px 0 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.85rem;
}

/* Team */
.section-team {
    background: var(--paper);
}

.team-grid {
    display: grid;
    grid-template-columns: 0.72fr 1.28fr;
    gap: 62px;
    align-items: start;
}

.team-intro {
    position: sticky;
    top: 110px;
}

.team-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.team-card {
    min-height: 300px;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: linear-gradient(145deg, var(--white), #f6f3eb);
    box-shadow: var(--shadow-sm);
}

.team-avatar {
    width: 78px;
    height: 78px;
    display: grid;
    place-items: center;
    border-radius: 24px;
    background: linear-gradient(145deg, var(--navy-800), var(--blue-600));
    color: var(--white);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.2rem;
    box-shadow: 0 16px 34px rgba(15, 70, 108, 0.2);
}

.team-card:nth-child(2) .team-avatar {
    background: linear-gradient(145deg, var(--green-700), #7ca149);
}

.team-card:nth-child(3) .team-avatar {
    background: linear-gradient(145deg, #b66f11, var(--warm-400));
}

.team-card:nth-child(4) .team-avatar {
    background: linear-gradient(145deg, #5f4d82, #9382b0);
}

.team-card h3 {
    margin: 64px 0 12px;
    color: var(--navy-900);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.55rem;
    font-weight: 500;
}

.team-card p {
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
}

/* Stories */
.section-stories {
    background: #f0f3e8;
}

.stories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.story-card {
    min-height: 340px;
    display: flex;
    flex-direction: column;
    padding: 30px;
    border: 1px solid rgba(16, 54, 87, 0.08);
    border-radius: var(--radius-md);
    background: var(--paper);
    box-shadow: var(--shadow-sm);
}

.story-featured {
    transform: translateY(-18px);
    background: var(--navy-900);
    color: var(--white);
}

.quote-mark {
    color: var(--green-600);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 4.5rem;
    line-height: 0.7;
}

.story-featured .quote-mark {
    color: #dfecc6;
}

.story-card > p {
    margin: 50px 0 30px;
    color: var(--navy-900);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.32rem;
    line-height: 1.42;
}

.story-featured > p {
    color: var(--white);
}

.story-card footer {
    display: grid;
    margin-top: auto;
}

.story-card footer strong {
    font-size: 0.92rem;
}

.story-card footer span {
    color: var(--muted);
    font-size: 0.76rem;
}

.story-featured footer span {
    color: rgba(255, 255, 255, 0.58);
}

/* Relatives */
.section-relatives {
    background: var(--paper);
}

.relatives-card {
    display: grid;
    grid-template-columns: 1fr 0.95fr;
    gap: 70px;
    padding: 64px;
    border-radius: var(--radius-lg);
    background:
        radial-gradient(circle at 92% 8%, rgba(255, 190, 55, 0.21), transparent 27%),
        linear-gradient(145deg, var(--navy-900), #0e304f);
    color: var(--white);
    box-shadow: var(--shadow-lg);
}

.relatives-copy h2 {
    color: var(--white);
}

.relatives-copy > p {
    color: rgba(255, 255, 255, 0.68);
}

.relatives-steps {
    display: grid;
    gap: 12px;
}

.relatives-steps div {
    min-height: 80px;
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 16px;
    align-items: center;
    padding: 16px 20px;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.06);
}

.relatives-steps span {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(223, 236, 198, 0.13);
    color: #e4efca;
    font-size: 0.68rem;
    font-weight: 900;
}

.relatives-steps strong {
    font-size: 0.9rem;
}

/* FAQ */
.section-faq {
    background: var(--cream-100);
}

.faq-grid {
    display: grid;
    grid-template-columns: 0.72fr 1.28fr;
    gap: 70px;
    align-items: start;
}

.faq-intro {
    position: sticky;
    top: 110px;
}

.faq-list {
    border-top: 1px solid var(--line);
}

.faq-item {
    border-bottom: 1px solid var(--line);
}

.faq-item button {
    width: 100%;
    min-height: 88px;
    display: grid;
    grid-template-columns: 1fr 38px;
    gap: 20px;
    align-items: center;
    padding: 16px 0;
    border: 0;
    background: transparent;
    color: var(--navy-900);
    text-align: left;
    cursor: pointer;
}

.faq-item button span {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.32rem;
    line-height: 1.3;
}

.faq-item button i {
    width: 34px;
    height: 34px;
    position: relative;
    border-radius: 50%;
    background: var(--white);
    box-shadow: var(--shadow-sm);
}

.faq-item button i::before,
.faq-item button i::after {
    content: "";
    position: absolute;
    background: var(--green-700);
    transition: transform 180ms ease;
}

.faq-item button i::before {
    width: 14px;
    height: 2px;
    left: 10px;
    top: 16px;
}

.faq-item button i::after {
    width: 2px;
    height: 14px;
    left: 16px;
    top: 10px;
}

.faq-item.is-open button i::after {
    transform: rotate(90deg);
}

.faq-answer {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 220ms ease;
}

.faq-answer > p {
    overflow: hidden;
    margin: 0;
    color: var(--muted);
    font-size: 0.94rem;
}

.faq-item.is-open .faq-answer {
    grid-template-rows: 1fr;
}

.faq-item.is-open .faq-answer > p {
    padding: 0 52px 26px 0;
}

/* Consultation */
.consultation-section {
    position: relative;
    padding: 100px 0;
    overflow: hidden;
    background: var(--navy-950);
    color: var(--white);
}

.consultation-bg {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(5, 22, 36, 0.94), rgba(5, 22, 36, 0.76)),
        url("../images/hero.webp") center / cover no-repeat;
    opacity: 0.72;
}

.consultation-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 0.82fr 1.18fr;
    gap: 70px;
    align-items: center;
}

.consultation-copy h2 {
    color: var(--white);
}

.consultation-copy > p {
    color: rgba(255, 255, 255, 0.7);
}

.consultation-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
}

.consultation-trust span {
    padding: 9px 13px;
    border: 1px solid rgba(255, 255, 255, 0.17);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    font-size: 0.74rem;
    font-weight: 760;
}

.consultation-form-wrap {
    padding: 32px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.96);
    color: var(--ink);
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(18px);
}

.consultation-form {
    display: grid;
    gap: 18px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.consultation-form label,
.admin-form label {
    display: grid;
    gap: 8px;
}

.consultation-form label > span,
.admin-form label > span {
    color: var(--navy-900);
    font-size: 0.74rem;
    font-weight: 800;
}

.consultation-form input,
.consultation-form select,
.admin-form input {
    width: 100%;
    min-height: 52px;
    padding: 0 16px;
    border: 1px solid rgba(16, 54, 87, 0.16);
    border-radius: 14px;
    outline: none;
    background: #fbfaf6;
    color: var(--ink);
    transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.consultation-form input:focus,
.consultation-form select:focus,
.admin-form input:focus {
    border-color: var(--green-600);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(77, 138, 53, 0.12);
}

.consent {
    grid-template-columns: 18px 1fr !important;
    align-items: start;
    gap: 10px !important;
}

.consent input {
    width: 18px;
    min-height: 18px;
    margin: 2px 0 0;
    accent-color: var(--green-600);
}

.consent span {
    color: var(--muted) !important;
    font-weight: 500 !important;
    line-height: 1.45;
}

.form-note {
    margin: 0;
    color: var(--muted);
    font-size: 0.7rem;
    text-align: center;
}

.form-alert {
    margin-bottom: 18px;
    padding: 14px 16px;
    border-radius: 14px;
    font-size: 0.84rem;
}

.form-alert ul {
    margin: 8px 0 0;
    padding-left: 18px;
}

.form-alert-success {
    background: #e7f4df;
    color: #24561e;
}

.form-alert-error {
    background: #fff0ed;
    color: #852e21;
}

.honeypot {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

/* Footer */
.site-footer {
    padding: 76px 0 28px;
    background: #061827;
    color: var(--white);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr 1fr 1.2fr;
    gap: 50px;
}

.footer-brand img {
    width: 155px;
    height: 86px;
    padding: 8px;
    border-radius: 16px;
    background: var(--white);
    object-fit: contain;
}

.footer-brand p {
    max-width: 290px;
    color: rgba(255, 255, 255, 0.57);
    font-size: 0.84rem;
}

.footer-column {
    display: grid;
    align-content: start;
    gap: 11px;
}

.footer-column h2 {
    margin: 0 0 12px;
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.7rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.footer-column a,
.footer-column address,
.footer-column > span {
    color: rgba(255, 255, 255, 0.76);
    font-size: 0.82rem;
    font-style: normal;
}

.footer-column a:hover {
    color: var(--white);
}

.footer-column a span {
    display: block;
    color: rgba(255, 255, 255, 0.38);
    font-size: 0.65rem;
}

.footer-contact .button {
    margin-top: 14px;
    justify-self: start;
}

.footer-bottom {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 30px;
    margin-top: 54px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.38);
    font-size: 0.68rem;
}

.footer-bottom p {
    margin: 0;
}

.footer-bottom p:nth-child(2) {
    text-align: center;
}

/* Admin */
.admin-page {
    min-height: 100vh;
    background: var(--cream-100);
}

.admin-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
}

.admin-auth-card {
    width: min(100%, 470px);
    padding: 42px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: var(--shadow-lg);
}

.admin-logo {
    display: inline-flex;
    width: 150px;
    height: 80px;
    padding: 8px;
    border-radius: 14px;
    background: var(--white);
}

.admin-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.admin-auth-card h1,
.admin-heading h1,
.error-page h1 {
    margin: 8px 0 12px;
    color: var(--navy-950);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    font-weight: 500;
    line-height: 1;
}

.admin-auth-card > p {
    color: var(--muted);
}

.admin-form {
    display: grid;
    gap: 18px;
    margin-top: 28px;
}

.admin-back {
    display: inline-flex;
    margin-top: 24px;
    color: var(--green-700);
    font-size: 0.82rem;
    font-weight: 800;
}

.admin-dashboard {
    min-height: 100vh;
}

.admin-topbar {
    min-height: 88px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px max(24px, calc((100vw - var(--container)) / 2));
    border-bottom: 1px solid var(--line);
    background: var(--white);
}

.admin-topbar > div {
    display: flex;
    gap: 10px;
}

.admin-topbar form {
    margin: 0;
}

.admin-content {
    width: min(calc(100% - 48px), var(--container));
    margin: 0 auto;
    padding: 60px 0;
}

.admin-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 30px;
}

.admin-count {
    padding: 10px 14px;
    border-radius: 999px;
    background: var(--green-100);
    color: var(--green-700);
    font-size: 0.78rem;
    font-weight: 900;
}

.admin-table-wrap {
    overflow: auto;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: var(--white);
    box-shadow: var(--shadow-sm);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 920px;
}

.admin-table th,
.admin-table td {
    padding: 16px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
    font-size: 0.8rem;
}

.admin-table th {
    background: #faf8f2;
    color: var(--muted);
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.admin-table td {
    color: #43505a;
}

.admin-table td a {
    color: var(--green-700);
    font-weight: 800;
}

.status-badge {
    display: inline-flex;
    padding: 6px 9px;
    border-radius: 999px;
    background: #e7f4df;
    color: #24561e;
    font-size: 0.68rem;
    font-weight: 900;
}

.admin-empty {
    padding: 70px 30px;
    border: 1px dashed rgba(16, 54, 87, 0.22);
    border-radius: 22px;
    background: var(--white);
    text-align: center;
}

.admin-empty strong {
    color: var(--navy-900);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.7rem;
}

.admin-empty p {
    color: var(--muted);
}

.error-page {
    min-height: 100vh;
    display: grid;
    place-content: center;
    justify-items: center;
    padding: 30px;
    background: var(--cream-100);
    text-align: center;
}

.error-page img {
    width: 190px;
    height: 110px;
    margin-bottom: 20px;
    object-fit: contain;
}

.error-page > p:not(.eyebrow) {
    color: var(--muted);
}

/* Reveal */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 720ms cubic-bezier(.2,.65,.3,1), transform 720ms cubic-bezier(.2,.65,.3,1);
}

.reveal.is-visible {
    opacity: 1;
    transform: none;
}

.reveal-delay {
    transition-delay: 140ms;
}

/* Responsive */
@media (max-width: 1180px) {
    .main-nav {
        gap: 13px;
    }

    .main-nav a {
        font-size: 0.77rem;
    }

    .header-phone {
        display: none;
    }

    .direction-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .direction-card {
        min-height: 340px;
    }

    .direction-icon {
        margin-bottom: 62px;
    }
}

@media (max-width: 980px) {
    :root {
        --header-height: 82px;
    }

    .container {
        width: min(calc(100% - 34px), var(--container));
    }

    .section {
        padding: 86px 0;
    }

    .menu-toggle {
        display: block;
        margin-left: auto;
    }

    .header-actions {
        display: none;
    }

    .main-nav {
        position: fixed;
        inset: 0;
        z-index: -1;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        gap: 22px;
        padding: 110px 34px 34px;
        background: rgba(6, 24, 39, 0.98);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-12px);
        transition: opacity 180ms ease, visibility 180ms ease, transform 180ms ease;
    }

    .main-nav.is-open {
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .main-nav a,
    .site-header.is-scrolled .main-nav a {
        color: var(--white);
        font-family: Georgia, "Times New Roman", serif;
        font-size: 2.1rem;
        font-weight: 500;
    }

    .hero {
        min-height: 760px;
        height: auto;
        padding: 140px 0 100px;
    }

    .hero-content {
        align-items: flex-start;
        flex-direction: column;
        gap: 36px;
        padding-top: 0;
    }

    .hero-copy {
        width: min(780px, 100%);
    }

    .hero h1 {
        font-size: clamp(3.5rem, 10vw, 6rem);
    }

    .hero-note {
        width: 100%;
        max-width: 360px;
    }

    .advantage-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .advantage-card:nth-child(2) {
        border-right: 0;
    }

    .advantage-card:nth-child(-n+2) {
        border-bottom: 1px solid var(--line);
    }

    .process-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-grid,
    .program-detail-grid,
    .team-grid,
    .faq-grid,
    .consultation-grid {
        grid-template-columns: 1fr;
    }

    .about-grid,
    .program-detail-grid,
    .team-grid,
    .faq-grid,
    .consultation-grid {
        gap: 48px;
    }

    .about-copy {
        max-width: 760px;
    }

    .program-panel,
    .team-intro,
    .faq-intro {
        position: static;
    }

    .gallery-grid {
        grid-template-columns: 1.2fr 0.8fr;
        grid-template-rows: 260px 220px 220px;
    }

    .gallery-large {
        grid-row: 1 / 3;
    }

    .gallery-info {
        grid-column: 1 / 3;
    }

    .relatives-card {
        grid-template-columns: 1fr;
        gap: 46px;
        padding: 50px;
    }

    .stories-grid {
        grid-template-columns: 1fr;
    }

    .story-featured {
        transform: none;
    }

    .story-card {
        min-height: 280px;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 700px) {
    .container {
        width: min(calc(100% - 24px), var(--container));
    }

    .section {
        padding: 70px 0;
    }

    .brand {
        width: 112px;
        height: 58px;
    }

    .hero {
        min-height: 760px;
        padding-top: 128px;
    }

    .hero-media img {
        object-position: center 45%;
    }

    .hero-shade {
        background:
            linear-gradient(180deg, rgba(4, 20, 33, 0.52) 0%, rgba(4, 20, 33, 0.54) 38%, rgba(4, 20, 33, 0.88) 100%),
            linear-gradient(90deg, rgba(4, 20, 33, 0.58), rgba(4, 20, 33, 0.1));
    }

    .hero h1 {
        font-size: clamp(3.15rem, 15vw, 4.6rem);
    }

    .hero-lead {
        font-size: 1rem;
    }

    .hero-buttons {
        display: grid;
    }

    .hero-buttons .button {
        width: 100%;
    }

    .hero-trust {
        gap: 10px 16px;
        flex-wrap: wrap;
    }

    .hero-note,
    .hero-scroll {
        display: none;
    }

    .advantage-band {
        margin-top: -22px;
    }

    .advantage-grid,
    .process-grid,
    .direction-grid,
    .team-cards,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .advantage-card,
    .advantage-card:nth-child(2) {
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .advantage-card:last-child {
        border-bottom: 0;
    }

    .section-process {
        padding-top: 104px;
    }

    .split-heading {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .section-heading h2,
    .about-copy h2,
    .team-intro h2,
    .faq-intro h2,
    .consultation-copy h2,
    .relatives-copy h2,
    .program-panel h2 {
        font-size: clamp(2.3rem, 11vw, 3.4rem);
    }

    .process-card {
        min-height: 245px;
    }

    .process-card h3 {
        margin-top: 48px;
    }

    .about-grid {
        gap: 38px;
    }

    .about-stat {
        left: 10px;
        width: 120px;
        height: 120px;
        border-width: 6px;
    }

    .about-caption {
        right: 8px;
        max-width: 220px;
        border-radius: 16px;
    }

    .direction-card {
        min-height: 330px;
    }

    .program-panel,
    .relatives-card,
    .consultation-form-wrap,
    .admin-auth-card {
        padding: 28px;
        border-radius: 24px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        grid-template-rows: 360px 220px 220px auto;
    }

    .gallery-large,
    .gallery-info {
        grid-column: auto;
        grid-row: auto;
    }

    .gallery-info {
        min-height: 220px;
    }

    .team-card {
        min-height: 260px;
    }

    .team-card h3 {
        margin-top: 44px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        gap: 38px;
    }

    .footer-bottom {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .footer-bottom p:nth-child(2) {
        text-align: left;
    }

    .admin-topbar {
        align-items: flex-start;
        gap: 18px;
    }

    .admin-topbar > div {
        flex-direction: column;
    }

    .admin-content {
        width: min(calc(100% - 24px), var(--container));
    }

    .admin-heading {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* =========================================================
   V2 — multipage site and management panel
   ========================================================= */
.brand {
    width: 156px;
    height: 76px;
    padding: 8px 14px;
    overflow: hidden;
}
.brand img,
.footer-brand img,
.admin-brand img,
.admin-login-logo img {
    object-fit: contain;
    object-position: center;
}
.main-nav { gap: clamp(11px, 1.05vw, 20px); }
.main-nav a { font-size: .78rem; }
.main-nav a.is-active::after { right: 0; }
.inner-page .site-header,
.article-page .site-header {
    background: rgba(255,253,248,.96);
    border-bottom-color: var(--line);
    box-shadow: 0 10px 32px rgba(12,36,53,.07);
    backdrop-filter: blur(18px);
}
.inner-page .site-header .main-nav a,
.inner-page .site-header .header-phone,
.article-page .site-header .main-nav a,
.article-page .site-header .header-phone { color: var(--navy-900); }
.inner-page .site-header .button-light,
.article-page .site-header .button-light { background: var(--green-600); color: white; }
.section-actions { display:flex; justify-content:center; margin-top:34px; }

.inner-hero {
    position: relative;
    min-height: 485px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    background: var(--navy-950);
}
.inner-hero-media {
    position:absolute; inset:0;
    background:
      linear-gradient(90deg, rgba(7,28,46,.93) 0%, rgba(7,28,46,.68) 54%, rgba(7,28,46,.28) 100%),
      url('../images/hero.webp') center 44%/cover no-repeat;
    transform: scale(1.02);
}
.inner-hero::after { content:""; position:absolute; inset:auto 0 0; height:150px; background:linear-gradient(transparent,rgba(7,28,46,.35)); }
.inner-hero-content { position:relative; z-index:2; padding-top:180px; padding-bottom:78px; color:white; }
.inner-hero h1 { max-width:920px; margin:12px 0 24px; color:white; font-family:Georgia,"Times New Roman",serif; font-size:clamp(3rem,6vw,6.4rem); font-weight:500; line-height:.96; letter-spacing:-.045em; }
.breadcrumbs { display:flex; align-items:center; flex-wrap:wrap; gap:10px; color:rgba(255,255,255,.66); font-size:.76rem; }
.breadcrumbs a { color:inherit; }
.soft-section { background:#f3f0e8; }
.content-card-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:18px; }
.content-card-grid article { min-height:250px; padding:30px; border:1px solid var(--line); border-radius:26px; background:white; box-shadow:var(--shadow-sm); }
.content-card-grid article > span { color:var(--warm-500); font-size:.72rem; font-weight:900; letter-spacing:.12em; }
.content-card-grid h3 { margin:55px 0 12px; color:var(--navy-950); font-family:Georgia,"Times New Roman",serif; font-size:1.55rem; font-weight:500; }
.content-card-grid p { color:var(--muted); line-height:1.75; }
.program-detail-section { color:white; background:var(--navy-950); }
.program-detail-section h2,.program-detail-section .lead { color:white; }
.program-detail-grid { display:grid; grid-template-columns:.8fr 1.2fr; gap:90px; align-items:start; }
.number-list { list-style:none; margin:0; padding:0; border-top:1px solid rgba(255,255,255,.14); }
.number-list li { display:grid; grid-template-columns:60px 1fr; gap:20px; align-items:center; padding:22px 0; border-bottom:1px solid rgba(255,255,255,.14); }
.number-list span { color:var(--warm-400); font-size:.72rem; font-weight:900; }
.number-list strong { font-size:1.05rem; font-weight:650; }
.relatives-page-grid { display:grid; grid-template-columns:.85fr 1.15fr; gap:80px; align-items:start; }
.relatives-checklist { display:grid; gap:14px; }
.relatives-checklist article { display:grid; grid-template-columns:56px 1fr; gap:20px; padding:24px; border:1px solid var(--line); border-radius:22px; background:white; }
.relatives-checklist article > span { color:var(--warm-500); font-weight:900; }
.relatives-checklist h3 { margin:0 0 8px; color:var(--navy-950); font-size:1.05rem; }
.relatives-checklist p { margin:0; color:var(--muted); }
.large-gallery figure { min-height:460px; }
.people-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:22px; }
.person-card { overflow:hidden; border:1px solid var(--line); border-radius:26px; background:white; box-shadow:var(--shadow-sm); }
.person-card > img,.person-placeholder { width:100%; aspect-ratio:4/4.4; object-fit:cover; }
.person-placeholder { display:grid; place-items:center; background:linear-gradient(145deg,var(--navy-800),var(--green-600)); color:white; font-family:Georgia,serif; font-size:4rem; }
.person-card > div:last-child { padding:24px; }
.person-card h3 { margin:0 0 6px; color:var(--navy-950); font-family:Georgia,serif; font-size:1.45rem; font-weight:500; }
.person-card strong { color:var(--green-700); font-size:.78rem; }
.person-card p,.person-bio { color:var(--muted); line-height:1.65; }
.person-bio { margin-top:14px; font-size:.84rem; }
.team-placeholder-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:18px; }
.team-placeholder-grid article { padding:34px; border-radius:26px; background:var(--navy-950); color:white; }
.team-placeholder-grid span { color:var(--warm-400); }
.team-placeholder-grid h3 { margin:46px 0 10px; font-family:Georgia,serif; font-size:1.8rem; font-weight:500; }
.team-placeholder-grid p { color:rgba(255,255,255,.68); }
.news-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:22px; }
.news-list-grid { grid-template-columns:repeat(3,1fr); }
.news-card { overflow:hidden; border:1px solid var(--line); border-radius:26px; background:white; box-shadow:var(--shadow-sm); }
.news-card-image { display:block; overflow:hidden; aspect-ratio:16/10; }
.news-card-image img { width:100%; height:100%; object-fit:cover; transition:transform .45s ease; }
.news-card:hover .news-card-image img { transform:scale(1.04); }
.news-card > div { padding:26px; }
.news-card time { color:var(--warm-600); font-size:.72rem; font-weight:900; letter-spacing:.08em; }
.news-card h2,.news-card h3 { margin:12px 0; color:var(--navy-950); font-family:Georgia,serif; font-size:1.55rem; font-weight:500; line-height:1.15; }
.news-card p { color:var(--muted); line-height:1.65; }
.empty-public { padding:70px 28px; border:1px dashed rgba(16,54,87,.23); border-radius:26px; background:white; text-align:center; }
.empty-public h2 { color:var(--navy-950); font-family:Georgia,serif; font-size:2rem; font-weight:500; }
.contact-page-grid { display:grid; grid-template-columns:1fr 1fr; gap:24px; }
.contact-panel,.contact-address-card { padding:42px; border:1px solid var(--line); border-radius:28px; background:white; box-shadow:var(--shadow-sm); }
.contact-phone-card { display:flex; align-items:center; justify-content:space-between; gap:18px; padding:18px 0; border-bottom:1px solid var(--line); }
.contact-phone-card span { color:var(--muted); }
.contact-phone-card strong { color:var(--navy-950); font-size:1.25rem; }
.contact-address-card { color:white; background:var(--navy-950); }
.contact-address-card h2 { color:white; font-family:Georgia,serif; font-size:2.3rem; font-weight:500; line-height:1.12; }
.contact-address-card p { color:rgba(255,255,255,.68); }
.article-hero { padding:190px 0 90px; color:white; background:var(--navy-950); }
.article-hero .breadcrumbs { margin-bottom:38px; }
.article-hero time { color:var(--warm-400); font-weight:850; }
.article-hero h1 { max-width:1000px; margin:18px 0; color:white; font-family:Georgia,serif; font-size:clamp(2.8rem,5.6vw,6rem); font-weight:500; line-height:1; }
.article-hero p { max-width:760px; color:rgba(255,255,255,.72); font-size:1.1rem; line-height:1.7; }
.article-content { padding:80px 0 120px; background:var(--cream-100); }
.article-container { max-width:900px; }
.article-cover { width:100%; max-height:520px; object-fit:cover; margin-bottom:42px; border-radius:28px; }
.article-body { margin-bottom:44px; color:#34434c; font-size:1.06rem; line-height:1.9; white-space:normal; }

/* Admin V2 */
body.admin-page { overflow-x:hidden; background:#eef1f2; }
.admin-shell { min-height:100vh; display:grid; grid-template-columns:270px minmax(0,1fr); place-items:stretch; padding:0; }
.admin-sidebar { position:fixed; inset:0 auto 0 0; z-index:80; width:270px; display:flex; flex-direction:column; padding:24px 18px; color:white; background:#09243d; }
.admin-brand { display:flex; align-items:center; gap:12px; padding:4px 8px 24px; border-bottom:1px solid rgba(255,255,255,.1); }
.admin-brand img { width:86px; height:52px; padding:5px 8px; border-radius:12px; background:white; }
.admin-brand span { color:rgba(255,255,255,.67); font-size:.72rem; line-height:1.35; }
.admin-nav { display:grid; gap:7px; margin-top:24px; }
.admin-nav a { display:flex; align-items:center; gap:13px; padding:13px 14px; border-radius:13px; color:rgba(255,255,255,.72); font-size:.86rem; font-weight:750; }
.admin-nav a span { width:22px; text-align:center; color:var(--warm-400); }
.admin-nav a:hover,.admin-nav a.is-active { color:white; background:rgba(255,255,255,.1); }
.admin-sidebar-bottom { display:grid; gap:10px; margin-top:auto; padding:20px 8px 0; border-top:1px solid rgba(255,255,255,.1); }
.admin-sidebar-bottom a,.admin-sidebar-bottom button { color:rgba(255,255,255,.68); font-size:.8rem; }
.admin-sidebar-bottom button { padding:0; border:0; background:none; cursor:pointer; }
.admin-main { grid-column:2; min-width:0; }
.admin-topbar { position:sticky; top:0; z-index:60; min-height:76px; display:flex; justify-content:flex-end; padding:13px 32px; border-bottom:1px solid #dbe1e3; background:rgba(255,255,255,.94); backdrop-filter:blur(14px); }
.admin-topbar > div { display:grid; gap:3px; text-align:right; }
.admin-topbar strong { color:var(--navy-950); }
.admin-topbar span { color:var(--muted); font-size:.72rem; }
.admin-menu-button { display:none; border:0; background:none; font-size:1.4rem; cursor:pointer; }
.admin-content { width:100%; max-width:1500px; margin:0 auto; padding:38px 34px 70px; }
.admin-page-head { display:flex; align-items:flex-end; justify-content:space-between; gap:22px; margin-bottom:28px; }
.admin-page-head p { margin:0 0 7px; color:var(--green-700); font-size:.7rem; font-weight:900; letter-spacing:.12em; text-transform:uppercase; }
.admin-page-head h1 { margin:0; color:var(--navy-950); font-family:Georgia,serif; font-size:clamp(2.2rem,4vw,3.6rem); font-weight:500; line-height:1; }
.admin-head-actions { display:flex; flex-wrap:wrap; gap:10px; }
.admin-primary-button,.admin-secondary-button { display:inline-flex; align-items:center; justify-content:center; min-height:44px; padding:11px 17px; border:0; border-radius:12px; font:inherit; font-size:.78rem; font-weight:850; cursor:pointer; }
.admin-primary-button { color:white; background:var(--green-600); }
.admin-secondary-button { color:var(--navy-900); border:1px solid #d5dcdf; background:white; }
.admin-stat-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:16px; margin-bottom:24px; }
.admin-stat-grid a { display:grid; gap:6px; padding:24px; border:1px solid #dbe1e3; border-radius:20px; background:white; box-shadow:0 8px 25px rgba(15,41,58,.05); }
.admin-stat-grid span { color:var(--muted); font-size:.76rem; font-weight:800; }
.admin-stat-grid strong { color:var(--navy-950); font-family:Georgia,serif; font-size:2.8rem; font-weight:500; }
.admin-stat-grid small { color:var(--green-700); }
.admin-panel-grid { display:grid; grid-template-columns:1fr 1fr; gap:18px; }
.admin-panel { padding:26px; border:1px solid #dbe1e3; border-radius:20px; background:white; box-shadow:0 8px 25px rgba(15,41,58,.04); }
.admin-panel h2 { margin:0 0 18px; color:var(--navy-950); font-family:Georgia,serif; font-size:1.55rem; font-weight:500; }
.admin-panel p { color:var(--muted); line-height:1.7; }
.admin-quick-links { display:grid; }
.admin-quick-links a { display:flex; justify-content:space-between; padding:14px 0; border-bottom:1px solid #edf0f1; color:var(--navy-900); font-weight:800; }
.admin-alert { margin-bottom:20px; padding:14px 18px; border-radius:13px; font-size:.84rem; }
.admin-alert.success { color:#24561e; background:#e7f4df; }
.admin-alert.error { color:#842d2d; background:#fde8e8; }
.admin-table-wrap { border-color:#dbe1e3; border-radius:18px; }
.admin-table { min-width:960px; }
.admin-table th,.admin-table td { padding:15px; }
.admin-table td strong,.admin-table td small,.admin-table td a { display:block; }
.admin-table td small { margin-top:5px; color:var(--muted); }
.admin-table td p { max-width:420px; margin:0 0 5px; line-height:1.5; }
.table-main-link { color:var(--navy-950)!important; font-size:.92rem; }
.inline-form select { min-width:130px; padding:9px 10px; border:1px solid #d6dddf; border-radius:10px; background:white; }
.admin-link-button,.danger-link { padding:0; border:0; background:none; color:var(--green-700); font:inherit; font-size:.76rem; font-weight:850; cursor:pointer; }
.danger-link { color:#a33a3a!important; }
.admin-card-list { display:grid; gap:14px; }
.admin-list-card { display:grid; grid-template-columns:130px 1fr auto; gap:22px; align-items:center; padding:16px; border:1px solid #dbe1e3; border-radius:18px; background:white; }
.admin-list-card > img,.admin-list-placeholder { width:130px; height:100px; border-radius:13px; object-fit:cover; }
.employee-list-card > img,.employee-list-card .admin-list-placeholder { height:130px; }
.admin-list-placeholder { display:grid; place-items:center; color:white; background:linear-gradient(145deg,var(--navy-800),var(--green-600)); font-weight:900; }
.admin-list-main h2 { margin:8px 0; color:var(--navy-950); font-family:Georgia,serif; font-size:1.35rem; font-weight:500; }
.admin-list-main p { max-width:760px; margin:0 0 8px; color:var(--muted); }
.admin-list-main small { color:#89959b; }
.admin-list-meta { display:flex; align-items:center; gap:10px; color:var(--muted); font-size:.72rem; }
.admin-list-actions { display:grid; justify-items:end; gap:10px; min-width:120px; }
.admin-list-actions a { color:var(--green-700); font-size:.78rem; font-weight:850; }
.status-badge.status-draft { color:#665c32; background:#f4edcd; }
.status-badge.status-published { color:#24561e; background:#e7f4df; }
.status-badge.status-client { color:#164d68; background:#dceff7; }
.admin-form { display:block; margin-top:0; }
.admin-form-grid { display:grid; grid-template-columns:minmax(0,1.7fr) minmax(280px,.7fr); gap:18px; align-items:start; }
.admin-form-grid.wide-main { grid-template-columns:minmax(0,1.5fr) minmax(300px,.65fr); }
.admin-form-row { display:grid; grid-template-columns:1fr 1fr; gap:15px; }
.admin-field { display:grid; gap:7px; margin-bottom:16px; }
.admin-field > span { color:#5e6b72; font-size:.72rem; font-weight:850; }
.admin-field input,.admin-field select,.admin-field textarea,.admin-filter-bar input,.admin-filter-bar select { width:100%; padding:12px 13px; border:1px solid #d5dcdf; border-radius:11px; background:#fbfcfc; color:#21343f; font:inherit; font-size:.85rem; outline:none; }
.admin-field textarea { resize:vertical; line-height:1.55; }
.admin-field input:focus,.admin-field select:focus,.admin-field textarea:focus,.admin-filter-bar input:focus,.admin-filter-bar select:focus { border-color:var(--green-600); box-shadow:0 0 0 3px rgba(66,133,62,.12); }
.admin-checkbox { display:flex!important; align-items:flex-start; gap:9px; margin:15px 0; color:#53636b; font-size:.8rem; }
.admin-checkbox input { width:auto; margin-top:2px; }
.admin-help { padding:14px; border-radius:12px; background:#f3f6f6; font-size:.78rem; }
.admin-image-preview { width:100%; max-height:240px; object-fit:cover; margin:10px 0; border-radius:14px; }
.portrait-preview { max-height:360px; object-position:top; }
.admin-form-actions { display:flex; gap:10px; margin-top:18px; }
.admin-filter-bar { display:grid; grid-template-columns:minmax(240px,1fr) 230px auto auto; gap:10px; align-items:center; margin-bottom:18px; padding:14px; border:1px solid #dbe1e3; border-radius:16px; background:white; }
.admin-filter-bar > a { color:var(--green-700); font-size:.78rem; font-weight:850; }
.client-profile-grid { display:grid; grid-template-columns:minmax(300px,.7fr) minmax(0,1.3fr); gap:18px; align-items:start; }
.client-status-row { display:flex; justify-content:space-between; gap:12px; margin-bottom:20px; }
.client-summary dl { display:grid; grid-template-columns:1fr 1fr; gap:0; margin:0; }
.client-summary dl > div { padding:13px 0; border-bottom:1px solid #edf0f1; }
.client-summary dt { margin-bottom:5px; color:var(--muted); font-size:.68rem; font-weight:850; text-transform:uppercase; }
.client-summary dd { margin:0; color:var(--navy-950); font-weight:700; }
.client-summary dd a { color:var(--green-700); }
.client-internal-summary { margin-top:22px; padding:18px; border-radius:14px; background:#f3f6f6; }
.client-internal-summary h2 { font-size:1.15rem; }
.client-internal-summary p { margin:0; white-space:normal; }
.danger-zone { margin-top:24px; padding-top:18px; border-top:1px solid #edf0f1; }
.compact-form { display:block; }
.timeline-list { display:grid; gap:0; margin-top:18px; }
.timeline-item { position:relative; display:grid; grid-template-columns:20px 1fr; gap:14px; }
.timeline-item::before { content:""; position:absolute; left:9px; top:18px; bottom:-18px; width:2px; background:#dbe4e4; }
.timeline-item:last-child::before { display:none; }
.timeline-dot { position:relative; z-index:2; width:20px; height:20px; margin-top:20px; border:5px solid #dceddc; border-radius:50%; background:var(--green-600); }
.timeline-card { margin-bottom:14px; padding:20px; border:1px solid #dbe1e3; border-radius:16px; background:white; }
.timeline-meta { display:flex; justify-content:space-between; gap:12px; color:var(--muted); font-size:.72rem; }
.timeline-meta span { color:var(--green-700); font-weight:850; }
.timeline-card h3 { margin:12px 0 8px; color:var(--navy-950); }
.timeline-card p { color:#405159; line-height:1.65; }
.timeline-card footer { display:flex; justify-content:space-between; align-items:center; margin-top:12px; padding-top:12px; border-top:1px solid #edf0f1; }
.admin-login-screen { min-height:100vh; display:grid; place-items:center; padding:24px; background:linear-gradient(145deg,#071d31,#0b3557); }
.admin-login-card { width:min(100%,460px); padding:38px; border-radius:26px; background:white; box-shadow:0 28px 70px rgba(0,0,0,.28); }
.admin-login-logo { display:inline-flex; width:150px; height:82px; padding:8px; margin-bottom:20px; border:1px solid var(--line); border-radius:16px; }
.admin-login-card h1 { margin:8px 0 12px; color:var(--navy-950); font-family:Georgia,serif; font-size:2.8rem; font-weight:500; }
.admin-login-card > p { color:var(--muted); }
.admin-login-card form { display:grid; gap:15px; margin-top:24px; }
.admin-login-card label { display:grid; gap:7px; }
.admin-login-card label span { color:#5d6970; font-size:.72rem; font-weight:850; }
.admin-login-card input { padding:13px; border:1px solid #d5dcdf; border-radius:11px; font:inherit; }
.admin-login-back { display:inline-flex; margin-top:22px; color:var(--green-700); font-size:.8rem; font-weight:850; }

@media (max-width: 1280px) {
    .header-phone { display:none; }
    .main-nav { gap:12px; }
    .main-nav a { font-size:.74rem; }
    .content-card-grid,.people-grid,.admin-stat-grid { grid-template-columns:repeat(2,1fr); }
}
@media (max-width: 980px) {
    .program-detail-grid,.relatives-page-grid,.contact-page-grid,.client-profile-grid { grid-template-columns:1fr; gap:35px; }
    .content-card-grid,.news-grid,.news-list-grid { grid-template-columns:repeat(2,1fr); }
    .team-placeholder-grid { grid-template-columns:1fr; }
    .admin-shell { grid-template-columns:1fr; }
    .admin-sidebar { transform:translateX(-100%); transition:transform .22s ease; box-shadow:18px 0 45px rgba(0,0,0,.2); }
    .admin-sidebar.is-open { transform:translateX(0); }
    .admin-main { grid-column:1; }
    .admin-topbar { justify-content:space-between; }
    .admin-menu-button { display:block; }
    .admin-form-grid,.admin-form-grid.wide-main,.admin-panel-grid { grid-template-columns:1fr; }
}
@media (max-width: 720px) {
    .brand { width:120px; height:60px; }
    .inner-hero { min-height:420px; }
    .inner-hero-content { padding-top:150px; padding-bottom:55px; }
    .inner-hero h1 { font-size:clamp(2.55rem,14vw,4.5rem); }
    .content-card-grid,.people-grid,.news-grid,.news-list-grid,.admin-stat-grid { grid-template-columns:1fr; }
    .content-card-grid article { min-height:auto; }
    .content-card-grid h3 { margin-top:30px; }
    .admin-content { padding:26px 14px 55px; }
    .admin-topbar { padding:12px 15px; }
    .admin-page-head { align-items:flex-start; flex-direction:column; }
    .admin-page-head h1 { font-size:2.5rem; }
    .admin-form-row { grid-template-columns:1fr; gap:0; }
    .admin-filter-bar { grid-template-columns:1fr; }
    .admin-list-card { grid-template-columns:76px 1fr; gap:13px; align-items:start; }
    .admin-list-card > img,.admin-list-placeholder,.employee-list-card > img,.employee-list-card .admin-list-placeholder { width:76px; height:76px; }
    .admin-list-actions { grid-column:1/-1; display:flex; justify-content:flex-start; flex-wrap:wrap; padding-top:10px; border-top:1px solid #edf0f1; }
    .admin-table { min-width:0; }
    .admin-table thead { display:none; }
    .admin-table,.admin-table tbody,.admin-table tr,.admin-table td { display:block; width:100%; }
    .admin-table tr { padding:14px; border-bottom:1px solid #dbe1e3; }
    .admin-table td { display:grid; grid-template-columns:110px 1fr; gap:12px; padding:8px 0; border:0; }
    .admin-table td::before { content:attr(data-label); color:var(--muted); font-size:.66rem; font-weight:850; text-transform:uppercase; }
    .client-summary dl { grid-template-columns:1fr; }
    .admin-login-card { padding:28px 22px; }
}

/* =========================================================
   V2.2 — branding, reviews, gallery and site settings
   ========================================================= */
.brand {
    width: 190px;
    height: 62px;
    padding: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    overflow: visible;
}
.brand img {
    filter: drop-shadow(0 8px 14px rgba(0,0,0,.22));
}
.site-header.is-scrolled .brand {
    height: 54px;
}
.site-header.is-scrolled .brand img,
.inner-page .brand img,
.article-page .brand img {
    filter: none;
}
.footer-brand img {
    width: 170px;
    height: 110px;
    padding: 10px;
    border-radius: 18px;
    background: rgba(255,255,255,.96);
}
.footer-socials,
.contact-socials {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 12px;
}
.footer-socials a,
.contact-socials a {
    display: inline-flex;
    padding: 8px 11px;
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 800;
}
.contact-socials a {
    color: white;
    background: rgba(255,255,255,.08);
}
.admin-sidebar {
    overflow-y: auto;
}
.admin-stat-grid {
    grid-template-columns: repeat(6, minmax(0,1fr));
}
.admin-form-row.three {
    grid-template-columns: repeat(3,1fr);
}
.admin-settings-section {
    margin-top: 18px;
}
.admin-branding-preview {
    display: grid;
    place-items: center;
    min-height: 190px;
    margin-bottom: 18px;
    padding: 24px;
    border: 1px dashed #ccd6da;
    border-radius: 18px;
    background: linear-gradient(145deg,#f7f9f9,#eef3f4);
}
.admin-branding-preview img {
    width: min(100%,280px);
    max-height: 170px;
    object-fit: contain;
}
.admin-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 18px;
}
.admin-gallery-card {
    overflow: hidden;
    border: 1px solid #dbe1e3;
    border-radius: 20px;
    background: white;
    box-shadow: 0 8px 25px rgba(15,41,58,.05);
}
.admin-gallery-card > img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
}
.admin-gallery-card > div {
    padding: 18px;
}
.admin-gallery-card h2 {
    margin: 12px 0 7px;
    color: var(--navy-950);
    font-family: Georgia,serif;
    font-size: 1.3rem;
    font-weight: 500;
}
.admin-gallery-card p {
    min-height: 42px;
    color: var(--muted);
    font-size: .82rem;
}
.admin-gallery-card .admin-list-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid #edf0f1;
}
.review-admin-card .admin-list-placeholder {
    font-family: Georgia,serif;
    font-size: 4rem;
}
.status-badge.status-featured {
    color: #70470a;
    background: #fff0c7;
}
.admin-image-preview.large {
    max-height: 430px;
}
.section-reviews .stories-grid {
    margin-top: 34px;
}

@media (max-width: 1320px) {
    .admin-stat-grid { grid-template-columns: repeat(3,1fr); }
    .admin-gallery-grid { grid-template-columns: repeat(2,1fr); }
    .brand { width: 170px; height: 56px; }
    .main-nav { gap: 9px; }
    .main-nav a { font-size: .71rem; }
}
@media (max-width: 820px) {
    .admin-form-row.three { grid-template-columns: 1fr; gap: 0; }
    .admin-gallery-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
    .brand { width: 138px; height: 48px; }
    .site-header.is-scrolled .brand { height: 44px; }
    .admin-stat-grid { grid-template-columns: 1fr; }
}

/* =========================================================
   V2.3 — corrected responsive logo and portability tools
   ========================================================= */
.brand {
    position: relative;
    width: 208px;
    height: 58px;
    flex: 0 0 208px;
    display: block;
    padding: 0;
    background: transparent;
    box-shadow: none;
    overflow: visible;
}
.brand .brand-logo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: left center;
    transition: opacity 180ms ease, transform 220ms ease;
}
.brand-logo-light {
    opacity: 1;
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, .32));
}
.brand-logo-dark {
    opacity: 0;
}
.site-header.is-scrolled .brand-logo-light,
.inner-page .brand-logo-light,
.article-page .brand-logo-light {
    opacity: 0;
}
.site-header.is-scrolled .brand-logo-dark,
.inner-page .brand-logo-dark,
.article-page .brand-logo-dark {
    opacity: 1;
}
.site-header.is-scrolled .brand,
.inner-page .brand,
.article-page .brand {
    height: 52px;
}
.site-header.is-scrolled .brand-logo-dark,
.inner-page .brand-logo-dark,
.article-page .brand-logo-dark {
    filter: none;
}
.brand:hover .brand-logo {
    transform: translateY(-1px);
}
.footer-brand img {
    width: min(100%, 238px);
    height: auto;
    max-height: 70px;
    padding: 0;
    border-radius: 0;
    background: transparent;
    object-fit: contain;
    object-position: left center;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, .2));
}
.branding-preview-full img {
    max-height: 190px;
}
.branding-preview-header {
    min-height: 118px;
}
.branding-preview-header img {
    width: min(100%, 360px);
    max-height: 88px;
}
.branding-preview-dark {
    min-height: 118px;
    background: linear-gradient(145deg, #0c2b45, #153d5c);
    border-color: rgba(255,255,255,.16);
}
.branding-preview-dark img {
    width: min(100%, 360px);
    max-height: 88px;
}
.admin-system-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr);
    gap: 22px;
}
.system-facts {
    display: grid;
    gap: 0;
    margin: 0;
}
.system-facts > div {
    display: grid;
    grid-template-columns: minmax(150px, .75fr) minmax(0, 1.25fr);
    gap: 18px;
    align-items: center;
    padding: 13px 0;
    border-bottom: 1px solid #edf0f1;
}
.system-facts > div:last-child {
    border-bottom: 0;
}
.system-facts dt {
    color: var(--muted);
    font-size: .8rem;
    font-weight: 700;
}
.system-facts dd {
    margin: 0;
    color: var(--navy-950);
    font-size: .86rem;
    font-weight: 800;
    overflow-wrap: anywhere;
}
.system-copy {
    margin-bottom: 18px;
    line-height: 1.65;
}
.system-document-links {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 20px;
}
.system-document-links a {
    display: inline-flex;
    padding: 9px 12px;
    border: 1px solid #d8e0e3;
    border-radius: 999px;
    color: var(--navy-900);
    background: #f8faf9;
    font-size: .76rem;
    font-weight: 800;
}
.system-check-table {
    display: grid;
}
.system-check-row {
    display: flex;
    justify-content: space-between;
    gap: 22px;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid #edf0f1;
}
.system-check-row:last-child {
    border-bottom: 0;
}
.system-check-row > div {
    display: grid;
    gap: 3px;
    min-width: 0;
}
.system-check-row strong {
    color: var(--navy-950);
    font-size: .86rem;
}
.system-check-row small {
    color: var(--muted);
    font-size: .7rem;
    overflow-wrap: anywhere;
}
.system-steps {
    display: grid;
    gap: 12px;
    margin: 0;
    padding-left: 22px;
    color: #3f5260;
    line-height: 1.65;
}
.admin-document-content {
    max-height: 72vh;
    margin: 0;
    padding: 20px;
    overflow: auto;
    border: 1px solid #dce3e5;
    border-radius: 16px;
    color: #233e50;
    background: #f7f9f9;
    font: 500 .82rem/1.7 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}
.admin-primary-button:disabled {
    cursor: not-allowed;
    opacity: .48;
}
.admin-help.warning {
    color: #8b5b12;
}

@media (max-width: 1320px) {
    .brand {
        width: 184px;
        flex-basis: 184px;
        height: 54px;
    }
}
@media (max-width: 1120px) {
    .brand {
        width: 172px;
        flex-basis: 172px;
        height: 50px;
    }
}
@media (max-width: 900px) {
    .admin-system-grid {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 720px) {
    .brand {
        width: 154px;
        flex-basis: 154px;
        height: 45px;
    }
    .site-header.is-scrolled .brand,
    .inner-page .brand,
    .article-page .brand {
        height: 43px;
    }
    .system-facts > div {
        grid-template-columns: 1fr;
        gap: 5px;
    }
    .system-check-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 9px;
    }
}

/* =========================================================
   V2.4 — единый полный логотип, Hero-карусель и этапы с иконками
   ========================================================= */
.site-header {
    height: 112px;
}
.site-header.is-scrolled,
.inner-page .site-header,
.article-page .site-header {
    height: 86px;
}
.header-inner {
    gap: 22px;
}
.brand,
.site-header.is-scrolled .brand,
.inner-page .brand,
.article-page .brand {
    position: relative;
    width: 150px;
    height: 102px;
    flex: 0 0 150px;
    display: grid;
    place-items: center;
    padding: 5px 8px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.78);
    border-radius: 24px;
    background: rgba(255,255,255,.97);
    box-shadow: 0 18px 44px rgba(3,22,38,.22);
    transform: translateY(10px);
    transition: width 220ms ease, height 220ms ease, transform 220ms ease, border-radius 220ms ease, box-shadow 220ms ease;
}
.brand .brand-logo,
.brand img {
    position: static;
    inset: auto;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    object-position: center;
    opacity: 1;
    filter: none;
    transform: none;
}
.site-header.is-scrolled .brand,
.inner-page .brand,
.article-page .brand {
    width: 116px;
    height: 78px;
    flex-basis: 116px;
    padding: 4px 7px;
    border-radius: 18px;
    transform: none;
    box-shadow: 0 8px 25px rgba(12,36,53,.12);
}
.brand:hover .brand-logo {
    transform: scale(1.015);
}
.footer-brand img {
    width: 176px;
    height: auto;
    max-height: none;
    padding: 10px;
    border-radius: 22px;
    background: rgba(255,255,255,.96);
    object-fit: contain;
    object-position: center;
    filter: drop-shadow(0 10px 22px rgba(0,0,0,.2));
}
.admin-brand img {
    width: 86px;
    height: 62px;
    object-fit: contain;
    padding: 4px 6px;
}

.hero-carousel {
    position: relative;
    min-height: 820px;
    height: min(94vh, 960px);
    padding: 0;
    isolation: isolate;
}
.hero-slides,
.hero-slide {
    position: absolute;
    inset: 0;
}
.hero-slide {
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 850ms cubic-bezier(.22,.7,.18,1), visibility 850ms ease;
}
.hero-slide.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    z-index: 2;
}
.hero-slide .hero-media,
.hero-slide .hero-media picture,
.hero-slide .hero-media img,
.hero-slide .hero-media video,
.hero-slide .hero-shade,
.hero-slide .hero-glow {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}
.hero-slide .hero-media picture {
    display: block;
}
.hero-slide .hero-media img,
.hero-slide .hero-media video {
    object-fit: cover;
    object-position: center 49%;
}
.hero-slide .hero-media img {
    animation: none;
    transform: scale(1.035);
    transition: transform 9s ease-out;
}
.hero-slide.is-active .hero-media img {
    transform: scale(1.09);
}
.hero-slide .hero-media video {
    background: var(--navy-950);
}
.hero-slide .hero-content {
    position: relative;
    z-index: 3;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    padding-top: 118px;
    padding-bottom: 90px;
}
.hero-slide .hero-copy,
.hero-slide .hero-note {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 620ms ease 180ms, transform 620ms ease 180ms;
}
.hero-slide .hero-note {
    transition-delay: 280ms;
}
.hero-slide.is-active .hero-copy,
.hero-slide.is-active .hero-note {
    opacity: 1;
    transform: none;
}
.hero-carousel-controls {
    position: absolute;
    z-index: 7;
    left: 50%;
    bottom: 34px;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 18px;
    pointer-events: none;
}
.hero-carousel-controls > * {
    pointer-events: auto;
}
.hero-arrows {
    display: flex;
    gap: 8px;
}
.hero-arrows button,
.hero-pause {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255,255,255,.28);
    border-radius: 50%;
    color: white;
    background: rgba(4,27,44,.45);
    backdrop-filter: blur(14px);
    cursor: pointer;
    transition: background 180ms ease, transform 180ms ease;
}
.hero-arrows button:hover,
.hero-pause:hover {
    background: rgba(255,255,255,.2);
    transform: translateY(-2px);
}
.hero-dots {
    display: flex;
    align-items: center;
    gap: 7px;
}
.hero-dots button {
    width: 34px;
    height: 18px;
    padding: 7px 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}
.hero-dots button span {
    width: 100%;
    height: 3px;
    display: block;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255,255,255,.36);
}
.hero-dots button span::after {
    content: "";
    width: 0;
    height: 100%;
    display: block;
    border-radius: inherit;
    background: #e3efc7;
}
.hero-dots button.is-active span::after {
    width: 100%;
    transition: width var(--hero-duration, 7s) linear;
}
.hero-pause {
    font-size: .76rem;
    font-weight: 900;
}
.hero-pause[aria-pressed="true"] {
    color: var(--navy-950);
    background: #e3efc7;
}
.hero-carousel .hero-scroll {
    left: auto;
    right: max(24px, calc((100vw - var(--container)) / 2));
    transform: none;
}

.process-top {
    align-items: flex-start;
}
.process-step-label {
    padding-top: 7px;
    color: var(--green-700);
    font-size: .72rem;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.process-icon {
    width: 66px;
    height: 66px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(20,88,77,.12);
    border-radius: 22px;
    color: var(--green-700);
    background: linear-gradient(145deg,#f5f8ef,#e3edcf);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.8);
}
.process-icon svg {
    width: 38px;
    height: 38px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.process-card-2 .process-icon {
    color: #0b6aa2;
    background: linear-gradient(145deg,#f1f8fc,#dfeff7);
}
.process-card-3 .process-icon {
    color: #b76a08;
    background: linear-gradient(145deg,#fff8e8,#f9e8bd);
}
.process-card-4 .process-icon {
    color: #176c63;
    background: linear-gradient(145deg,#eef8f5,#d8ebe6);
}
.process-card h3 {
    margin-top: 58px;
}

.admin-hero-info {
    margin-bottom: 22px;
}
.admin-hero-info p {
    margin: 0;
    color: var(--muted);
    line-height: 1.65;
}
.admin-hero-media {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--navy-950);
}
.admin-hero-media img,
.admin-hero-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.admin-media-type {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 7px 10px;
    border-radius: 999px;
    color: white;
    background: rgba(4,27,44,.72);
    font-size: .68rem;
    font-weight: 850;
    backdrop-filter: blur(10px);
}
.admin-hero-card > img {
    display: none;
}
.admin-hero-card > div:last-child {
    padding: 18px;
}
.admin-hero-current-media {
    margin-top: 18px;
    overflow: hidden;
    border: 1px solid #dbe1e3;
    border-radius: 16px;
    background: #071c2e;
}
.admin-hero-current-media img,
.admin-hero-current-media video {
    width: 100%;
    max-height: 330px;
    display: block;
    object-fit: contain;
}
.admin-checkbox-block {
    min-height: 76px;
    align-content: center;
    margin-top: 0;
}
.branding-preview-logo-card {
    min-height: 250px;
    padding: 18px;
    background: linear-gradient(145deg,#f9faf8,#edf2ee);
}
.branding-preview-logo-card img {
    width: min(100%, 330px);
    max-height: 220px;
}
.admin-inline-button {
    margin-top: 18px;
}

@media (max-width: 1320px) {
    .brand,
    .site-header.is-scrolled .brand,
    .inner-page .brand,
    .article-page .brand {
        width: 128px;
        flex-basis: 128px;
    }
    .brand { height: 90px; }
    .site-header.is-scrolled .brand,
    .inner-page .brand,
    .article-page .brand { height: 74px; }
    .main-nav { gap: 8px; }
    .main-nav a { font-size: .7rem; }
}
@media (max-width: 1120px) {
    .brand,
    .site-header.is-scrolled .brand,
    .inner-page .brand,
    .article-page .brand {
        width: 116px;
        flex-basis: 116px;
        height: 76px;
        transform: none;
    }
}
@media (max-width: 980px) {
    .site-header,
    .site-header.is-scrolled,
    .inner-page .site-header,
    .article-page .site-header {
        height: 88px;
    }
    .brand,
    .site-header.is-scrolled .brand,
    .inner-page .brand,
    .article-page .brand {
        width: 108px;
        height: 76px;
        flex-basis: 108px;
        padding: 3px 5px;
        border-radius: 18px;
        transform: none;
    }
    .main-nav {
        padding-top: 120px;
    }
    .hero-carousel {
        min-height: 760px;
        height: 100svh;
        padding: 0;
    }
    .hero-slide .hero-content {
        align-items: flex-start;
        justify-content: center;
        flex-direction: column;
        gap: 32px;
        padding-top: 130px;
        padding-bottom: 105px;
    }
    .hero-slide .hero-copy {
        width: min(780px,100%);
    }
    .hero-carousel-controls {
        bottom: 26px;
    }
    .hero-carousel .hero-scroll {
        display: none;
    }
}
@media (max-width: 700px) {
    .site-header,
    .site-header.is-scrolled,
    .inner-page .site-header,
    .article-page .site-header {
        height: 82px;
    }
    .brand,
    .site-header.is-scrolled .brand,
    .inner-page .brand,
    .article-page .brand {
        width: 96px;
        height: 70px;
        flex-basis: 96px;
        border-radius: 16px;
    }
    .hero-carousel {
        min-height: 720px;
    }
    .hero-slide .hero-media img,
    .hero-slide .hero-media video {
        object-position: center 45%;
    }
    .hero-slide .hero-content {
        padding-top: 115px;
        padding-bottom: 92px;
    }
    .hero-carousel-controls {
        justify-content: space-between;
        gap: 10px;
        bottom: 20px;
    }
    .hero-arrows button,
    .hero-pause {
        width: 38px;
        height: 38px;
    }
    .hero-dots {
        flex: 1;
        justify-content: center;
    }
    .hero-dots button {
        width: min(28px, 8vw);
    }
    .process-icon {
        width: 60px;
        height: 60px;
        border-radius: 19px;
    }
    .process-icon svg {
        width: 34px;
        height: 34px;
    }
    .process-card h3 {
        margin-top: 42px;
    }
    .footer-brand img {
        width: 152px;
    }
}
@media (prefers-reduced-motion: reduce) {
    .hero-slide,
    .hero-slide .hero-copy,
    .hero-slide .hero-note,
    .hero-slide .hero-media img {
        transition: none !important;
    }
    .hero-dots button.is-active span::after {
        transition: none !important;
    }
}
.hero-video-mobile-fallback { display: none !important; }
@media (max-width: 720px) {
    .hero-video-mobile-fallback { display: block !important; }
    .hero-slide .hero-media video.has-mobile-fallback { display: none; }
}

/* =========================================================
   V2.5 — полноценная адаптация для смартфонов и планшетов
   ========================================================= */
html,
body {
    max-width: 100%;
    overflow-x: clip;
}

body.menu-open,
body.admin-menu-open {
    overflow: hidden;
    touch-action: none;
}

input,
select,
textarea,
button {
    max-width: 100%;
}

h1,
h2,
h3,
p,
a,
span,
strong,
small,
address {
    overflow-wrap: anywhere;
}

.mobile-nav-actions {
    display: none;
}

/* Исправление галереи главной страницы: карточки без служебных классов */
.gallery-grid > figure {
    position: relative;
    min-width: 0;
    min-height: 0;
    margin: 0;
    overflow: hidden;
    border-radius: var(--radius-md);
    background: var(--cream-200);
}
.gallery-grid > figure:first-child {
    grid-row: 1 / 3;
}
.gallery-grid > figure img {
    width: 100%;
    height: 100%;
    min-height: 100%;
    object-fit: cover;
    transition: transform 700ms ease;
}
.gallery-grid > figure:hover img {
    transform: scale(1.04);
}
.gallery-grid > figure figcaption {
    position: absolute;
    left: 16px;
    right: auto;
    bottom: 16px;
    max-width: calc(100% - 32px);
    padding: 8px 12px;
    border-radius: 999px;
    color: var(--navy-900);
    background: rgba(255,255,255,.9);
    box-shadow: 0 8px 24px rgba(4,25,40,.12);
    font-size: .72rem;
    font-weight: 800;
    backdrop-filter: blur(10px);
}

.admin-sidebar-backdrop {
    display: none;
}

@media (max-width: 980px) {
    :root {
        --header-height: 82px;
    }

    .container {
        width: min(calc(100% - 32px), var(--container));
    }

    .site-header,
    .site-header.is-scrolled,
    .inner-page .site-header,
    .article-page .site-header {
        height: 82px;
        padding-top: env(safe-area-inset-top, 0px);
    }

    .header-inner {
        position: relative;
        z-index: 102;
        gap: 12px;
        justify-content: space-between;
    }

    .brand,
    .site-header.is-scrolled .brand,
    .inner-page .brand,
    .article-page .brand {
        width: 102px;
        height: 72px;
        flex: 0 0 102px;
        padding: 3px 5px;
        border-radius: 17px;
        transform: none;
        box-shadow: 0 8px 24px rgba(3,22,38,.16);
    }

    .menu-toggle {
        position: relative;
        z-index: 103;
        display: block;
        flex: 0 0 46px;
        margin-left: auto;
        box-shadow: 0 8px 24px rgba(3,22,38,.14);
    }

    .main-nav {
        position: fixed;
        inset: 0;
        z-index: 101;
        width: 100%;
        height: 100dvh;
        min-height: 100svh;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 0;
        margin: 0;
        padding:
            calc(106px + env(safe-area-inset-top, 0px))
            max(24px, env(safe-area-inset-right, 0px))
            calc(30px + env(safe-area-inset-bottom, 0px))
            max(24px, env(safe-area-inset-left, 0px));
        overflow-y: auto;
        overscroll-behavior: contain;
        background:
            radial-gradient(circle at 90% 8%, rgba(255,190,70,.18), transparent 28%),
            linear-gradient(155deg, rgba(5,24,39,.995), rgba(9,45,72,.995));
        opacity: 0;
        visibility: hidden;
        transform: translateX(100%);
        transition: transform 240ms ease, opacity 200ms ease, visibility 200ms ease;
    }

    .main-nav.is-open {
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .main-nav > a,
    .site-header.is-scrolled .main-nav > a,
    .inner-page .site-header .main-nav > a,
    .article-page .site-header .main-nav > a {
        width: 100%;
        padding: 13px 0;
        border-bottom: 1px solid rgba(255,255,255,.11);
        color: var(--white);
        font-family: Georgia, "Times New Roman", serif;
        font-size: clamp(1.28rem, 5vw, 1.72rem);
        font-weight: 500;
        line-height: 1.2;
        white-space: normal;
    }

    .main-nav > a::after {
        display: none;
    }

    .main-nav > a.is-active {
        color: #dfecc6;
    }

    .mobile-nav-actions {
        display: grid;
        gap: 14px;
        margin-top: 24px;
        padding-top: 20px;
    }

    .mobile-nav-phone {
        display: grid;
        gap: 4px;
        color: var(--white);
    }

    .mobile-nav-phone span {
        color: rgba(255,255,255,.56);
        font-size: .72rem;
    }

    .mobile-nav-phone strong {
        font-size: 1.12rem;
    }

    .mobile-nav-actions .button {
        width: 100%;
    }

    .hero-carousel,
    .hero {
        height: auto;
        min-height: max(720px, 100svh);
    }

    .hero-slide .hero-content,
    .hero-content {
        min-height: max(720px, 100svh);
        align-items: flex-start;
        justify-content: center;
        flex-direction: column;
        gap: 24px;
        padding-top: calc(112px + env(safe-area-inset-top, 0px));
        padding-bottom: calc(100px + env(safe-area-inset-bottom, 0px));
    }

    .hero-copy,
    .hero-slide .hero-copy {
        width: 100%;
        max-width: 720px;
    }

    .hero h1,
    .hero-slide h1 {
        max-width: 100%;
        margin-top: 10px;
        margin-bottom: 18px;
        font-size: clamp(3rem, 10vw, 5rem);
        line-height: .96;
        letter-spacing: -.05em;
        text-wrap: pretty;
    }

    .hero-note,
    .hero-slide .hero-note {
        display: none;
    }

    .hero-carousel-controls {
        left: 16px;
        right: 16px;
        bottom: calc(20px + env(safe-area-inset-bottom, 0px));
        width: auto;
        transform: none;
        justify-content: center;
    }

    .split-heading,
    .about-grid,
    .program-detail-grid,
    .team-grid,
    .faq-grid,
    .consultation-grid,
    .relatives-card,
    .relatives-page-grid,
    .contact-page-grid,
    .client-profile-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .program-panel,
    .team-intro,
    .faq-intro {
        position: static;
    }

    .content-card-grid,
    .people-grid,
    .news-grid,
    .news-list-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .gallery-grid {
        grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
        grid-template-rows: 260px 220px;
    }

    .gallery-grid > figure:first-child {
        grid-row: 1 / 3;
    }

    /* Мобильная админ-панель */
    .admin-sidebar {
        z-index: 110;
        width: min(86vw, 310px);
        padding-top: calc(20px + env(safe-area-inset-top, 0px));
        padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px));
        transform: translateX(-105%);
    }

    .admin-sidebar.is-open {
        transform: none;
    }

    .admin-sidebar-backdrop {
        position: fixed;
        inset: 0;
        z-index: 109;
        display: block;
        border: 0;
        background: rgba(2,16,27,.58);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        backdrop-filter: blur(3px);
        transition: opacity 180ms ease, visibility 180ms ease;
    }

    body.admin-menu-open .admin-sidebar-backdrop {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .admin-topbar {
        min-height: 68px;
        padding:
            calc(10px + env(safe-area-inset-top, 0px))
            max(16px, env(safe-area-inset-right, 0px))
            10px
            max(16px, env(safe-area-inset-left, 0px));
    }

    .admin-menu-button {
        width: 44px;
        height: 44px;
        display: grid;
        place-items: center;
        border-radius: 12px;
        color: var(--navy-900);
        background: #eef3f3;
    }

    .admin-content {
        padding: 30px 22px 64px;
    }

    .admin-form-grid,
    .admin-form-grid.wide-main,
    .admin-panel-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 760px) {
    :root {
        --radius-sm: 14px;
        --radius-md: 20px;
        --radius-lg: 26px;
    }

    html {
        scroll-padding-top: 88px;
    }

    .container {
        width: min(calc(100% - 24px), var(--container));
    }

    .section {
        padding: 58px 0;
    }

    .section-heading {
        margin-bottom: 32px;
    }

    .section-heading h2,
    .about-copy h2,
    .team-intro h2,
    .faq-intro h2,
    .consultation-copy h2,
    .relatives-copy h2,
    .program-panel h2 {
        margin: 7px 0 14px;
        font-size: clamp(2rem, 10.5vw, 2.9rem);
        line-height: 1.02;
        letter-spacing: -.035em;
    }

    .section-heading > p,
    .split-heading > p,
    .about-copy > p,
    .team-intro > p,
    .faq-intro > p,
    .consultation-copy > p,
    .relatives-copy > p,
    .program-panel > p {
        font-size: .96rem;
        line-height: 1.65;
    }

    .split-heading {
        gap: 8px;
        align-items: start;
    }

    .eyebrow {
        font-size: .66rem;
        line-height: 1.45;
        letter-spacing: .13em;
    }

    .button {
        min-height: 50px;
        padding-inline: 20px;
        font-size: .86rem;
    }

    .site-header,
    .site-header.is-scrolled,
    .inner-page .site-header,
    .article-page .site-header {
        height: 78px;
    }

    .brand,
    .site-header.is-scrolled .brand,
    .inner-page .brand,
    .article-page .brand {
        width: 88px;
        height: 66px;
        flex-basis: 88px;
        border-radius: 15px;
    }

    .menu-toggle {
        width: 44px;
        height: 44px;
    }

    .main-nav {
        padding-top: calc(96px + env(safe-area-inset-top, 0px));
    }

    .hero-carousel,
    .hero {
        min-height: max(680px, 100svh);
    }

    .hero-slide .hero-media img,
    .hero-slide .hero-media video,
    .hero-media img {
        object-position: center 44%;
    }

    .hero-slide .hero-content,
    .hero-content {
        min-height: max(680px, 100svh);
        padding-top: calc(101px + env(safe-area-inset-top, 0px));
        padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px));
    }

    .hero h1,
    .hero-slide h1 {
        margin: 9px 0 15px;
        font-size: clamp(2.55rem, 12.5vw, 3.65rem);
        line-height: .98;
        letter-spacing: -.045em;
    }

    .hero-lead {
        font-size: .98rem;
        line-height: 1.55;
    }

    .hero-buttons {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
        margin-top: 24px;
    }

    .hero-buttons .button {
        width: 100%;
    }

    .hero-trust {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, auto));
        justify-content: start;
        gap: 10px 18px;
        margin-top: 20px;
        font-size: .7rem;
    }

    .hero-carousel-controls {
        gap: 10px;
    }

    .hero-arrows {
        display: none;
    }

    .hero-dots {
        max-width: calc(100vw - 90px);
        overflow: hidden;
    }

    .hero-dots button {
        width: clamp(20px, 7vw, 28px);
        flex: 0 1 28px;
    }

    .hero-pause {
        width: 38px;
        height: 38px;
        flex: 0 0 38px;
    }

    .advantage-band {
        margin-top: 0;
        padding-top: 12px;
        background: var(--cream-100);
    }

    .advantage-grid,
    .process-grid,
    .direction-grid,
    .team-cards,
    .stories-grid,
    .footer-grid,
    .content-card-grid,
    .people-grid,
    .news-grid,
    .news-list-grid,
    .team-placeholder-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .advantage-grid {
        padding: 6px;
        border-radius: 20px;
    }

    .advantage-card,
    .advantage-card:nth-child(2) {
        min-height: 0;
        grid-template-columns: 36px minmax(0,1fr);
        gap: 13px;
        padding: 17px 15px;
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .advantage-card:last-child {
        border-bottom: 0;
    }

    .advantage-number {
        width: 34px;
        height: 34px;
    }

    .section-process {
        padding-top: 66px;
    }

    .process-grid {
        gap: 12px;
    }

    .process-card {
        min-height: 0;
        padding: 20px;
        border-radius: 20px;
    }

    .process-icon {
        width: 54px;
        height: 54px;
        border-radius: 17px;
    }

    .process-icon svg {
        width: 31px;
        height: 31px;
    }

    .process-card h3 {
        margin: 30px 0 10px;
        font-size: 1.35rem;
    }

    .about-grid,
    .program-detail-grid,
    .team-grid,
    .faq-grid,
    .consultation-grid {
        gap: 34px;
    }

    .about-copy .lead {
        font-size: 1.04rem;
    }

    .about-visual {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
        padding-bottom: 0;
    }

    .about-main-photo {
        aspect-ratio: 4 / 3;
        border-radius: 22px;
    }

    .about-stat,
    .about-caption {
        position: static;
    }

    .about-stat {
        width: 100%;
        height: auto;
        min-height: 72px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        padding: 14px 18px;
        border: 0;
        border-radius: 18px;
    }

    .about-stat strong {
        font-size: 1.55rem;
    }

    .about-stat span {
        margin-top: 0;
    }

    .about-caption {
        right: auto;
        max-width: none;
        width: 100%;
        justify-content: center;
        border-radius: 16px;
        text-align: center;
    }

    .direction-grid {
        gap: 12px;
    }

    .direction-card {
        min-height: 0;
        padding: 22px;
    }

    .direction-icon {
        width: 52px;
        height: 52px;
        margin-bottom: 38px;
        border-radius: 16px;
    }

    .direction-card h3 {
        font-size: 1.42rem;
    }

    .program-panel,
    .relatives-card,
    .consultation-form-wrap,
    .contact-panel,
    .contact-address-card,
    .admin-auth-card,
    .admin-login-card {
        padding: 24px 20px;
        border-radius: 22px;
    }

    .program-list-item {
        min-height: 76px;
        grid-template-columns: 34px minmax(0,1fr) 34px;
        gap: 10px;
    }

    .program-list-item strong {
        font-size: .9rem;
    }

    .gallery-grid,
    .large-gallery {
        display: grid;
        grid-template-columns: minmax(0,1fr);
        grid-template-rows: none;
        gap: 12px;
    }

    .gallery-grid > figure,
    .gallery-grid > figure:first-child,
    .large-gallery > figure {
        grid-column: auto;
        grid-row: auto;
        min-height: 230px;
        aspect-ratio: 4 / 3;
    }

    .gallery-grid > figure:first-child {
        min-height: 280px;
    }

    .gallery-info {
        min-height: 190px;
        padding: 22px;
    }

    .gallery-info strong {
        font-size: 2.7rem;
    }

    .person-card > img,
    .person-placeholder {
        aspect-ratio: 4 / 3.5;
    }

    .person-card > div:last-child {
        padding: 20px;
    }

    .team-card,
    .story-card,
    .content-card-grid article,
    .team-placeholder-grid article {
        min-height: 0;
        padding: 22px;
    }

    .team-card h3,
    .content-card-grid h3,
    .team-placeholder-grid h3 {
        margin-top: 30px;
    }

    .story-card > p {
        margin: 28px 0 24px;
        font-size: 1.15rem;
    }

    .relatives-card {
        gap: 28px;
    }

    .relatives-steps div {
        min-height: 68px;
        grid-template-columns: 36px minmax(0,1fr);
        gap: 12px;
        padding: 14px;
    }

    .faq-item button {
        min-height: 72px;
        grid-template-columns: minmax(0,1fr) 34px;
        gap: 12px;
    }

    .faq-item button span {
        font-size: 1.08rem;
    }

    .faq-item.is-open .faq-answer > p {
        padding: 0 0 22px;
    }

    .consultation-section {
        padding: 64px 0;
    }

    .form-row {
        grid-template-columns: minmax(0,1fr);
        gap: 12px;
    }

    .consultation-form input,
    .consultation-form select,
    .admin-form input {
        min-height: 50px;
        font-size: 16px;
    }

    .footer-grid {
        gap: 30px;
    }

    .footer-brand img {
        width: 145px;
    }

    .footer-bottom {
        grid-template-columns: minmax(0,1fr);
        gap: 9px;
        margin-top: 36px;
    }

    .footer-bottom p:nth-child(2) {
        text-align: left;
    }

    /* Внутренние страницы */
    .inner-hero {
        min-height: 390px;
    }

    .inner-hero-content {
        padding-top: calc(126px + env(safe-area-inset-top, 0px));
        padding-bottom: 48px;
    }

    .inner-hero h1 {
        margin-bottom: 18px;
        font-size: clamp(2.35rem, 12vw, 3.75rem);
        line-height: 1;
    }

    .breadcrumbs {
        gap: 7px;
        font-size: .7rem;
    }

    .article-hero {
        padding: calc(126px + env(safe-area-inset-top, 0px)) 0 58px;
    }

    .article-hero .breadcrumbs {
        margin-bottom: 24px;
    }

    .article-hero h1 {
        font-size: clamp(2.2rem, 11vw, 3.45rem);
    }

    .article-content {
        padding: 48px 0 74px;
    }

    .article-cover {
        margin-bottom: 28px;
        border-radius: 20px;
    }

    .article-body {
        font-size: 1rem;
        line-height: 1.75;
    }

    .contact-phone-card {
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
    }

    .contact-phone-card strong {
        font-size: 1.08rem;
    }

    /* Админ-панель */
    .admin-content {
        padding: 24px 12px 52px;
    }

    .admin-topbar > div {
        min-width: 0;
        max-width: calc(100vw - 92px);
    }

    .admin-topbar strong,
    .admin-topbar span {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .admin-page-head {
        align-items: stretch;
        flex-direction: column;
        gap: 16px;
    }

    .admin-page-head h1 {
        font-size: clamp(2rem, 10vw, 2.75rem);
    }

    .admin-head-actions,
    .admin-form-actions {
        display: grid;
        grid-template-columns: minmax(0,1fr);
        width: 100%;
    }

    .admin-primary-button,
    .admin-secondary-button {
        width: 100%;
        min-height: 46px;
    }

    .admin-stat-grid {
        grid-template-columns: minmax(0,1fr);
        gap: 10px;
    }

    .admin-stat-grid a {
        padding: 18px;
    }

    .admin-stat-grid strong {
        font-size: 2.25rem;
    }

    .admin-panel {
        padding: 20px;
    }

    .admin-form-row,
    .admin-form-row.three {
        grid-template-columns: minmax(0,1fr);
        gap: 0;
    }

    .admin-field input,
    .admin-field select,
    .admin-field textarea,
    .admin-filter-bar input,
    .admin-filter-bar select,
    .admin-login-card input {
        font-size: 16px;
    }

    .admin-filter-bar {
        grid-template-columns: minmax(0,1fr);
        padding: 12px;
    }

    .admin-list-card {
        grid-template-columns: 70px minmax(0,1fr);
        gap: 12px;
        padding: 12px;
    }

    .admin-list-card > img,
    .admin-list-placeholder,
    .employee-list-card > img,
    .employee-list-card .admin-list-placeholder {
        width: 70px;
        height: 70px;
    }

    .admin-list-main {
        min-width: 0;
    }

    .admin-list-main h2 {
        font-size: 1.12rem;
    }

    .admin-list-actions {
        grid-column: 1 / -1;
        width: 100%;
        display: flex;
        justify-content: flex-start;
        flex-wrap: wrap;
        gap: 14px;
        padding-top: 10px;
        border-top: 1px solid #edf0f1;
    }

    .admin-gallery-grid {
        grid-template-columns: minmax(0,1fr);
    }

    .admin-table-wrap {
        overflow: visible;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
    }

    .admin-table {
        min-width: 0;
    }

    .admin-table thead {
        display: none;
    }

    .admin-table,
    .admin-table tbody,
    .admin-table tr,
    .admin-table td {
        display: block;
        width: 100%;
    }

    .admin-table tr {
        margin-bottom: 12px;
        padding: 12px;
        border: 1px solid #dbe1e3;
        border-radius: 16px;
        background: var(--white);
        box-shadow: 0 6px 18px rgba(15,41,58,.04);
    }

    .admin-table td {
        display: grid;
        grid-template-columns: 96px minmax(0,1fr);
        gap: 10px;
        padding: 7px 0;
        border: 0;
    }

    .admin-table td::before {
        content: attr(data-label);
        color: var(--muted);
        font-size: .64rem;
        font-weight: 850;
        line-height: 1.4;
        text-transform: uppercase;
    }

    .admin-table td[colspan] {
        display: block;
    }

    .admin-table td[colspan]::before {
        display: none;
    }

    .inline-form select {
        width: 100%;
        min-width: 0;
        font-size: 16px;
    }

    .client-summary dl {
        grid-template-columns: minmax(0,1fr);
    }

    .client-status-row,
    .timeline-meta,
    .timeline-card footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .timeline-card {
        padding: 16px;
    }

    .admin-login-screen {
        padding:
            calc(16px + env(safe-area-inset-top, 0px))
            12px
            calc(16px + env(safe-area-inset-bottom, 0px));
    }

    .admin-login-card {
        width: 100%;
    }

    .admin-login-card h1 {
        font-size: 2.35rem;
    }

    .admin-document-content {
        max-height: 64vh;
        padding: 14px;
        font-size: .74rem;
    }
}

@media (max-width: 420px) {
    .container {
        width: min(calc(100% - 20px), var(--container));
    }

    .hero h1,
    .hero-slide h1 {
        font-size: clamp(2.35rem, 12vw, 3.15rem);
    }

    .hero-trust {
        grid-template-columns: minmax(0,1fr);
        gap: 8px;
    }

    .hero-dots button {
        width: 20px;
    }

    .about-main-photo {
        aspect-ratio: 1 / 1;
    }

    .admin-table td {
        grid-template-columns: 82px minmax(0,1fr);
    }
}

@media (max-width: 760px) and (orientation: landscape),
       (max-height: 620px) and (max-width: 980px) {
    .hero-carousel,
    .hero,
    .hero-slide .hero-content,
    .hero-content {
        min-height: 620px;
    }

    .hero-slide .hero-content,
    .hero-content {
        padding-top: 96px;
        padding-bottom: 76px;
    }

    .hero h1,
    .hero-slide h1 {
        font-size: clamp(2.25rem, 7vw, 3.2rem);
    }

    .hero-trust {
        display: none;
    }
}

@media (max-width: 760px) {
    .gallery-grid > figure,
    .gallery-grid > figure:first-child,
    .large-gallery > figure {
        width: 100%;
        min-width: 0;
        min-height: 0;
        height: auto;
        aspect-ratio: 4 / 3;
    }

    .gallery-grid > figure:first-child {
        aspect-ratio: 1 / 1;
    }
}

/* =========================================================
   V3.0 — production access control and visual cleanup
   ========================================================= */

.advantage-card {
    align-items: flex-start;
}

.advantage-icon,
.process-icon,
.direction-icon,
.content-card-icon,
.relatives-steps span,
.relatives-checklist article > span,
.program-feature-list li > span {
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
}

.advantage-icon {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    color: var(--green-700);
    background: rgba(75, 139, 75, .11);
}

.advantage-icon svg,
.process-icon svg,
.direction-icon svg,
.content-card-icon svg,
.relatives-steps svg,
.relatives-checklist svg,
.program-feature-list svg {
    width: 26px;
    height: 26px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.process-top {
    min-height: 70px;
    justify-content: flex-start;
}

.process-icon {
    width: 64px;
    height: 64px;
    border-radius: 22px;
    color: var(--green-700);
    background: linear-gradient(145deg, rgba(73, 137, 72, .14), rgba(73, 137, 72, .06));
    box-shadow: inset 0 0 0 1px rgba(73, 137, 72, .11);
}

.process-card-2 .process-icon {
    color: #315e79;
    background: linear-gradient(145deg, rgba(49, 94, 121, .14), rgba(49, 94, 121, .06));
    box-shadow: inset 0 0 0 1px rgba(49, 94, 121, .11);
}

.process-card-3 .process-icon {
    color: #a96c2e;
    background: linear-gradient(145deg, rgba(169, 108, 46, .15), rgba(169, 108, 46, .06));
    box-shadow: inset 0 0 0 1px rgba(169, 108, 46, .12);
}

.process-card-4 .process-icon {
    color: #6b4d7f;
    background: linear-gradient(145deg, rgba(107, 77, 127, .14), rgba(107, 77, 127, .06));
    box-shadow: inset 0 0 0 1px rgba(107, 77, 127, .11);
}

.process-icon svg {
    width: 32px;
    height: 32px;
}

.direction-card {
    padding-top: 30px;
}

.direction-icon {
    width: 58px;
    height: 58px;
    margin-bottom: 34px;
    border-radius: 20px;
    color: var(--green-700);
    background: rgba(73, 137, 72, .11);
    font-size: 0;
}

.direction-icon svg {
    width: 30px;
    height: 30px;
}

.direction-dark .direction-icon {
    color: #fff;
    background: rgba(255, 255, 255, .13);
}

.direction-accent .direction-icon {
    color: #fff;
    background: rgba(255, 255, 255, .18);
}

.relatives-steps div {
    grid-template-columns: 46px 1fr;
}

.relatives-steps span {
    width: 42px;
    height: 42px;
    border-radius: 15px;
    color: #fff;
    background: rgba(255, 255, 255, .12);
}

.relatives-steps span svg {
    width: 22px;
    height: 22px;
}

.icon-card-grid article {
    min-height: 270px;
}

.content-card-icon {
    width: 58px;
    height: 58px;
    border-radius: 20px;
    color: var(--green-700) !important;
    background: rgba(73, 137, 72, .1);
}

.content-card-icon svg {
    width: 30px;
    height: 30px;
}

.icon-card-grid h3 {
    margin-top: 42px;
}

.relatives-checklist article {
    grid-template-columns: 52px 1fr;
    align-items: center;
}

.relatives-checklist article > span {
    width: 48px;
    height: 48px;
    border-radius: 17px;
    color: var(--green-700);
    background: rgba(73, 137, 72, .1);
}

.relatives-checklist article > span svg {
    width: 25px;
    height: 25px;
}

.program-feature-list {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.program-feature-list li {
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 14px;
    align-items: center;
    min-height: 68px;
    padding: 12px 16px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 255, 255, .86);
    box-shadow: var(--shadow-sm);
}

.program-feature-list li > span {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    color: var(--green-700);
    background: rgba(73, 137, 72, .1);
}

.program-feature-list li > span svg {
    width: 22px;
    height: 22px;
}

.program-feature-list strong {
    color: var(--navy-950);
    font-size: .94rem;
    line-height: 1.45;
}

.admin-account-brief {
    display: grid;
    gap: 3px;
    margin: 0 15px 14px;
    padding: 13px 14px;
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 13px;
    background: rgba(255, 255, 255, .045);
}

.admin-account-brief strong {
    overflow: hidden;
    color: #fff;
    font-size: .78rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-account-brief span {
    color: rgba(255, 255, 255, .55);
    font-size: .66rem;
}

.admin-nav .admin-super-link {
    margin-top: 8px;
    color: #f4d9a6;
    border: 1px solid rgba(244, 217, 166, .15);
    background: rgba(244, 217, 166, .06);
}

.admin-super-stat {
    border-color: rgba(190, 139, 61, .22) !important;
    background: linear-gradient(145deg, #fffaf0, #fff) !important;
}

.admin-super-stat strong {
    font-size: 1.3rem !important;
    letter-spacing: .08em;
}

.access-intro {
    margin-bottom: 18px;
    border-color: rgba(66, 133, 62, .18);
    background: linear-gradient(145deg, rgba(66, 133, 62, .08), #fff 62%);
}

.access-intro > div {
    display: flex;
    gap: 18px;
    align-items: flex-start;
}

.access-intro h2 {
    margin-bottom: 6px;
}

.access-intro p {
    margin: 0;
}

.access-shield {
    display: grid;
    place-items: center;
    width: 50px;
    height: 50px;
    flex: 0 0 auto;
    border-radius: 17px;
    color: #fff;
    background: var(--green-600);
    box-shadow: 0 12px 26px rgba(66, 133, 62, .2);
}

.admin-user-list {
    display: grid;
    gap: 14px;
}

.admin-user-card {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr) auto;
    gap: 17px;
    align-items: center;
    padding: 19px;
    border: 1px solid #dbe1e3;
    border-radius: 19px;
    background: #fff;
    box-shadow: 0 8px 25px rgba(15, 41, 58, .04);
}

.admin-user-card.is-super {
    border-color: rgba(190, 139, 61, .25);
    background: linear-gradient(135deg, #fffaf1, #fff 58%);
}

.admin-user-avatar {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    border-radius: 19px;
    color: #fff;
    background: linear-gradient(145deg, var(--navy-800), var(--green-600));
    font-family: Georgia, serif;
    font-size: 1.35rem;
}

.admin-user-main {
    min-width: 0;
}

.admin-user-main > a {
    display: inline-block;
    margin-bottom: 10px;
    color: var(--green-700);
    font-size: .8rem;
}

.admin-user-main > small {
    color: #8a969c;
    font-size: .68rem;
}

.admin-user-title {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 4px;
}

.admin-user-title h2 {
    margin: 0;
    color: var(--navy-950);
    font-family: Georgia, serif;
    font-size: 1.25rem;
    font-weight: 500;
}

.user-role-badge {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 4px 9px;
    border-radius: 999px;
    font-size: .64rem;
    font-weight: 850;
}

.role-super_admin {
    color: #7d5114;
    background: #fff0cc;
}

.role-admin {
    color: #214f70;
    background: #e7f2fa;
}

.role-manager {
    color: #3d6a3a;
    background: #eaf5e8;
}

.admin-user-permissions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 0 10px;
}

.admin-user-permissions span {
    padding: 5px 8px;
    border-radius: 8px;
    color: #53636b;
    background: #f2f5f5;
    font-size: .64rem;
    font-weight: 750;
}

.admin-user-permissions .crm-chip {
    color: #fff;
    background: var(--navy-800);
}

.admin-user-permissions .muted-chip {
    color: #8b979c;
    background: #f5f6f6;
}

.permissions-panel h2 {
    margin-bottom: 8px;
}

.permission-option {
    display: grid !important;
    grid-template-columns: 22px 1fr;
    gap: 10px;
    align-items: flex-start;
    margin: 10px 0 !important;
    padding: 13px;
    border: 1px solid #e0e5e7;
    border-radius: 13px;
    background: #fbfcfc;
    cursor: pointer;
}

.permission-option:hover {
    border-color: rgba(66, 133, 62, .4);
}

.permission-option input {
    width: 18px !important;
    height: 18px;
    margin: 2px 0 0;
    accent-color: var(--green-600);
}

.permission-option span,
.admin-checkbox-block span {
    display: grid;
    gap: 3px;
}

.permission-option strong,
.admin-checkbox-block strong {
    color: #263a45;
    font-size: .79rem;
}

.permission-option small,
.admin-checkbox-block small {
    color: #87949a;
    font-size: .67rem;
    line-height: 1.45;
}

.permission-crm {
    border-color: rgba(24, 62, 87, .18);
    background: rgba(24, 62, 87, .045);
}

.permission-crm strong::after {
    content: "Особый доступ";
    display: inline-flex;
    margin-left: 8px;
    padding: 2px 6px;
    border-radius: 999px;
    color: #fff;
    background: var(--navy-800);
    font-size: .54rem;
    vertical-align: middle;
}

.super-account-note,
.super-permission-state {
    margin: 16px 0;
    padding: 16px;
    border: 1px solid rgba(190, 139, 61, .22);
    border-radius: 14px;
    background: #fffaf0;
}

.super-account-note strong,
.super-permission-state strong {
    color: #74501e;
}

.super-account-note p,
.super-permission-state p {
    margin: 5px 0 0;
    color: #776a58;
    font-size: .76rem;
}

.super-permission-state > span {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    margin-bottom: 12px;
    border-radius: 13px;
    color: #fff;
    background: #b98234;
    font-weight: 900;
}

@media (max-width: 760px) {
    .advantage-icon {
        width: 44px;
        height: 44px;
        border-radius: 14px;
    }

    .process-top {
        min-height: 58px;
    }

    .process-icon {
        width: 54px;
        height: 54px;
        border-radius: 18px;
    }

    .process-icon svg {
        width: 28px;
        height: 28px;
    }

    .direction-icon {
        width: 52px;
        height: 52px;
        margin-bottom: 26px;
        border-radius: 17px;
    }

    .icon-card-grid article {
        min-height: auto;
    }

    .icon-card-grid h3 {
        margin-top: 26px;
    }

    .content-card-icon {
        width: 52px;
        height: 52px;
        border-radius: 17px;
    }

    .admin-user-card {
        grid-template-columns: 48px 1fr;
        gap: 12px;
        padding: 15px;
    }

    .admin-user-avatar {
        width: 48px;
        height: 48px;
        border-radius: 16px;
    }

    .admin-user-card .admin-list-actions {
        grid-column: 1 / -1;
        display: flex;
        justify-content: flex-start;
        padding-top: 12px;
        border-top: 1px solid #edf0f1;
    }

    .access-intro > div {
        gap: 12px;
    }

    .access-shield {
        width: 44px;
        height: 44px;
        border-radius: 14px;
    }

    .program-feature-list li {
        min-height: 62px;
    }
}

.process-card h3 {
    margin-top: 34px;
}

.direction-accent .direction-icon {
    color: var(--green-700);
    background: rgba(255, 255, 255, .68);
}

/* =========================================================
   V3.1.0 — три направления сайта, проекты и единая новостная лента
   ========================================================= */
.site-header {
    height: 126px;
}
.site-header.is-scrolled,
.inner-page .site-header,
.article-page .site-header {
    height: 106px;
}
.header-inner {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: clamp(14px, 1.6vw, 28px);
}
.header-center {
    min-width: 0;
    display: grid;
    justify-items: center;
    align-content: center;
    gap: 9px;
}
.site-switcher {
    align-items: stretch;
    gap: 8px;
}
.site-switcher--desktop {
    width: min(100%, 680px);
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.site-switcher--mobile {
    display: none;
}
.site-switcher a {
    min-height: 31px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px 10px;
    border: 1px solid rgba(255,255,255,.3);
    border-radius: 8px;
    color: rgba(255,255,255,.92);
    background: rgba(5,32,51,.32);
    font-size: clamp(.55rem, .62vw, .67rem);
    font-weight: 800;
    line-height: 1.16;
    text-align: center;
    text-wrap: balance;
    backdrop-filter: blur(12px);
    transition: background 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}
.site-switcher a:hover {
    transform: translateY(-1px);
    border-color: rgba(255,255,255,.6);
    background: rgba(255,255,255,.14);
}
.site-switcher a.is-active {
    border-color: #e2efc9;
    color: #17324a;
    background: #e2efc9;
    box-shadow: 0 7px 20px rgba(5,25,40,.18);
}
.site-header.is-scrolled .site-switcher a,
.inner-page .site-header .site-switcher a,
.article-page .site-header .site-switcher a {
    border-color: rgba(16,54,87,.16);
    color: var(--navy-900);
    background: rgba(247,248,243,.9);
}
.site-header.is-scrolled .site-switcher a.is-active,
.inner-page .site-header .site-switcher a.is-active,
.article-page .site-header .site-switcher a.is-active {
    border-color: var(--green-600);
    color: white;
    background: var(--green-600);
}
.header-center .main-nav {
    width: 100%;
    justify-content: center;
    gap: clamp(9px, .82vw, 16px);
    margin: 0;
}
.header-center .main-nav > a {
    font-size: clamp(.66rem, .72vw, .78rem);
}
.site-header .brand {
    transform: none;
}

.organization-hero {
    position: relative;
    min-height: min(850px, 92vh);
    display: flex;
    align-items: center;
    overflow: hidden;
    color: white;
    background: var(--navy-950);
}
.organization-hero-media,
.organization-hero-shade {
    position: absolute;
    inset: 0;
}
.organization-hero-media {
    background: url("../images/hero.webp") center 48% / cover no-repeat;
    transform: scale(1.03);
}
.organization-hero-shade {
    background:
        radial-gradient(circle at 85% 12%, rgba(255,190,56,.3), transparent 28%),
        linear-gradient(90deg, rgba(4,25,41,.92) 0%, rgba(4,25,41,.7) 48%, rgba(4,25,41,.38) 100%);
}
.organization-hero-content {
    position: relative;
    z-index: 2;
    max-width: 920px;
    padding-top: 155px;
    padding-bottom: 105px;
}
.organization-hero h1 {
    max-width: 900px;
    margin: 18px 0 24px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(3.5rem, 6.8vw, 7.4rem);
    font-weight: 500;
    line-height: .94;
    letter-spacing: -.055em;
}
.organization-hero-content > p:not(.eyebrow) {
    max-width: 720px;
    color: rgba(255,255,255,.76);
    font-size: clamp(1rem, 1.4vw, 1.25rem);
    line-height: 1.7;
}
.organization-intro-grid,
.organization-about-grid,
.organization-contacts-grid {
    display: grid;
    grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr);
    gap: clamp(40px, 7vw, 100px);
    align-items: start;
}
.organization-intro-grid h2,
.organization-about-grid h2,
.organization-requisites h2,
.organization-contact-band h2 {
    margin: 10px 0 0;
    color: var(--navy-950);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.4rem, 4.2vw, 4.7rem);
    font-weight: 500;
    line-height: 1.03;
    letter-spacing: -.04em;
}
.organization-intro-grid > div:last-child > p,
.organization-about-grid .lead {
    margin-top: 0;
    color: var(--muted);
    font-size: 1.08rem;
    line-height: 1.85;
}
.organization-project-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}
.organization-project-grid.full {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.organization-project-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 27px;
    background: white;
    box-shadow: var(--shadow-sm);
    transition: transform 220ms ease, box-shadow 220ms ease;
}
.organization-project-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}
.project-card-media {
    height: 220px;
    display: grid;
    place-items: center;
    overflow: hidden;
    background:
        radial-gradient(circle at 75% 22%, rgba(255,190,56,.28), transparent 25%),
        linear-gradient(145deg, #0a3557, #155b72 58%, #4e8c4b);
}
.project-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.project-card-media > span {
    color: white;
    font-family: Georgia, serif;
    font-size: 2.5rem;
}
.organization-project-card > div:last-child {
    padding: 25px;
}
.project-meta {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    margin-bottom: 14px;
}
.project-meta span,
.project-meta strong {
    font-size: .72rem;
    font-weight: 850;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.project-meta span { color: var(--green-700); }
.project-meta strong {
    padding: 6px 9px;
    border-radius: 999px;
    color: var(--navy-900);
    background: var(--cream-200);
}
.organization-project-card h2,
.organization-project-card h3 {
    margin: 0 0 13px;
    color: var(--navy-950);
    font-family: Georgia, serif;
    font-size: 1.42rem;
    font-weight: 500;
    line-height: 1.25;
}
.organization-project-card h2 { font-size: 1.65rem; }
.organization-project-card p {
    color: var(--muted);
    line-height: 1.65;
}
.organization-contact-band {
    padding: 76px 0;
    color: white;
    background: linear-gradient(135deg, #071f34, #0b3d5e);
}
.organization-contact-band > .container {
    display: flex;
    justify-content: space-between;
    gap: 50px;
    align-items: center;
}
.organization-contact-band h2 { color: white; font-size: clamp(2rem,3.5vw,4rem); }
.organization-contact-band p { color: rgba(255,255,255,.65); }
.organization-contact-band > .container > div:last-child {
    min-width: 290px;
    display: grid;
    gap: 11px;
    justify-items: start;
}
.organization-contact-band a:not(.button) { color: white; font-size: 1.1rem; font-weight: 750; }
.organization-facts,
.organization-requisites,
.organization-contact-card {
    padding: clamp(26px,4vw,48px);
    border: 1px solid var(--line);
    border-radius: 28px;
    background: white;
    box-shadow: var(--shadow-sm);
}
.organization-facts h3 { margin-top: 0; color: var(--navy-950); }
.organization-facts dl,
.organization-requisites dl {
    display: grid;
    gap: 0;
    margin: 0;
}
.organization-facts dl > div,
.organization-requisites dl > div {
    display: grid;
    grid-template-columns: minmax(140px,.45fr) minmax(0,1fr);
    gap: 22px;
    padding: 17px 0;
    border-bottom: 1px solid var(--line);
}
.organization-facts dl > div:last-child,
.organization-requisites dl > div:last-child { border-bottom: 0; }
.organization-facts dt,
.organization-requisites dt { color: var(--muted); font-size: .76rem; font-weight: 800; text-transform: uppercase; }
.organization-facts dd,
.organization-requisites dd { margin: 0; color: var(--navy-900); line-height: 1.55; }
.organization-contact-card {
    display: grid;
    gap: 15px;
    color: white;
    background: linear-gradient(145deg, #0a3557, #09283f);
}
.organization-contact-card p { margin: 0; color: rgba(255,255,255,.55); }
.organization-contact-card a { color: white; font-size: 1.35rem; font-weight: 800; }
.organization-contact-card address { color: rgba(255,255,255,.7); line-height: 1.65; }
.project-public-video,
.admin-video-preview {
    width: 100%;
    display: block;
    margin-top: 30px;
    border-radius: 20px;
    background: #041a2b;
}
.admin-video-preview { max-height: 300px; }
.admin-organization-stack { display: grid; gap: 28px; }
.admin-organization-form { scroll-margin-top: 90px; }
.admin-page-head.compact { margin-bottom: 22px; }
.admin-page-head.compact h2 { margin: 4px 0 0; color: var(--navy-950); font-family: Georgia,serif; font-size: 2rem; font-weight: 500; }
.admin-subheading { margin: 28px 0 16px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--navy-950); }
.admin-publication-sites { display: grid; gap: 10px; margin-bottom: 24px; padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: #f8faf7; }
.admin-publication-sites h3 { margin: 0 0 5px; color: var(--navy-950); font-size: 1rem; }
.publication-badges { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.publication-badges span,
.organization-badge { padding: 5px 8px; border-radius: 999px; color: #24582d; background: #e7f2df; font-size: .65rem; font-weight: 850; }
.status-badge.status-active { color: #24582d; background: #e7f2df; }
.status-badge.status-completed { color: #3d5566; background: #edf1f3; }
.project-admin-card .admin-list-main p { max-width: 760px; }

@media (max-width: 1420px) {
    .header-inner { gap: 13px; }
    .site-switcher--desktop { width: min(100%, 610px); }
    .site-switcher a { padding-inline: 7px; font-size: .56rem; }
    .header-center .main-nav { gap: 8px; }
    .header-center .main-nav > a { font-size: .66rem; }
    .header-actions .button { padding-inline: 14px; }
}
@media (max-width: 1180px) {
    .site-switcher--desktop { width: min(100%, 540px); }
    .site-switcher a { font-size: .52rem; }
    .organization-project-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 980px) {
    .site-header,
    .site-header.is-scrolled,
    .inner-page .site-header,
    .article-page .site-header { height: 82px; }
    .header-inner { display: flex; }
    .header-center { display: contents; }
    .site-switcher--desktop { display: none; }
    .site-switcher--mobile {
        width: 100%;
        display: grid;
        gap: 8px;
        margin-bottom: 22px;
        padding-bottom: 20px;
        border-bottom: 1px solid rgba(255,255,255,.12);
    }
    .site-switcher--mobile a,
    .site-header.is-scrolled .site-switcher--mobile a,
    .inner-page .site-header .site-switcher--mobile a,
    .article-page .site-header .site-switcher--mobile a {
        min-height: 43px;
        padding: 9px 12px;
        border-color: rgba(255,255,255,.16);
        color: white;
        background: rgba(255,255,255,.06);
        font-size: .78rem;
    }
    .site-switcher--mobile a.is-active,
    .site-header.is-scrolled .site-switcher--mobile a.is-active,
    .inner-page .site-header .site-switcher--mobile a.is-active,
    .article-page .site-header .site-switcher--mobile a.is-active {
        color: #17324a;
        background: #e2efc9;
        border-color: #e2efc9;
    }
    .main-nav { padding-top: calc(102px + env(safe-area-inset-top,0px)); }
    .organization-hero { min-height: max(720px,100svh); }
    .organization-hero-content { padding-top: 125px; padding-bottom: 80px; }
    .organization-hero h1 { font-size: clamp(3rem,11vw,5.7rem); }
    .organization-intro-grid,
    .organization-about-grid,
    .organization-contacts-grid { grid-template-columns: 1fr; gap: 34px; }
    .organization-contact-band > .container { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 720px) {
    .organization-project-grid,
    .organization-project-grid.full { grid-template-columns: 1fr; }
    .project-card-media { height: 190px; }
    .organization-hero h1 { font-size: clamp(2.7rem,13vw,4.6rem); }
    .organization-hero-content > p:not(.eyebrow) { font-size: .96rem; }
    .organization-facts dl > div,
    .organization-requisites dl > div { grid-template-columns: 1fr; gap: 6px; }
    .organization-contact-band > .container > div:last-child { min-width: 0; width: 100%; }
    .admin-page-head.compact { align-items: flex-start; }
}

/* =========================================================
   V3.1.1 — компактная типографика разделов АНО и страницы проектов
   ========================================================= */
.organization-page .organization-hero-content {
    max-width: 850px;
}

.organization-page .organization-hero h1 {
    max-width: 820px;
    font-size: clamp(3rem, 5.25vw, 5.9rem);
    line-height: .98;
    letter-spacing: -.045em;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: auto;
    text-wrap: balance;
}

.organization-page .inner-hero {
    min-height: 430px;
}

.organization-page .inner-hero-content {
    padding-top: 165px;
    padding-bottom: 62px;
}

.organization-page .inner-hero h1 {
    max-width: 880px;
    font-size: clamp(2.6rem, 4.65vw, 4.9rem);
    line-height: 1;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: auto;
    text-wrap: balance;
}

.organization-page .organization-intro-grid h2,
.organization-page .organization-about-grid h2,
.organization-page .organization-contact-band h2 {
    font-size: clamp(2.15rem, 3.45vw, 3.9rem);
    overflow-wrap: normal;
    word-break: normal;
    hyphens: auto;
}

.organization-contacts-grid {
    grid-template-columns: minmax(0, 1.18fr) minmax(360px, .82fr);
    gap: clamp(28px, 5vw, 74px);
}

.organization-requisites h2 {
    max-width: 780px;
    font-size: clamp(1.85rem, 2.9vw, 3rem);
    line-height: 1.08;
    letter-spacing: -.03em;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: auto;
    text-wrap: pretty;
}

.organization-contact-card {
    align-self: start;
    position: sticky;
    top: 132px;
}

.organization-article-hero {
    padding: 172px 0 76px;
    background:
        radial-gradient(circle at 88% 18%, rgba(255, 190, 56, .18), transparent 27%),
        linear-gradient(135deg, #071f34, #0b3d5e);
}

.organization-article-hero .breadcrumbs {
    margin-bottom: 28px;
}

.organization-article-hero h1 {
    max-width: 1080px;
    margin: 18px 0;
    font-size: clamp(2.45rem, 4.25vw, 4.75rem);
    line-height: 1.04;
    letter-spacing: -.04em;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: auto;
    text-wrap: balance;
}

.organization-article-hero > .container > p {
    max-width: 820px;
}

.organization-article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    align-items: center;
}

.organization-article-meta span,
.organization-article-meta strong {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 6px 11px;
    border-radius: 999px;
    font-size: .7rem;
    font-weight: 850;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.organization-article-meta span {
    color: #17324a;
    background: #e2efc9;
}

.organization-article-meta strong {
    color: white;
    background: rgba(255, 255, 255, .13);
    border: 1px solid rgba(255, 255, 255, .18);
}

.organization-article-content {
    padding-top: 64px;
}

.organization-article-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 350px);
    gap: clamp(34px, 5vw, 72px);
    align-items: start;
}

.organization-article-main {
    max-width: 900px;
    margin: 0;
}

.organization-article-main .article-cover,
.organization-news-article .article-cover {
    max-height: none;
    aspect-ratio: 16 / 9;
}

.organization-article-main .article-body,
.organization-news-article .article-body {
    color: #34434c;
    font-size: 1.04rem;
    line-height: 1.86;
    overflow-wrap: break-word;
    word-break: normal;
}

.organization-project-summary {
    position: sticky;
    top: 132px;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: white;
    box-shadow: var(--shadow-sm);
}

.organization-project-summary .eyebrow {
    margin-bottom: 16px;
}

.organization-project-summary dl {
    display: grid;
    gap: 0;
    margin: 0;
}

.organization-project-summary dl > div {
    display: grid;
    gap: 5px;
    padding: 15px 0;
    border-bottom: 1px solid var(--line);
}

.organization-project-summary dl > div:last-child {
    border-bottom: 0;
}

.organization-project-summary dt {
    color: var(--muted);
    font-size: .7rem;
    font-weight: 850;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.organization-project-summary dd {
    margin: 0;
    color: var(--navy-900);
    line-height: 1.58;
    overflow-wrap: break-word;
    word-break: normal;
}

.organization-article-action {
    margin: 28px 0 0;
}

.organization-article-back {
    display: inline-flex;
    margin-top: 34px;
}

.organization-news-article {
    max-width: 900px;
}

@media (max-width: 1180px) {
    .organization-page .organization-hero h1 {
        font-size: clamp(2.8rem, 6.3vw, 5rem);
    }

    .organization-contacts-grid {
        grid-template-columns: minmax(0, 1fr) minmax(310px, .72fr);
    }
}

@media (max-width: 980px) {
    .organization-page .organization-hero h1 {
        max-width: 720px;
        font-size: clamp(2.75rem, 9vw, 4.8rem);
    }

    .organization-page .inner-hero {
        min-height: 390px;
    }

    .organization-page .inner-hero-content {
        padding-top: 132px;
        padding-bottom: 50px;
    }

    .organization-page .inner-hero h1 {
        font-size: clamp(2.35rem, 8vw, 4rem);
    }

    .organization-contacts-grid,
    .organization-article-layout {
        grid-template-columns: 1fr;
    }

    .organization-contact-card,
    .organization-project-summary {
        position: static;
    }

    .organization-project-summary {
        order: -1;
    }

    .organization-article-hero {
        padding: 132px 0 62px;
    }
}

@media (max-width: 720px) {
    .organization-page .organization-hero {
        min-height: max(650px, 92svh);
    }

    .organization-page .organization-hero-content {
        padding-top: 112px;
        padding-bottom: 68px;
    }

    .organization-page .organization-hero h1 {
        font-size: clamp(2.45rem, 11.5vw, 3.75rem);
        line-height: 1.02;
        letter-spacing: -.038em;
        text-wrap: pretty;
    }

    .organization-page .inner-hero {
        min-height: 350px;
    }

    .organization-page .inner-hero-content {
        padding-top: calc(112px + env(safe-area-inset-top, 0px));
        padding-bottom: 42px;
    }

    .organization-page .inner-hero h1 {
        font-size: clamp(2.05rem, 10.5vw, 3.2rem);
        text-wrap: pretty;
    }

    .organization-page .organization-intro-grid h2,
    .organization-page .organization-about-grid h2,
    .organization-page .organization-contact-band h2 {
        font-size: clamp(1.9rem, 9vw, 2.8rem);
    }

    .organization-requisites,
    .organization-contact-card {
        padding: 24px 20px;
        border-radius: 22px;
    }

    .organization-requisites h2 {
        font-size: clamp(1.65rem, 8.2vw, 2.35rem);
        line-height: 1.12;
    }

    .organization-article-hero {
        padding: calc(112px + env(safe-area-inset-top, 0px)) 0 50px;
    }

    .organization-article-hero h1 {
        font-size: clamp(2rem, 9.8vw, 3.1rem);
        line-height: 1.08;
        text-wrap: pretty;
    }

    .organization-article-content {
        padding-top: 42px;
    }

    .organization-article-layout {
        gap: 28px;
    }

    .organization-project-summary {
        padding: 22px 20px;
        border-radius: 20px;
    }

    .organization-article-main .article-body,
    .organization-news-article .article-body {
        font-size: 1rem;
        line-height: 1.75;
    }
}

/* =========================================================
   V3.1.2 — единая типографика и управляемый Hero разделов АНО
   ========================================================= */
.site-shell :where(h1, h2, h3, h4) {
    overflow-wrap: normal;
    word-break: normal;
    hyphens: manual;
    text-wrap: balance;
}

.site-shell :where(p, li, dd, address) {
    overflow-wrap: break-word;
    word-break: normal;
    hyphens: auto;
    text-wrap: pretty;
}

.organization-hero-media,
.inner-hero-media {
    background: none;
    transform: none;
}

.organization-hero-media picture,
.organization-hero-media img,
.inner-hero-media picture,
.inner-hero-media img {
    width: 100%;
    height: 100%;
    display: block;
}

.organization-hero-media img,
.inner-hero-media img {
    object-fit: cover;
}

.inner-hero-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 86% 14%, rgba(255, 190, 56, .24), transparent 28%),
        linear-gradient(90deg, rgba(7, 28, 46, .93) 0%, rgba(7, 28, 46, .69) 54%, rgba(7, 28, 46, .3) 100%);
}

.organization-page .organization-hero-content,
.organization-page .inner-hero-content {
    margin-inline: 0 auto;
    text-align: left;
}

.organization-page .organization-hero-content .hero-buttons {
    justify-content: flex-start;
}

.organization-page .organization-hero h1,
.organization-page .inner-hero h1,
.organization-page .organization-intro-grid h2,
.organization-page .organization-about-grid h2,
.organization-page .organization-contact-band h2,
.organization-page .organization-requisites h2,
.organization-page .organization-project-card h2,
.organization-page .organization-project-card h3,
.organization-page .news-card h2,
.organization-page .news-card h3 {
    max-width: 100%;
    text-align: left;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: manual;
    text-wrap: balance;
}

.organization-page :where(
    .organization-hero-content > p:not(.eyebrow),
    .organization-intro-grid p,
    .organization-about-grid p,
    .organization-project-card p,
    .news-card p,
    .organization-contact-band p,
    .organization-facts dd,
    .organization-requisites dd,
    .organization-contact-card address,
    .article-body
) {
    text-align: left;
    overflow-wrap: break-word;
    word-break: normal;
    hyphens: auto;
    text-wrap: pretty;
}

.organization-intro-grid > div,
.organization-about-grid > *,
.organization-contacts-grid > *,
.split-heading > * {
    min-width: 0;
}

.organization-project-card,
.organization-page .news-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.organization-project-card > div:last-child,
.organization-page .news-card > div {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.organization-project-card .text-link,
.organization-page .news-card .text-link {
    margin-top: auto;
}

.organization-project-card p,
.organization-page .news-card p {
    margin-bottom: 22px;
}

.organization-page .section-heading,
.organization-page .split-heading {
    text-align: left;
}

.organization-page .breadcrumbs {
    justify-content: flex-start;
    text-align: left;
}

.organization-requisites h2 {
    max-width: 100%;
    font-size: clamp(1.75rem, 2.55vw, 2.7rem);
    line-height: 1.12;
}

.admin-organization-hero-editor {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(320px, .92fr);
    gap: 24px;
    margin: 28px 0;
    padding: clamp(20px, 3vw, 30px);
    border: 1px solid var(--line);
    border-radius: 22px;
    background: #f8faf7;
}

.admin-organization-hero-editor h3 {
    margin: 0 0 8px;
    color: var(--navy-950);
    font-size: 1.08rem;
}

.admin-organization-hero-copy,
.admin-organization-hero-media {
    min-width: 0;
}

.admin-organization-hero-preview {
    width: 100%;
    overflow: hidden;
    margin: 12px 0 16px;
    aspect-ratio: 16 / 9;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--navy-950);
}

.admin-organization-hero-preview.mobile {
    width: min(100%, 220px);
    aspect-ratio: 9 / 16;
}

.admin-organization-hero-preview img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

@media (max-width: 980px) {
    .admin-organization-hero-editor {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .site-shell :where(p, li, dd, address) {
        hyphens: manual;
    }

    .organization-page .organization-hero-content,
    .organization-page .inner-hero-content {
        width: min(calc(100% - 34px), var(--container));
    }

    .organization-page .organization-hero h1,
    .organization-page .inner-hero h1 {
        text-wrap: pretty;
    }

    .organization-page .organization-intro-grid h2,
    .organization-page .organization-about-grid h2,
    .organization-page .organization-contact-band h2,
    .organization-requisites h2 {
        line-height: 1.1;
        text-wrap: pretty;
    }

    .admin-organization-hero-editor {
        padding: 18px;
        border-radius: 18px;
    }
}

/* =========================================================
   V3.1.3 — мягкий отступ Hero и документы организаций
   ========================================================= */
.organization-page .organization-hero-content,
.organization-page .inner-hero-content,
.organization-page .organization-article-hero > .container {
    padding-inline-start: clamp(22px, 2.6vw, 42px);
    padding-inline-end: clamp(10px, 1.4vw, 22px);
}

.organization-documents {
    margin-top: clamp(54px, 7vw, 88px);
    padding-top: clamp(42px, 6vw, 70px);
    border-top: 1px solid var(--line);
}

.organization-documents-heading {
    max-width: 720px;
    margin-bottom: 30px;
}

.organization-documents-heading h2 {
    margin: 9px 0 0;
    color: var(--navy-950);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2rem, 3.5vw, 3.75rem);
    font-weight: 500;
    line-height: 1.06;
    letter-spacing: -.035em;
    text-wrap: balance;
}

.organization-documents-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.organization-document-card {
    min-width: 0;
    display: grid;
    grid-template-columns: 86px minmax(0, 1fr);
    gap: 22px;
    align-items: start;
    padding: clamp(22px, 3vw, 32px);
    border: 1px solid var(--line);
    border-radius: 24px;
    background: white;
    box-shadow: var(--shadow-sm);
}

.organization-document-icon {
    width: 86px;
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    border-radius: 20px;
    color: white;
    background:
        radial-gradient(circle at 72% 22%, rgba(255, 190, 56, .45), transparent 24%),
        linear-gradient(145deg, #0a3557, #155b72 58%, #4e8c4b);
}

.organization-document-icon span {
    font-size: .72rem;
    font-weight: 900;
    letter-spacing: .08em;
}

.organization-document-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    height: 100%;
}

.organization-document-copy h3 {
    margin: 0 0 10px;
    color: var(--navy-950);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.3rem, 2vw, 1.7rem);
    font-weight: 500;
    line-height: 1.18;
    text-wrap: pretty;
}

.organization-document-copy p {
    margin: 0 0 20px;
    color: var(--muted);
    line-height: 1.7;
}

.organization-document-copy .text-link {
    margin-top: auto;
}

.admin-organization-documents {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-top: 18px;
}

.admin-organization-document-slot {
    min-width: 0;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #f8faf7;
}

.admin-organization-document-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 18px;
}

.admin-organization-document-head span {
    display: block;
    color: var(--muted);
    font-size: .72rem;
    font-weight: 850;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.admin-organization-document-head h4 {
    margin: 4px 0 0;
    color: var(--navy-950);
    font-size: 1rem;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.admin-secondary-button.compact {
    min-height: 36px;
    flex: 0 0 auto;
    padding: 7px 12px;
    font-size: .76rem;
}

@media (max-width: 900px) {
    .organization-documents-grid,
    .admin-organization-documents {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .organization-page .organization-hero-content,
    .organization-page .inner-hero-content,
    .organization-page .organization-article-hero > .container {
        padding-inline-start: 13px;
        padding-inline-end: 7px;
    }

    .organization-document-card {
        grid-template-columns: 62px minmax(0, 1fr);
        gap: 16px;
        padding: 20px;
        border-radius: 20px;
    }

    .organization-document-icon {
        width: 62px;
        border-radius: 16px;
    }

    .organization-document-icon span {
        font-size: .62rem;
    }

    .organization-documents-heading h2 {
        font-size: clamp(1.85rem, 9vw, 2.7rem);
    }

    .admin-organization-document-slot {
        padding: 18px;
    }

    .admin-organization-document-head {
        display: grid;
    }
}

/* =========================================================
   V3.1.4 — документы напротив реквизитов
   ========================================================= */
.organization-contact-column {
    min-width: 0;
    display: grid;
    gap: clamp(22px, 2.7vw, 32px);
    align-content: start;
}

.organization-contact-column .organization-contact-card {
    position: static;
    top: auto;
}

.organization-documents-inline {
    margin: 0;
    padding: 0;
    border-top: 0;
}

.organization-documents-inline .organization-documents-heading {
    margin: 0 0 16px;
    padding-inline: 4px;
}

.organization-documents-inline .organization-documents-heading .eyebrow {
    margin-bottom: 5px;
}

.organization-documents-inline .organization-documents-heading h2 {
    margin-top: 0;
    font-size: clamp(1.55rem, 2.25vw, 2.15rem);
    line-height: 1.12;
}

.organization-documents-inline .organization-documents-grid {
    grid-template-columns: 1fr;
    gap: 16px;
}

.organization-documents-inline .organization-document-card {
    grid-template-columns: 68px minmax(0, 1fr);
    gap: 17px;
    padding: 20px;
    border-radius: 21px;
}

.organization-documents-inline .organization-document-icon {
    width: 68px;
    border-radius: 17px;
}

.organization-documents-inline .organization-document-copy h3 {
    font-size: clamp(1.18rem, 1.6vw, 1.42rem);
}

.organization-documents-inline .organization-document-copy p {
    margin-bottom: 16px;
    font-size: .94rem;
    line-height: 1.6;
}

@media (max-width: 980px) {
    .organization-contact-column {
        gap: 24px;
    }
}

@media (max-width: 720px) {
    .organization-documents-inline .organization-documents-heading {
        padding-inline: 0;
    }

    .organization-documents-inline .organization-documents-heading h2 {
        font-size: clamp(1.7rem, 8vw, 2.2rem);
    }

    .organization-documents-inline .organization-document-card {
        grid-template-columns: 58px minmax(0, 1fr);
        gap: 14px;
        padding: 18px;
    }

    .organization-documents-inline .organization-document-icon {
        width: 58px;
        border-radius: 15px;
    }
}

/* V3.1.5 — отдельный раздел «Обращения с сайта» */
.inquiry-filter {
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    margin:0 0 22px;
}

.inquiry-filter a {
    display:inline-flex;
    align-items:center;
    gap:10px;
    min-height:42px;
    padding:9px 14px;
    border:1px solid #d7e0e2;
    border-radius:999px;
    background:#fff;
    color:#31464f;
    font-size:.82rem;
    font-weight:800;
    text-decoration:none;
    transition:border-color .2s ease, background .2s ease, color .2s ease, transform .2s ease;
}

.inquiry-filter a:hover {
    transform:translateY(-1px);
    border-color:#8fb38c;
}

.inquiry-filter a strong {
    display:grid;
    place-items:center;
    min-width:25px;
    height:25px;
    padding:0 7px;
    border-radius:999px;
    background:#edf2f1;
    color:#5c6d72;
    font-size:.72rem;
}

.inquiry-filter a.is-active {
    border-color:var(--green-700);
    background:var(--green-700);
    color:#fff;
}

.inquiry-filter a.is-active strong {
    background:rgba(255,255,255,.18);
    color:#fff;
}

.site-inquiry-list {
    display:grid;
    gap:18px;
}

.site-inquiry-card {
    overflow:hidden;
    border:1px solid #dce4e5;
    border-radius:22px;
    background:#fff;
    box-shadow:0 14px 36px rgba(16,45,62,.06);
}

.site-inquiry-card.status-new {
    border-left:4px solid #e0a029;
}

.site-inquiry-card.status-in_progress {
    border-left:4px solid #4087bd;
}

.site-inquiry-card.status-closed {
    border-left:4px solid #78928a;
}

.site-inquiry-head {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:20px;
    padding:16px 20px;
    border-bottom:1px solid #e8eded;
    background:#fbfcfc;
}

.site-inquiry-head > div {
    display:flex;
    align-items:center;
    flex-wrap:wrap;
    gap:12px;
}

.site-inquiry-head time,
.site-inquiry-head small {
    color:#708087;
    font-size:.78rem;
    font-weight:700;
}

.site-inquiry-grid {
    display:grid;
    grid-template-columns:minmax(230px,.72fr) minmax(0,1.28fr);
    gap:0;
}

.site-inquiry-person,
.site-inquiry-message {
    min-width:0;
    padding:22px 24px;
}

.site-inquiry-person {
    border-right:1px solid #e8eded;
}

.site-inquiry-label {
    margin:0 0 8px;
    color:#78868b;
    font-size:.67rem;
    font-weight:900;
    letter-spacing:.08em;
    text-transform:uppercase;
}

.site-inquiry-person h2 {
    margin:0 0 8px;
    color:var(--navy-950);
    font-family:Georgia,serif;
    font-size:clamp(1.35rem,2vw,1.8rem);
    font-weight:500;
    line-height:1.15;
}

.site-inquiry-phone {
    display:inline-block;
    color:var(--green-700);
    font-size:1.05rem;
    font-weight:850;
    text-decoration:none;
}

.site-inquiry-contact {
    display:block;
    margin-top:7px;
    color:#66777d;
    font-size:.8rem;
}

.site-inquiry-message > div {
    color:#344b55;
    font-size:.94rem;
    line-height:1.65;
    overflow-wrap:anywhere;
}

.site-inquiry-empty {
    color:#8b999d;
    font-style:italic;
}

.site-inquiry-form {
    display:grid;
    grid-template-columns:minmax(170px,220px) minmax(0,1fr) auto;
    gap:16px;
    align-items:end;
    padding:20px 24px 22px;
    border-top:1px solid #e8eded;
    background:#f7f9f9;
}

.site-inquiry-form .admin-field {
    margin:0;
}

.site-inquiry-form .admin-primary-button {
    min-height:46px;
    white-space:nowrap;
}

.inquiry-comment-field textarea {
    min-height:82px;
}

.admin-user-permissions .inquiry-chip {
    border-color:#a7c9a4;
    background:#eef7ed;
    color:#39723a;
}

@media (max-width: 920px) {
    .site-inquiry-grid {
        grid-template-columns:1fr;
    }

    .site-inquiry-person {
        border-right:0;
        border-bottom:1px solid #e8eded;
    }

    .site-inquiry-form {
        grid-template-columns:1fr;
        align-items:stretch;
    }

    .site-inquiry-form .admin-primary-button {
        justify-self:start;
    }
}

@media (max-width: 560px) {
    .inquiry-filter {
        display:grid;
        grid-template-columns:repeat(2,minmax(0,1fr));
    }

    .inquiry-filter a {
        justify-content:space-between;
        border-radius:14px;
    }

    .site-inquiry-card {
        border-radius:17px;
    }

    .site-inquiry-head {
        align-items:flex-start;
        flex-direction:column;
        gap:8px;
        padding:14px 16px;
    }

    .site-inquiry-person,
    .site-inquiry-message,
    .site-inquiry-form {
        padding-left:16px;
        padding-right:16px;
    }

    .site-inquiry-form .admin-primary-button {
        width:100%;
        justify-content:center;
    }
}

.site-inquiry-card .status-badge.status-new {
    background:#fff2d8;
    color:#8b5a06;
}

.site-inquiry-card .status-badge.status-in_progress {
    background:#e5f1fb;
    color:#245f8d;
}

.site-inquiry-card .status-badge.status-closed {
    background:#eaf0ed;
    color:#49655c;
}
