/* ============================================
   Design System
   ============================================ */
:root {
    --bg: #f2f3f1;
    --bg-deep: #141816;
    --card: #ffffff;
    --card-soft: #e8ebe8;
    --ink: #17191b;
    --ink-soft: #3e4440;
    --accent: #8f6bff;
    --accent-dark: #5c4bff;
    --accent-soft: rgba(143, 107, 255, 0.14);
    --muted: #5a625c;
    --stroke: rgba(23, 25, 27, 0.14);
    --radius: 14px;
    --font-sans: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-serif: "Cormorant Garamond", Georgia, serif;
    --transition: 220ms cubic-bezier(0.22, 1, 0.36, 1);
    --section-padding: clamp(4.5rem, 8vw, 7rem);
    --section-gap: clamp(2.5rem, 6vw, 5rem);
    --focus: #5c4bff;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    font-family: var(--font-sans);
    background: var(--bg);
    color: var(--ink);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    padding-top: 90px;
}

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

ul,
ol {
    list-style: none;
    padding: 0;
    margin: 0;
}

figure { margin: 0; }

button {
    font: inherit;
    border: none;
    background: none;
    cursor: pointer;
}

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

/* ============================================
   Typography & Utilities
   ============================================ */
main p {
    font-size: 1.05rem;
    color: var(--ink-soft);
    margin-bottom: 1.5rem;
}

.eyebrow,
.hero-kicker {
    font-size: 0.92rem;
    color: var(--muted);
    margin-bottom: 0.85rem;
    letter-spacing: 0.02em;
    text-transform: none;
    font-weight: 500;
}

/* lede moved */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    padding: 0.95rem 1.75rem;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 600;
    transition: var(--transition);
}

.btn.primary {
    background: var(--ink);
    color: #fff;
}

.btn.primary:hover {
    background: var(--accent);
}

.btn.ghost {
    border-color: var(--stroke);
    color: var(--ink);
}

.btn.ghost:hover {
    border-color: var(--ink);
}

.page-shell {
    position: relative;
    overflow: hidden;
}

.grain {
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Crect width='160' height='160' fill='%23f2f3f1'/%3E%3Cg fill='%23c5cac4' fill-opacity='0.2'%3E%3Ccircle cx='10' cy='10' r='1'/%3E%3Ccircle cx='80' cy='40' r='1'/%3E%3Ccircle cx='130' cy='90' r='1'/%3E%3Ccircle cx='30' cy='120' r='1'/%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.8;
    pointer-events: none;
}

.shell {
    width: min(1200px, 90vw);
    margin: 0 auto;
    padding: 0 1rem;
    position: relative;
    z-index: 2;
}

/* ============================================
   Header / Nav
   ============================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    background: rgba(242, 243, 241, 0.94);
    border-bottom: 1px solid var(--stroke);
    box-shadow: 0 4px 20px rgba(12, 10, 8, 0.06);
    transition: all var(--transition);
}

.site-header.scrolled {
    box-shadow: 0 4px 30px rgba(12, 10, 8, 0.1);
}

.site-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 0;
}

.brand {
    display: flex;
    gap: 1rem;
    align-items: center;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.75rem;
    font-weight: 600;
}

.brand-mark {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--stroke);
}

.brand picture {
    display: contents;
}


.hero-copy h1 {
    font-family: var(--font-serif);
    font-size: clamp(2.6rem, 5.5vw, 4.25rem);
    font-weight: 600;
    line-height: 1.08;
    letter-spacing: -0.02em;
    text-wrap: balance;
    max-width: 14ch;
    margin-bottom: 1rem;
}

.lede {
    font-size: 1.12rem;
    color: var(--ink-soft);
    margin: 0 0 1.75rem;
    max-width: 38rem;
    text-wrap: pretty;
}

.section-head h2 {
    font-family: var(--font-serif);
    font-size: clamp(2.1rem, 4vw, 3rem);
    line-height: 1.15;
    text-wrap: balance;
    letter-spacing: -0.015em;
}

.hero-disclaimer {
    margin: 0.85rem 0 0;
    max-width: 36rem;
    font-size: 0.78rem;
    line-height: 1.45;
    color: var(--ink-soft);
}

.brand-text small {
    display: block;
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    color: var(--muted);
}

.nav-panel {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-panel ul {
    display: flex;
    gap: 1.5rem;
    font-size: 0.95rem;
}

.nav-phone {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.4rem;
    background: var(--accent);
    color: #fff;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: var(--transition);
    white-space: nowrap;
}

.nav-phone svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.nav-phone:hover {
    background: var(--accent-dark);
    transform: translateY(-1px);
}

.nav-panel a {
    position: relative;
    padding-bottom: 0.3rem;
}

.nav-panel a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 1px;
    background: var(--ink);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition);
}

.nav-panel a:hover::after,
.nav-panel a:focus-visible::after {
    transform: scaleX(1);
}

.link-accent { color: var(--accent); }

.nav-panel__footer { display: none; }

.nav-toggle {
    display: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid var(--stroke);
    background: #fff;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 6px;
}

.nav-toggle span {
    width: 22px;
    height: 2px;
    background: var(--ink);
    transition: var(--transition);
}

/* ============================================
   Hero
   ============================================ */
.hero {
    padding: 6rem 0 4rem;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 450px;
    align-items: center;
    gap: clamp(3rem, 6vw, 5rem);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.hero-specialties {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    margin: 1.75rem 0 2rem;
}

.hero-specialties span {
    display: flex;
    align-items: center;
    min-height: 62px;
    padding: 0.9rem 1rem;
    border-radius: 14px;
    background: linear-gradient(135deg, #eef0ee 0%, #e4e8e5 100%);
    border: 1px solid rgba(31, 32, 35, 0.12);
    font-size: 0.98rem;
    line-height: 1.35;
    color: var(--ink);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.hero-specialties span::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 0.8rem;
    flex-shrink: 0;
    background: var(--accent);
}

.hero-specialties span:nth-child(5) {
    grid-column: 1 / -1;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.hero-stats div {
    padding: 1.5rem 0;
    border-top: 2px solid var(--stroke);
}

.hero-stats dt {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--accent);
}

.hero-stats dd {
    color: var(--ink-soft);
    font-size: 0.9rem;
    line-height: 1.4;
}

.hero-portrait {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--card);
    padding: 1.5rem;
    box-shadow: 0 12px 32px rgba(20, 24, 22, 0.1);
}

.hero-portrait img {
    border-radius: calc(var(--radius) - 8px);
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
}

.hero-portrait picture {
    display: block;
}

.hero-card {
    margin-top: 1.5rem;
    padding: 1.1rem 1.25rem;
    border-radius: 14px;
    background: linear-gradient(135deg, #eef0ee 0%, #e4e8e5 100%);
    border: 1px solid rgba(31, 32, 35, 0.08);
    font-size: 0.92rem;
    line-height: 1.55;
    font-style: italic;
    color: var(--ink);
}

.hero-card p { margin: 0; }

/* ============================================
   Sections
   ============================================ */
section {
    padding: var(--section-padding) 0;
}

main section + section {
    margin-top: var(--section-gap);
}

.section-head {
    max-width: 760px;
    margin-bottom: 3.5rem;
}

/* section h2 moved */

.section-head p {
    max-width: 520px;
}

.signature-grid,
.service-cards,
.story-grid,
.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2.5rem;
}

.signature-grid article,
.approach-grid article,
.service-cards article,
.contact-grid article {
    background: var(--card);
    border-radius: var(--radius);
    padding: 2rem;
    border: 1px solid var(--stroke);
    box-shadow: 0 8px 24px rgba(20, 24, 22, 0.05);
    transition: all var(--transition);
}

.service-cards article {
    cursor: pointer;
}

.service-cards article:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(15, 14, 12, 0.12);
    border-color: var(--accent);
}

.signature-grid ul,
.services ul,
.contact-grid ul {
    display: grid;
    gap: 0.6rem;
}

.signature-grid li,
.services li,
.contact-grid li {
    padding-left: 1.5rem;
    position: relative;
    color: var(--ink);
}

.signature-grid li::before,
.services li::before,
.contact-grid li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.8rem;
    width: 8px;
    height: 2px;
    background: var(--accent);
}

.approach-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.approach-grid span {
    font-size: 0.8rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--muted);
}

.approach-grid article {
    background: #111317;
    color: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all var(--transition);
    cursor: pointer;
}

.approach-grid article:hover {
    background: var(--accent);
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(143, 107, 255, 0.28);
}

.approach-grid article:hover h3,
.approach-grid article:hover p {
    color: #fff;
}

.approach-grid article span { color: rgba(255, 255, 255, 0.5); }

.approach-grid article:hover span {
    color: rgba(255, 255, 255, 0.8);
}

.service-cards {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.service-cards article header p {
    font-size: 0.88rem;
    letter-spacing: 0.01em;
    color: var(--muted);
    font-weight: 500;
}

.service-cards article .price {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 1.5rem 0;
}

.service-cards article ul {
    margin: 1.25rem 0 0;
}

.service-cards article.featured {
    background: var(--ink);
    color: #fff;
}

.service-cards article.featured p,
.service-cards article.featured li {
    color: rgba(255, 255, 255, 0.75);
}

.service-cards article.featured .btn {
    background: #fff;
    color: var(--ink);
}

.note {
    margin-top: 2.5rem;
    padding: 1.25rem 2rem;
    border-radius: 999px;
    background: #e8ebe8;
    color: var(--ink);
    font-size: 0.9rem;
    text-align: center;
    line-height: 1.5;
}

.note p {
    margin: 0;
}

/* Stories */
.stories {
    background: linear-gradient(180deg, #1a1c21 0%, #0b0d11 100%);
    color: #fff;
}

.stories .section-head {
    margin-bottom: 3rem;
}

.stories .section-head p,
.stories .section-head h2 {
    color: #fff;
}

.stories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
}

.story-card {
    position: relative;
    padding: 2.5rem 2rem;
    background: rgba(12, 14, 18, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 14px;
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.2);
    /* reduced glass */
}

.story-card:hover {
    background: rgba(17, 20, 26, 0.92);
    border-color: rgba(143, 107, 255, 0.45);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(143, 107, 255, 0.18);
}

.story-number {
    position: absolute;
    top: 2rem;
    right: 2rem;
    font-size: 3rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.12);
    line-height: 1;
    font-family: var(--font-serif);
}

.story-card h3 {
    font-size: 1.35rem;
    font-weight: 600;
    color: #fff;
    margin: 0;
    line-height: 1.3;
}

.story-card blockquote {
    font-size: 1.05rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.96);
    font-style: italic;
    margin: 0;
    flex-grow: 1;
    text-wrap: pretty;
}

.story-card footer {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.78);
    font-weight: 500;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    padding-top: 1rem;
    margin-top: auto;
}

.stories-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    padding: 3rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-align: center;
}

.stat-item strong {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
}

.stat-item span {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 200px;
}

/* Diplomas */
.diplomas {
    background:
        radial-gradient(circle at top left, rgba(143, 107, 255, 0.08), transparent 32%),
        linear-gradient(180deg, #f6f7f5 0%, #eef0ee 100%);
}

.diploma-header {
    margin-bottom: 1.75rem;
}

.diploma-header__head {
    margin-bottom: 0;
}

.diploma-header__head h2 {
    max-width: 15ch;
    font-size: clamp(3rem, 5vw, 4.6rem);
    line-height: 0.98;
}

.diploma-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    align-items: start;
}

.diploma-meta {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
    padding: 1.8rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(31, 32, 35, 0.08);
    box-shadow: 0 8px 24px rgba(20, 24, 22, 0.06);
    /* reduced glass */
}

.diploma-meta__title {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--ink);
}

.diploma-list {
    display: grid;
    gap: 0.85rem;
}

.diploma-list li {
    padding-left: 1.4rem;
    position: relative;
    color: var(--ink);
    font-size: 0.95rem;
}

.diploma-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.8rem;
    width: 10px;
    height: 2px;
    background: var(--accent);
}

.diploma-note {
    font-size: 0.9rem;
    color: var(--ink-soft);
    margin: 0;
    line-height: 1.7;
}

.diploma-carousel__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.diploma-carousel__caption {
    margin: 0;
    font-size: 0.9rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
}

.diploma-controls {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.diploma-nav {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 1px solid var(--stroke);
    background: var(--card);
    color: var(--ink);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    transition: transform var(--transition), background var(--transition), color var(--transition), border-color var(--transition), opacity var(--transition);
}

.diploma-nav:hover,
.diploma-nav:focus-visible {
    background: var(--ink);
    color: #fff;
    border-color: var(--ink);
    transform: translateY(-2px);
}

.diploma-nav:disabled {
    opacity: 0.4;
    cursor: default;
    transform: none;
    background: var(--card);
    color: var(--ink);
    border-color: var(--stroke);
}

.diploma-carousel {
    min-width: 0;
    position: relative;
    padding: 1.25rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(31, 32, 35, 0.08);
    box-shadow: 0 24px 50px rgba(28, 31, 36, 0.08);
    backdrop-filter: blur(10px);
    width: 100%;
}

.diploma-strip {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    padding: 0.25rem 0 0.35rem;
    height: var(--diploma-strip-height, auto);
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    transition: height var(--transition);
}

.diploma-slide {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: clamp(250px, 24vw, 320px);
    height: 450px;
    padding: 0.75rem;
    border-radius: 12px;
    border: 1px solid var(--stroke);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    background: #fff;
    transition: transform var(--transition), box-shadow var(--transition);
    scroll-snap-align: start;
}

.diploma-slide:hover,
.diploma-slide:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.diploma-slide.is-landscape {
    width: clamp(360px, 38vw, 520px);
    height: 320px;
}

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

.diploma-slide.is-square {
    width: clamp(300px, 30vw, 380px);
    height: 380px;
}

/* Old custom modal styles removed — using native <dialog> */


.diploma-strip::-webkit-scrollbar { display: none; }

.diploma-strip::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.15);
    border-radius: 999px;
}

.diploma-strip::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.25);
}

.diploma-strip img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
    background: #fff;
}

/* Contact */
.contact-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.25rem;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-radius: 16px;
    background: var(--card);
    border: 1px solid var(--stroke);
    transition: all var(--transition);
    text-decoration: none;
}

.contact-card:hover,
.contact-card:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    border-color: var(--accent);
}

.contact-card__icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: var(--card-soft);
    color: var(--ink);
}

.contact-card:hover .contact-card__icon,
.contact-card:focus-visible .contact-card__icon {
    background: var(--accent);
    color: #fff;
}

.contact-card__icon svg {
    width: 24px;
    height: 24px;
}

.contact-card__icon--b17 {
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.contact-card__icon--b17 span {
    line-height: 1;
}

.contact-card--b17:hover .contact-card__icon--b17,
.contact-card--b17:focus-visible .contact-card__icon--b17 {
    background: var(--accent);
    color: #fff;
}

.contact-card__text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.contact-card__text small {
    font-size: 0.8rem;
    color: var(--ink-soft);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.contact-card__text strong {
    font-size: 1.1rem;
    color: var(--ink);
    font-weight: 600;
}

/* Policy */
.policy-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--ink);
}

.policy-content h3 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    margin: 2.5rem 0 1rem;
    color: var(--ink);
}

.policy-content p {
    margin-bottom: 1rem;
    color: var(--ink-soft);
}

.policy-content ul {
    margin: 1rem 0 1.5rem;
    padding-left: 1.5rem;
    list-style: disc;
    color: var(--ink-soft);
}

.policy-content li {
    margin-bottom: 0.5rem;
}

/* ============================================
   Footer
   ============================================ */
.site-footer {
    background: #111217;
    color: rgba(255, 255, 255, 0.8);
    padding: 2.5rem 0;
}

.site-footer .shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-links {
    display: flex;
    gap: 1rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 960px) {
    .hero-grid,
    .signature-grid {
        grid-template-columns: 1fr;
    }

    .hero-portrait {
        order: -1;
    }

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

    .diploma-header {
        margin-bottom: 1.75rem;
    }

    .diploma-header__head h2 {
        max-width: 100%;
        font-size: clamp(2.35rem, 6vw, 3.2rem);
    }

    .diploma-meta {
        position: static;
        padding: 1.5rem;
        max-width: 100%;
    }

    .diploma-layout {
        gap: 1.5rem;
    }

    .diploma-strip {
        grid-auto-columns: max-content;
    }

    .diploma-slide {
        width: clamp(220px, 34vw, 280px);
        height: 400px;
    }

    .diploma-slide.is-landscape {
        width: clamp(300px, 52vw, 420px);
        height: 280px;
    }

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

.diploma-slide.is-square {
        width: clamp(250px, 40vw, 320px);
        height: 320px;
    }
}

@media (max-width: 768px) {
    .site-nav {
        position: relative;
    }

    .nav-phone {
        position: static;
        transform: none;
        font-size: 0.8rem;
        padding: 0.5rem 1rem;
        display: inline-flex;
        align-items: center;
        margin-left: auto;
        margin-right: 0;
    }

    .nav-phone svg {
        width: 18px;
        height: 18px;
        stroke: #fff;
        flex-shrink: 0;
    }

    .nav-phone span {
        display: none;
    }

    .brand-text {
        display: flex;
        flex-direction: column;
    }

    .brand-text strong {
        display: block;
    }

    .brand-text small {
        display: none;
    }

    .diploma-controls {
        margin-top: 0;
    }

    .diploma-header__head h2 {
        max-width: 100%;
        font-size: clamp(2.4rem, 8vw, 3.2rem);
    }

    .diploma-carousel__head {
        align-items: center;
        flex-direction: row;
    }

    .diploma-nav {
        width: 48px;
        height: 48px;
    }

    .diploma-strip {
        grid-auto-columns: max-content;
    }

    .diploma-slide {
        width: min(78vw, 300px);
        height: 360px;
        padding: 0.6rem;
    }

    .diploma-slide.is-landscape {
        width: min(86vw, 420px);
        height: 250px;
    }

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

.diploma-slide.is-square {
        width: min(80vw, 320px);
        height: 320px;
    }

    .diploma-modal {
        padding: 0.75rem;
    }

    .diploma-modal__dialog {
        width: 100%;
        min-height: auto;
        grid-template-columns: 52px minmax(0, 1fr) 52px;
        grid-template-rows: auto minmax(0, 1fr) auto;
        gap: 0.75rem;
        padding-top: 0.5rem;
    }

    .diploma-modal__close {
        top: 0.25rem;
        right: 0.25rem;
        width: 44px;
        height: 44px;
    }

    .diploma-modal__stage {
        grid-column: 1 / -1;
        grid-row: 2;
        min-height: calc(100vh - 13rem);
        padding: 0 0.5rem;
    }

    .diploma-modal__nav--prev {
        grid-column: 1;
        grid-row: 2;
        align-self: center;
        z-index: 2;
    }

    .diploma-modal__nav--next {
        grid-column: 3;
        grid-row: 2;
        align-self: center;
        z-index: 2;
    }

    .diploma-modal__image {
        max-height: calc(100vh - 13rem);
    }

    .diploma-modal__dots {
        gap: 0.55rem;
        padding-bottom: 0.5rem;
    }

    .diploma-carousel,
    .diploma-meta {
        padding: 1rem;
        border-radius: 24px;
    }

    .brand {
        margin-right: auto;
    }

    .nav-panel ul {
        flex-direction: column;
        gap: 0.75rem;
        font-size: 1.1rem;
        align-items: flex-start;
    }

    .nav-panel ul li {
        width: 100%;
    }

    .nav-panel ul a {
        display: block;
        padding: 0.5rem 0;
    }

    .nav-panel__footer {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
        margin-top: 2.5rem;
        padding-top: 2rem;
        border-top: 1px solid rgba(0, 0, 0, 0.1);
    }

    .nav-panel__footer a {
        font-size: 1rem;
        font-weight: 500;
    }

    .nav-toggle {
        display: inline-flex;
        order: 3;
    }

    .nav-panel {
        display: none;
        position: fixed;
        inset: 72px 0 0;
        z-index: 90;
        flex-direction: column;
        justify-content: flex-start;
        gap: 0;
        padding: 1.5rem 1.25rem 2rem;
        background: rgba(242, 243, 241, 0.98);
        border-top: 1px solid var(--stroke);
        overflow-y: auto;
    }

    .nav-panel.open {
        display: flex;
    }

    .nav-toggle[aria-expanded="true"] span:first-child {
        transform: translateY(4px) rotate(45deg);
    }

    .nav-toggle[aria-expanded="true"] span:last-child {
        transform: translateY(-4px) rotate(-45deg);
    }

    .trust-stats,
    .service-cards {
        grid-template-columns: 1fr;
    }

    .stories-grid {
        grid-template-columns: repeat(3, 85vw);
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-padding: 0;
        gap: 1rem;
        padding-bottom: 1rem;
        -webkit-overflow-scrolling: touch;
    }

    .story-card {
        scroll-snap-align: center;
        min-width: 0;
    }

    .section-head { margin-bottom: 2rem; }

    .stories-metrics {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    .note {
        padding: 1rem 1.25rem;
        font-size: 0.85rem;
        line-height: 1.6;
    }
}

@media (max-width: 520px) {
    .btn { width: 100%; }

    .hero { padding-top: 4rem; }

    .diploma-header {
        gap: 1rem;
    }

    .diploma-carousel__head {
        align-items: flex-start;
        flex-direction: column;
    }

    .diploma-controls {
        width: 100%;
        justify-content: space-between;
    }

    .diploma-modal__dialog {
        grid-template-columns: 44px minmax(0, 1fr) 44px;
    }

    .diploma-modal__nav {
        width: 44px;
        height: 44px;
        font-size: 1.9rem;
    }

    .diploma-modal__stage {
        min-height: calc(100vh - 12.5rem);
        padding: 0 0.25rem;
    }

    .diploma-modal__image {
        max-height: calc(100vh - 12.5rem);
    }
}

/* Accessibility */
a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 4px;
}

.section-lead {
    margin: 0.75rem 0 0;
    max-width: 42rem;
    color: var(--ink-soft);
    font-size: 1.02rem;
    line-height: 1.55;
}

.process {
    padding: clamp(3.5rem, 8vw, 5.5rem) 0;
}

.faq {
    padding: clamp(3.5rem, 8vw, 5.5rem) 0;
    background: linear-gradient(180deg, transparent 0%, rgba(232, 235, 232, 0.7) 40%, transparent 100%);
}

.faq-list {
    display: grid;
    gap: 0.85rem;
    max-width: 48rem;
}

.faq-item {
    border: 1px solid var(--stroke);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.92);
    padding: 0.35rem 1.1rem 0.35rem;
}

.faq-item summary {
    cursor: pointer;
    list-style: none;
    font-weight: 600;
    font-size: 1.05rem;
    padding: 0.95rem 0;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: "+";
    float: right;
    color: var(--muted);
    font-weight: 500;
}

.faq-item[open] summary::after {
    content: "–";
}

.faq-item p {
    margin: 0 0 1rem;
    color: var(--ink-soft);
    line-height: 1.6;
}


/* ============================================
   Skip link, trust strip, process steps, dialog
   ============================================ */
.skip-link {
    position: absolute;
    left: 1rem;
    top: -100px;
    z-index: 1000;
    padding: 0.75rem 1rem;
    background: var(--ink);
    color: #fff;
    border-radius: 8px;
    font-weight: 600;
}

.skip-link:focus {
    top: 1rem;
}

.trust-strip {
    padding: 0 0 clamp(2.5rem, 5vw, 3.5rem);
    border-top: 1px solid var(--stroke);
}

.trust-strip .shell {
    display: grid;
    gap: 2rem;
    padding-top: 2rem;
}

.method-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem 1.25rem;
}

.method-list li {
    color: var(--ink-soft);
    font-size: 0.98rem;
    position: relative;
    padding-left: 1rem;
}

.method-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
}

.trust-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
    border-top: 1px solid var(--stroke);
    padding-top: 1.5rem;
}

.trust-stats dt {
    font-family: var(--font-serif);
    font-size: 1.55rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 0.35rem;
}

.trust-stats dd {
    color: var(--ink-soft);
    font-size: 0.92rem;
    line-height: 1.4;
}

.process-steps {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
    counter-reset: step;
}

.process-steps li {
    counter-increment: step;
    background: var(--card);
    border: 1px solid var(--stroke);
    border-radius: var(--radius);
    padding: 1.6rem 1.5rem 1.5rem;
    box-shadow: 0 6px 18px rgba(20, 24, 22, 0.04);
}

.process-steps li::before {
    content: counter(step, decimal-leading-zero);
    display: block;
    font-family: var(--font-serif);
    font-size: 1.1rem;
    color: var(--accent);
    margin-bottom: 0.75rem;
    letter-spacing: 0.04em;
}

.process-steps h3 {
    margin-bottom: 0.65rem;
    font-size: 1.2rem;
}

.process-steps p {
    margin: 0;
    color: var(--ink-soft);
    font-size: 0.98rem;
}

.approach-grid article {
    background: #151816;
    color: rgba(255, 255, 255, 0.88);
}

.approach-grid article h3 {
    color: #fff;
    margin: 0 0 0.75rem;
}

.approach-grid article p {
    color: rgba(242, 243, 241, 0.78);
    margin: 0;
}

.approach-grid article:hover {
    background: var(--accent-dark);
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(143, 107, 255, 0.28);
}

.hero-actions {
    margin-bottom: 1.25rem;
}

.footer-legal {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
    margin-top: 0.75rem;
}

.footer-legal a {
    opacity: 0.75;
    font-size: 0.9em;
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

.footer-legal a:hover {
    opacity: 1;
}

/* Native dialog modal */
.diploma-modal {
    position: relative;
    border: none;
    padding: 1.25rem;
    max-width: min(960px, 96vw);
    width: 100%;
    background: transparent;
    color: inherit;
}

.diploma-modal:not([open]) {
    display: none;
}

.diploma-modal[open] {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) 48px;
    grid-template-rows: auto auto;
    align-items: center;
    gap: 0.75rem;
}

.diploma-modal::backdrop {
    background: rgba(12, 14, 13, 0.72);
    backdrop-filter: blur(4px);
}

.diploma-modal__stage {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: min(70vh, 720px);
    background: #0f1110;
    border-radius: 12px;
    padding: 0.75rem;
}

.diploma-modal__image {
    max-width: 100%;
    max-height: min(70vh, 720px);
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
}

.diploma-modal__close {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,0.12);
    color: #fff;
    font-size: 1.6rem;
    z-index: 2;
}

.diploma-modal__nav {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255,255,255,0.12);
    color: #fff;
    font-size: 1.8rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.diploma-modal__nav--prev { grid-column: 1; grid-row: 1; }
.diploma-modal__nav--next { grid-column: 3; grid-row: 1; }

.diploma-modal__dots {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.4rem;
}

.diploma-modal__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.35);
}

.diploma-modal__dot.is-active {
    background: #fff;
}

.diploma-slide picture {
    display: contents;
}

@media (max-width: 960px) {
    .trust-stats {
        grid-template-columns: 1fr;
    }

    .hero-copy h1 {
        max-width: none;
    }
}

@media (max-width: 520px) {
    .diploma-modal[open] {
        grid-template-columns: 44px minmax(0, 1fr) 44px;
        padding: 0.75rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .service-cards article:hover,
    .approach-grid article:hover,
    .story-card:hover {
        transform: none;
    }
}

/* ============================================
   Статьи (раздел /statyi/)
   ============================================ */
.articles,
.article {
    padding: clamp(7rem, 12vw, 9rem) 0 var(--section-padding);
}

.breadcrumbs {
    font-size: 0.88rem;
    color: var(--muted);
    margin-bottom: 1.5rem;
}

.breadcrumbs a:hover { color: var(--ink); }
.breadcrumbs span[aria-hidden] { margin: 0 0.35rem; }

.articles .section-head h1,
.article-head h1 {
    font-family: var(--font-serif);
    font-weight: 600;
    line-height: 1.12;
    letter-spacing: -0.015em;
    text-wrap: balance;
}

.articles .section-head h1 { font-size: clamp(2.4rem, 5vw, 3.4rem); }

.article-head,
.article-body {
    max-width: 760px;
    margin: 0 auto;
}

.article-head h1 {
    font-size: clamp(2rem, 4.2vw, 3rem);
    margin-bottom: 1rem;
}

.article-meta {
    font-size: 0.92rem;
    color: var(--muted);
    margin-bottom: 2rem;
}

.article-body {
    line-height: 1.75;
}

.article-body h2 {
    font-family: var(--font-serif);
    font-size: clamp(1.6rem, 3vw, 2.1rem);
    line-height: 1.2;
    margin: 2.75rem 0 1rem;
    scroll-margin-top: 6rem;
    text-wrap: balance;
}

.article-body hr {
    border: 0;
    border-top: 1px solid var(--stroke);
    margin: 2.5rem 0;
}

.article-source {
    padding: 1rem 1.25rem;
    border-left: 3px solid var(--accent);
    background: var(--accent-soft);
    border-radius: 0 var(--radius) var(--radius) 0;
    font-size: 1rem;
}

.article-toc {
    margin-bottom: 2rem;
    padding: 1.1rem 1.4rem;
    background: var(--card);
    border: 1px solid var(--stroke);
    border-radius: var(--radius);
}

.article-toc summary {
    cursor: pointer;
    font-weight: 600;
}

.article-toc ol {
    margin: 0.9rem 0 0;
    padding-left: 1.3rem;
    list-style: decimal;
    color: var(--ink-soft);
}

.article-toc li { margin-bottom: 0.35rem; }
.article-toc a:hover { color: var(--accent-dark); text-decoration: underline; }

.article-cta {
    margin: 2.75rem 0;
    padding: 1.75rem;
    background: var(--ink);
    color: #fff;
    border-radius: var(--radius);
}

.article-cta p,
main .article-cta p { color: rgba(255, 255, 255, 0.78); margin-bottom: 1.25rem; }
main .article-cta .article-cta__title {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    line-height: 1.2;
    color: #fff;
    margin-bottom: 0.6rem;
}
.article-cta .btn.primary { background: #fff; color: var(--ink); }
.article-cta .btn.primary:hover { background: var(--accent); color: #fff; }

.article-sources {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--stroke);
}

.article-sources h2,
.article-author h2 {
    font-size: 1.3rem;
    margin: 0 0 0.6rem;
}

.article-author {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    margin-top: 2.5rem;
    padding: 1.5rem;
    background: var(--card);
    border: 1px solid var(--stroke);
    border-radius: var(--radius);
}

.article-author picture {
    display: block;
    flex: 0 0 96px;
    width: 96px;
    height: 96px;
}

.article-author img {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    object-position: top;
}

.article-author p { margin-bottom: 0.6rem; font-size: 0.98rem; }
.article-author a { text-decoration: underline; text-underline-offset: 3px; }

main .article-disclaimer {
    margin-top: 1.5rem;
    font-size: 0.8rem;
    line-height: 1.5;
    color: var(--muted);
}

.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.article-card {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1.75rem;
    background: var(--card);
    border: 1px solid var(--stroke);
    border-radius: var(--radius);
    transition: var(--transition);
}

.article-card:hover,
.article-card:focus-visible {
    transform: translateY(-3px);
    border-color: var(--ink);
}

.article-card h2 {
    font-family: var(--font-serif);
    font-size: 1.65rem;
    line-height: 1.2;
    text-wrap: balance;
}

main .article-card p { margin: 0; font-size: 0.98rem; }

.article-card__rubric {
    align-self: flex-start;
    padding: 0.2rem 0.75rem;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent-dark);
    font-size: 0.8rem;
    font-weight: 600;
}

.article-card__meta {
    margin-top: auto;
    font-size: 0.85rem;
    color: var(--muted);
}

.nav-panel a[aria-current="page"]::after { transform: scaleX(1); }

@media (max-width: 560px) {
    .article-author { flex-direction: column; }
}

.article .breadcrumbs {
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}

/* .grain (fixed, без z-index) перекрывал фон подвала — тёмный #111217 выглядел серым */
.site-footer {
    position: relative;
    z-index: 3;
}

.footer-links { flex-wrap: wrap; }

.contact-bio { display: flex; flex-direction: column; align-items: center; gap: 1.25rem; }
.contact-bio picture { display: block; width: 150px; height: 150px; flex: 0 0 150px; }
.contact-bio img {
    display: block;
    width: 150px;
    height: 150px;
    max-width: none;
    border-radius: 50%;
    object-fit: cover;
    object-position: top;
}
.contact-bio p { margin: 0; text-align: left; align-self: stretch; }
