:root {
    --bg: #f8f8f8;
    --surface: #ffffff;
    --text: #111111;
    --muted: #666666;
    --line: #e4e4e4;
    --accent: #111111;
    --danger: #a00000;
}

* {
    box-sizing: border-box;
}

html {
    scrollbar-gutter: stable;
    overflow-x: hidden;
}

body {
    margin: 0;
    font-family: var(--site-font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-y: scroll;
    overflow-x: hidden;
    padding-top: var(--site-header-height, 0px);
}

a {
    color: inherit;
}

.site-header,
.site-footer,
.main {
    width: min(1100px, 92vw);
    margin: 0 auto;
}

.site-header {
    width: 100vw;
    max-width: none;
    margin: 0;
    padding: 1.25rem 4vw 1rem;
    display: grid;
    grid-template-columns: 1fr;
    justify-items: center;
    align-items: center;
    gap: 0.55rem;
    border-bottom: 1px solid var(--line);
    position: fixed;
    top: 0;
    left: 0;
    transform: none;
    z-index: 80;
    background: rgba(248, 248, 248, 0.94);
    backdrop-filter: blur(6px);
}

.brand {
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-align: center;
}

.nav {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.nav-toggle {
    display: none;
}

.nav a {
    text-decoration: none;
    color: var(--muted);
}

.nav a:hover {
    color: var(--text);
}

.main {
    padding: 2rem 0 5.2rem;
}

.text-page {
    max-width: 720px;
    margin: 0 auto;
}

.hero {
    max-width: 680px;
}

.page-heading {
    text-align: center;
    margin: 0 auto 3rem;
}

.page-heading h1 {
    margin-bottom: 0.68rem;
    font-weight: 460;
    letter-spacing: -0.012em;
}

.page-heading p {
    margin: 0 auto;
    max-width: 62ch;
    color: var(--muted);
    line-height: 1.75;
    font-size: 0.98rem;
}

.about-page {
    display: grid;
    gap: 3.2rem;
    max-width: 1040px;
    position: relative;
}

.about-page::before {
    content: none;
}

.about-page > * {
    position: relative;
    z-index: 1;
}

.about-page .page-heading {
    margin-bottom: 0.2rem;
    padding-bottom: 1.1rem;
    border-bottom: 1px solid #dce3ee;
}

.about-page .page-heading h1 {
    font-size: clamp(2.1rem, 4.2vw, 3rem);
    margin-bottom: 0.8rem;
    letter-spacing: -0.018em;
}

.about-page .page-heading p {
    max-width: 64ch;
    font-size: 1.02rem;
    color: #4f5b6d;
}

.about-intro-block,
.about-focus-block,
.about-story-block,
.about-values-block,
.about-cta-block {
    display: grid;
    gap: 1.15rem;
}

.about-page > section {
    padding-top: 1.9rem;
    border-top: 1px solid #dde4ef;
}

.about-page > section:first-of-type {
    padding-top: 0;
    border-top: 0;
}

.about-intro-block {
    grid-template-columns: minmax(0, 1.15fr) minmax(240px, 320px);
    align-items: center;
    gap: 1.9rem;
    overflow: hidden;
    position: relative;
}

.about-intro-block::before {
    content: none;
}

.about-intro-block.no-portrait {
    grid-template-columns: 1fr;
}

.about-intro-content {
    display: grid;
    gap: 0.9rem;
    align-content: center;
}

.about-portrait {
    margin: 0;
    border: 1px solid #d8dde6;
    background: #fff;
    padding: 0.42rem;
    transform: none;
}

.about-portrait img {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    display: block;
}

.about-intro-copy,
.about-story-block p {
    margin: 0;
    color: var(--muted);
    line-height: 1.95;
    font-size: 1rem;
}

.about-story-timeline {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 1.55rem;
    position: relative;
    counter-reset: about-story-step;
}

.about-story-timeline::before {
    content: "";
    position: absolute;
    left: 0.38rem;
    top: 0.28rem;
    bottom: 0.28rem;
    width: 1px;
    background: linear-gradient(180deg, #c8d2e2 0%, #d9e2ef 100%);
    z-index: 0;
}

.about-story-step {
    position: relative;
    width: calc(50% - 1rem);
    counter-increment: about-story-step;
}

.about-story-step:nth-child(odd) {
    justify-self: start;
    padding-right: 2rem;
    text-align: right;
}

.about-story-step:nth-child(even) {
    justify-self: end;
    padding-left: 2rem;
    text-align: left;
}

.about-story-marker {
    position: absolute;
    top: 0.62rem;
    width: 0.9rem;
    height: 0.9rem;
    border: 1px solid #7d91ad;
    background: #f8f8f8;
    border-radius: 999px;
    z-index: 1;
    box-shadow: 0 0 0 3px rgba(248, 248, 248, 0.95);
}

.about-story-step:nth-child(odd) .about-story-marker {
    right: -0.45rem;
}

.about-story-step:nth-child(even) .about-story-marker {
    left: -0.45rem;
}

.about-story-step::before {
    content: counter(about-story-step, decimal-leading-zero);
    position: absolute;
    top: 0.35rem;
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #7b889d;
}

.about-story-step:nth-child(odd)::before {
    right: 2rem;
}

.about-story-step:nth-child(even)::before {
    left: 2rem;
}

.about-story-step::after {
    content: "";
    position: absolute;
    top: 0.95rem;
    width: 1.45rem;
    height: 1.15rem;
    border-top: 1px solid #c8d2e2;
    pointer-events: none;
}

.about-story-step:nth-child(odd)::after {
    right: 0.5rem;
    border-right: 1px solid #c8d2e2;
    border-top-right-radius: 14px;
}

.about-story-step:nth-child(even)::after {
    left: 0.5rem;
    border-left: 1px solid #c8d2e2;
    border-top-left-radius: 14px;
}

.about-story-step p {
    max-width: 46ch;
    margin: 0;
    position: relative;
    z-index: 1;
    background: transparent;
    padding: 1.2rem 0 0;
    border: 0;
    box-shadow: none;
}

.about-story-step:nth-child(odd) p {
    margin-left: auto;
}

.about-story-step:nth-child(even) p {
    margin-right: auto;
}

.about-story-block h2 {
    letter-spacing: 0.02em;
}

.about-quote {
    margin: 0;
    padding: 0.3rem 0 0.3rem 0.9rem;
    border-left: 2px solid #8d98a9;
    color: #2e3642;
    font-style: italic;
}

.about-focus-block h2,
.about-story-block h2,
.about-values-block h2,
.about-cta-block h2 {
    margin: 0;
    text-align: center;
    font-size: clamp(1.12rem, 2.1vw, 1.42rem);
    font-weight: 460;
}

.about-focus-list {
    display: grid;
    gap: 2rem 2.2rem;
    align-items: start;
    justify-items: center;
    max-width: 920px;
    margin: 0 auto;
}

.about-focus-list.about-focus-list-count-1 {
    grid-template-columns: 1fr;
    max-width: 440px;
}

.about-focus-list.about-focus-list-count-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 760px;
}

.about-focus-list.about-focus-list-count-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.about-focus-list.about-focus-list-count-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 820px;
}

.about-focus-list span {
    padding: 0.95rem 0 0;
    font-size: 0.86rem;
    color: #2d333d;
    background: transparent;
    letter-spacing: 0.01em;
    text-align: center;
    position: relative;
    transition: transform 0.2s ease, opacity 0.2s ease;
    line-height: 1.85;
    max-width: 26ch;
    width: 100%;
    border-top: 1px solid #d7deea;
}

.about-focus-list span:hover {
    transform: translateY(-1px);
    opacity: 0.9;
}

.about-focus-list span::before {
    content: none;
}

.about-values-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.35rem;
}

.about-value-card {
    border: 0;
    background: transparent;
    padding: 0.15rem 0.2rem;
    display: grid;
    gap: 0.62rem;
    transition: transform 0.24s ease, opacity 0.24s ease;
}

.about-value-card:hover {
    transform: translateY(-2px);
    opacity: 0.94;
}

.about-value-icon {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--about-value-color, #1f2733);
    justify-self: center;
}

.about-value-icon svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.about-value-card h3 {
    margin: 0;
    font-size: 0.98rem;
    font-weight: 460;
    text-align: center;
}

.about-value-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.75;
    text-align: center;
}

.about-cta-block {
    border-top: 1px solid #d7dfec;
    text-align: center;
    padding-top: 1.45rem;
}

.about-cta-block p {
    margin: 0 auto;
    max-width: 58ch;
    color: var(--muted);
    line-height: 1.8;
}

.about-cta-link {
    justify-self: center;
    text-decoration: none;
    border: 1px solid #2a3f61;
    color: #2a3f61;
    padding: 0.56rem 1.08rem;
    font-size: 0.9rem;
    letter-spacing: 0.01em;
    transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.about-cta-link:hover {
    transform: translateY(-1px);
    background: #2a3f61;
    color: #fff;
}

.home-hero-image {
    min-height: 100svh;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    border-radius: 0;
    margin-bottom: 5.8rem;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    background-attachment: fixed;
    background-color: #0f1115;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    box-shadow: none;
}

.hero-image-content {
    width: min(1100px, 92vw);
    margin: 0 auto;
    color: #fff;
    padding: 2.1rem 0;
}

.hero-image-content h2 {
    margin: 0;
    font-size: clamp(1.45rem, 3.7vw, 2.25rem);
    font-weight: 460;
}

.hero-eyebrow {
    color: #d9d9d9;
}

.home-mini-gallery {
    margin-top: 6rem;
}

.home-mini-gallery h2 {
    margin: 0 0 1.4rem;
    text-align: center;
    font-size: clamp(1.35rem, 2.8vw, 2.2rem);
    font-weight: 460;
}

.home-story-grid-section {
    margin: 0 0 6rem;
    padding-top: 1.6rem;
}

.home-feedback-section {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    margin-top: 0;
    margin-bottom: 5.8rem;
    text-align: center;
}

.home-feedback-section h2 {
    margin: 0 0 1.45rem;
    font-size: clamp(1.35rem, 2.8vw, 2.2rem);
    font-weight: 460;
}

.home-feedback-slider {
    overflow: hidden;
    padding: 3.1rem 4vw 0.2rem;
}

.home-feedback-track {
    display: flex;
    align-items: stretch;
    gap: 1.2rem;
    width: max-content;
}

.home-feedback-track.is-animated {
    animation: home-feedback-marquee 44s linear infinite;
}

@keyframes home-feedback-marquee {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(calc(-50% - 0.6rem));
    }
}

.home-feedback-card {
    width: min(340px, 78vw);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 0;
    padding: 1.8rem 1.5rem 1.6rem;
    display: grid;
    justify-items: center;
    gap: 1rem;
    text-align: center;
    box-shadow: none;
}

.home-feedback-avatar {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--line);
    background: #f2f2f2;
    margin: 0 auto;
}

.home-feedback-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.home-feedback-avatar--placeholder {
    background: #e6e6e6;
}

.home-feedback-text {
    margin: 0;
    color: var(--muted);
    line-height: 1.8;
    font-size: 0.92rem;
    min-height: 7.2em;
}

.home-feedback-card h3 {
    margin: 0;
    font-size: 0.98rem;
    font-weight: 460;
    color: var(--text);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.home-feedback-stars {
    margin: 0;
    letter-spacing: 0.16em;
    color: #8f8f8f;
    font-size: 0.96rem;
}

.home-reasons-section {
    margin: 0 0 5.8rem;
    text-align: center;
}

.home-reasons-section h2 {
    margin: 0 0 1.4rem;
    font-size: clamp(1.35rem, 2.8vw, 2.15rem);
    font-weight: 460;
}

.home-reasons-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.6rem;
}

.home-reason-item {
    display: grid;
    justify-items: center;
    gap: 0.5rem;
}

.home-reason-icon {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--home-reason-color, #1f2733);
}

.home-reason-icon svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.home-reason-item h3 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 460;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.home-reason-item p {
    margin: 0;
    max-width: 35ch;
    color: var(--muted);
    line-height: 1.8;
}

.home-story-grid-section h2 {
    margin: 0 0 1.45rem;
    text-align: center;
    font-size: clamp(1.35rem, 2.8vw, 2.2rem);
    font-weight: 460;
    letter-spacing: 0;
}

.home-story-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.8rem;
}

.home-story-card {
    display: grid;
    gap: 0.75rem;
    align-content: start;
    justify-items: center;
    text-align: center;
}

.home-story-card img {
    width: 100%;
    max-width: 460px;
    height: auto;
    aspect-ratio: auto;
    object-fit: contain;
    display: block;
    border: 0;
    margin: 0 auto;
}

.home-story-card h3 {
    margin: 0;
    padding: 0;
    font-size: 1rem;
    font-weight: 460;
    line-height: 1.4;
}

.home-story-card p {
    margin: 0;
    padding: 0;
    color: var(--muted);
    line-height: 1.8;
    font-size: 0.92rem;
}

.home-branding-row {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    align-items: center;
    gap: 2.2rem;
    width: 100%;
    margin-bottom: 5.2rem;
    padding: 0.8rem 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.home-branding-text {
    max-width: none;
    min-height: 210px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: var(--muted);
}

.home-branding-text h2 {
    margin: 0 0 0.62rem;
    font-size: clamp(1.4rem, 2.6vw, 2rem);
    color: var(--text);
    font-weight: 460;
    letter-spacing: -0.01em;
}

.home-branding-text p {
    margin: 0;
    max-width: 54ch;
    font-size: 1rem;
    line-height: 1.9;
}

.home-branding-logo {
    max-width: none;
    min-height: 210px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-left: 1px solid #e8ebf0;
    padding-left: 1.6rem;
}

.home-branding-logo img {
    display: block;
    width: min(440px, 100%);
    max-width: 100%;
    max-height: 240px;
    object-fit: contain;
    filter: contrast(1.04);
}

.eyebrow {
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.78rem;
}

h1,
h2,
h3 {
    line-height: 1.2;
    margin-top: 0;
}

h1 {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 500;
}

.button,
button {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    border: none;
    text-decoration: none;
    padding: 0.65rem 1rem;
    border-radius: 8px;
    cursor: pointer;
}

.button-muted {
    background: #555;
}

.button-danger {
    background: var(--danger);
}

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

.photo-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 0;
    overflow: hidden;
}

.photo-card img {
    width: 100%;
    display: block;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.photo-card h3,
.photo-card p {
    margin: 0;
    padding: 0.6rem 0.8rem;
}

.photo-card p {
    color: var(--muted);
    padding-top: 0;
}

.category-block {
    margin: 2rem 0 3rem;
}

.category-block h2 {
    text-align: center;
}

.portfolio-masonry {
    column-count: 3;
    column-gap: 1rem;
}

.portfolio-masonry .photo-card {
    break-inside: avoid;
    margin: 0 0 1rem;
}

.portfolio-masonry .photo-card img {
    width: 100%;
    height: auto;
    aspect-ratio: auto;
    object-fit: contain;
}

.portfolio-lightbox-trigger {
    display: block;
    cursor: zoom-in;
}

.portfolio-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9998;
    background: #000;
}

.portfolio-lightbox[hidden] {
    display: none;
}

.portfolio-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: #000;
}

.portfolio-lightbox-content {
    position: relative;
    margin: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 4.2rem;
    background: #000;
}

.portfolio-lightbox-content img {
    max-width: min(94vw, 1400px);
    max-height: 90vh;
    width: auto;
    height: auto;
    display: block;
    border-radius: 0;
    box-shadow: none;
}

.portfolio-lightbox-control {
    user-select: none;
}

#portfolio-lightbox .portfolio-lightbox-close,
#portfolio-lightbox button.portfolio-lightbox-close {
    position: absolute;
    top: 0.6rem;
    right: 0.8rem;
    z-index: 3;
    color: #fff;
    font-size: 2.2rem;
    font-weight: 300;
    line-height: 1;
    cursor: pointer;
}

#portfolio-lightbox .portfolio-lightbox-nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    z-index: 4;
    color: #fff;
    font-size: 3.1rem;
    font-weight: 400;
    text-shadow: 0 3px 10px rgba(0, 0, 0, 0.6);
    line-height: 1;
    width: auto;
    height: auto;
    text-align: center;
    display: block;
    background: transparent;
    border-radius: 0;
    cursor: pointer;
}

body.lightbox-open .site-header,
body.lightbox-open .mobile-nav-backdrop,
body.lightbox-open .site-nav {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

#portfolio-lightbox .portfolio-lightbox-nav[hidden] {
    display: none;
}

#portfolio-lightbox .portfolio-lightbox-prev,
#portfolio-lightbox button.portfolio-lightbox-prev {
    left: 0.9rem;
}

#portfolio-lightbox .portfolio-lightbox-next,
#portfolio-lightbox button.portfolio-lightbox-next {
    right: 0.9rem;
}

.site-footer {
    padding: 1.25rem 0 3rem;
    border-top: 1px solid var(--line);
    display: grid;
    gap: 0.55rem;
    justify-items: center;
    color: var(--muted);
    text-align: center;
}

.site-footer-copy {
    margin: 0;
    font-size: 0.9rem;
}

.footer-instagram-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #111;
}

.footer-instagram-icon {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    stroke-width: 1.8;
}

.footer-instagram-link:hover {
    color: #000;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 0.95rem;
}

.footer-links a {
    text-decoration: none;
    color: var(--muted);
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--text);
}

.admin-body {
    background: linear-gradient(180deg, #f4f5f6 0%, #efefef 100%);
}

.admin-main {
    width: min(980px, 94vw);
    margin: 2rem auto 4rem;
}

.admin-main form {
    display: grid;
    gap: 0.6rem;
}

.admin-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin: 0 0 1rem;
}

.admin-toolbar a {
    text-decoration: none;
    font-size: 0.92rem;
    color: var(--muted);
}

.admin-toolbar a:hover {
    color: var(--text);
}

.admin-hero {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 1.1rem 1.2rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.04);
}

.admin-hero h1 {
    margin: 0;
    font-size: 1.65rem;
}

.admin-hero p {
    margin: 0.2rem 0 0;
    color: var(--muted);
}

.admin-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.admin-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin: 0 0 1rem;
}

.admin-tabs a {
    text-decoration: none;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0.38rem 0.75rem;
    color: var(--muted);
    background: #fff;
    font-size: 0.92rem;
}

.admin-tabs a.active {
    color: #fff;
    background: var(--text);
    border-color: var(--text);
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 0.55rem 0.7rem;
    font: inherit;
    background: #fff;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #bbbbbb;
    box-shadow: 0 0 0 3px rgba(17, 17, 17, 0.08);
}

label {
    display: grid;
    gap: 0.35rem;
}

.checkbox {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.checkbox input {
    width: auto;
}

.panel,
.card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 1rem 1rem 1.05rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.04);
}

.card {
    display: grid;
    gap: 1rem;
}

.admin-grid-two {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.stat-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 0.95rem 1rem;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.04);
    display: grid;
    gap: 0.2rem;
}

.stat-card span {
    color: var(--muted);
    font-size: 0.9rem;
}

.stat-card strong {
    font-size: 1.7rem;
    line-height: 1;
}

.admin-stack {
    display: grid;
    gap: 0.8rem;
}

.thumb {
    width: 180px;
    max-width: 100%;
    border-radius: 8px;
}

.admin-header-inline {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.admin-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.7rem;
}

.pill {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.55rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    font-size: 0.8rem;
}

.help-text {
    margin: -0.1rem 0 0.2rem;
    color: var(--muted);
    font-size: 0.9rem;
}

select[multiple] {
    min-height: 10.5rem;
}

.folder-heading {
    margin: 1.25rem 0 0.65rem;
    color: var(--muted);
    font-size: 1rem;
}

.meta-path {
    margin: 0;
    color: var(--muted);
    font-size: 0.92rem;
    word-break: break-all;
}

.photo-folder-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
}

.success {
    color: #066b06;
}

.error {
    color: var(--danger);
}

.contact-form {
    max-width: 620px;
}

.contact-section {
    padding: 0.4rem 0 0.2rem;
}

.contact-section h1 {
    margin-bottom: 0.55rem;
}

.contact-section > p {
    color: var(--muted);
    margin: 0 0 1rem;
}

.contact-section .contact-form {
    display: grid;
    gap: 0.9rem;
    max-width: 560px;
    width: 100%;
    margin: 0 auto;
}

.contact-section .contact-form label {
    gap: 0.3rem;
    color: #2b2b2b;
    font-size: 0.9rem;
    text-align: center;
}

.contact-section .contact-form input,
.contact-section .contact-form textarea {
    border: 0;
    border-bottom: 1px solid #d8d8d8;
    border-radius: 0;
    background: transparent;
    padding: 0.5rem 0.1rem;
    box-shadow: none;
}

.contact-section .contact-form input:focus,
.contact-section .contact-form textarea:focus {
    outline: none;
    border-bottom-color: #777;
    box-shadow: none;
}

.contact-section .contact-form button {
    justify-self: center;
    background: #141414;
    border-radius: 999px;
    padding: 0.56rem 0.95rem;
    font-size: 0.9rem;
}

.hp-field {
    position: absolute;
    left: -10000px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

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

@media (max-width: 680px) {
    .site-header {
        align-items: center;
        position: fixed;
        top: 0;
        left: 0;
        transform: none;
        z-index: 120;
    }

    .nav-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        background: #fff;
        color: #1b2433;
        border: 1px solid var(--line);
        border-radius: 9px;
        padding: 0;
        z-index: 111;
        position: absolute;
        right: 4vw;
        top: 0.9rem;
    }

    .nav-toggle-icon,
    .nav-toggle-icon::before,
    .nav-toggle-icon::after {
        display: block;
        width: 18px;
        height: 2px;
        border-radius: 2px;
        background: currentColor;
        content: "";
    }

    .nav-toggle-icon::before {
        transform: translateY(-6px);
    }

    .nav-toggle-icon::after {
        transform: translateY(4px);
    }

    .site-nav {
        position: fixed;
        top: 0;
        right: 0;
        height: 100dvh;
        width: min(82vw, 340px);
        min-width: 0;
        padding: 5rem 1.2rem 1.2rem;
        background: #fff;
        border-left: 1px solid var(--line);
        box-shadow: -8px 0 24px rgba(16, 24, 38, 0.14);
        display: none;
        flex-direction: column;
        gap: 0.9rem;
        z-index: 110;
    }

    .site-nav.is-open {
        display: flex;
    }

    .site-nav a {
        font-size: 1rem;
    }

    .mobile-nav-backdrop {
        position: fixed;
        inset: 0;
        border: 0;
        margin: 0;
        padding: 0;
        background: rgba(12, 18, 29, 0.35);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.22s ease;
        z-index: 100;
        display: block;
    }

    .mobile-nav-backdrop.is-open {
        opacity: 1;
        pointer-events: auto;
    }

    body.has-mobile-nav-open {
        overflow: hidden;
        overscroll-behavior: none;
    }

    body.has-mobile-nav-open .site-header {
        z-index: 120;
    }

    body.has-mobile-nav-open .site-header .brand {
        opacity: 0;
        pointer-events: none;
    }

    .site-footer {
        gap: 0.5rem;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.65rem;
    }

    .about-page {
        gap: 1.4rem;
    }

    .about-intro-block {
        grid-template-columns: 1fr;
        padding: 1rem;
    }

    .about-intro-block::before {
        display: none;
    }

    .about-portrait {
        max-width: 320px;
        width: 100%;
        margin: 0 auto;
    }

    .about-story-block,
    .about-focus-block,
    .about-values-block,
    .about-cta-block {
        padding: 1rem;
    }

    .about-story-timeline {
        gap: 1.2rem;
    }

    .about-story-step,
    .about-story-step:nth-child(odd),
    .about-story-step:nth-child(even) {
        width: 100%;
        padding: 0 0 0 1.45rem;
        margin-left: 0;
        text-align: left;
        justify-self: stretch;
    }

    .about-story-timeline::before {
        left: 0.38rem;
        transform: none;
    }

    .about-story-step:nth-child(odd) .about-story-marker,
    .about-story-step:nth-child(even) .about-story-marker {
        left: 0;
        right: auto;
    }

    .about-story-step::after {
        left: 0.5rem;
        right: auto;
        border-left: 1px solid #c8d2e2;
        border-right: 0;
        border-top-left-radius: 14px;
        border-top-right-radius: 0;
    }

    .about-story-step::before {
        left: 1.35rem;
        top: 0.3rem;
        font-size: 0.64rem;
        right: auto;
    }

    .about-story-marker {
        width: 0.78rem;
        height: 0.78rem;
    }

    .about-focus-list {
        grid-template-columns: 1fr;
    }

    .about-values-grid {
        grid-template-columns: 1fr;
    }

    .home-hero-image {
        min-height: 86svh;
        background-attachment: scroll;
        margin-bottom: 3.2rem;
        background-size: contain;
        background-position: center center;
        background-repeat: no-repeat;
    }

    .home-branding-row {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1rem;
        margin-bottom: 3rem;
    }

    .home-branding-text,
    .home-branding-logo {
        max-width: 100%;
        min-height: auto;
    }

    .home-branding-logo {
        text-align: left;
        justify-content: flex-start;
        border-left: none;
        border-top: 1px solid var(--line);
        padding-left: 0;
        padding-top: 0.85rem;
    }

    .home-branding-logo img {
        width: min(320px, 82vw);
        max-height: 140px;
    }

    .home-story-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .home-reasons-grid {
        grid-template-columns: 1fr;
        gap: 1.1rem;
    }

    .home-reasons-section {
        margin-bottom: 3rem;
    }

    .home-feedback-section {
        margin-bottom: 3rem;
    }

    .home-feedback-slider {
        padding-top: 2.6rem;
    }

    .home-feedback-track.is-animated {
        animation-duration: 34s;
    }

    .home-story-grid-section {
        margin-bottom: 3.2rem;
        padding-top: 0.8rem;
    }

    .home-mini-gallery {
        margin-top: 3.2rem;
    }

    .home-story-card {
        max-width: 460px;
        margin: 0 auto;
        width: 100%;
    }

    .home-story-card img {
        max-height: 240px;
    }

    .admin-grid-two,
    .admin-stats-grid {
        grid-template-columns: 1fr;
    }

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

    .portfolio-masonry {
        column-count: 1;
    }

    .portfolio-masonry .photo-card,
    .home-mini-gallery .portfolio-masonry .photo-card {
        width: 100%;
        max-width: 460px;
        margin-left: auto;
        margin-right: auto;
    }

    #portfolio-lightbox .portfolio-lightbox-close {
        top: 0.45rem;
        right: 0.6rem;
        font-size: 1.8rem;
    }

    #portfolio-lightbox .portfolio-lightbox-nav {
        font-size: 2.35rem;
        width: auto;
        height: auto;
    }

    #portfolio-lightbox .portfolio-lightbox-prev {
        left: 0.35rem;
    }

    #portfolio-lightbox .portfolio-lightbox-next {
        right: 0.35rem;
    }
}

@media (max-width: 520px) {
    .home-story-card {
        max-width: min(80vw, 320px);
    }

    .home-story-card img {
        max-height: 200px;
    }

    .portfolio-masonry .photo-card,
    .home-mini-gallery .portfolio-masonry .photo-card {
        max-width: min(84vw, 320px);
    }
}

@media (min-width: 681px) and (max-width: 980px) {
    .portfolio-masonry {
        column-count: 2;
    }
}
