:root {
    --bg: #f0f1f4;
    --surface: #ffffff;
    --dark: #2a2a2a;
    --dark-soft: #363636;
    --text: #2a2a2a;
    --muted: #6b7280;
    --border: #e2e5eb;
    --accent: #e00000;
    --accent-hover: #c40000;
    --accent-light: #fff0f0;
    --accent-glow: rgba(224, 0, 0, 0.35);
    --success: #166534;
    --error: #991b1b;
    --radius: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --shadow: 0 4px 24px rgba(42, 42, 42, 0.07);
    --shadow-lg: 0 20px 60px rgba(42, 42, 42, 0.14);
    --shadow-glow: 0 8px 32px var(--accent-glow);
    --font-sans: "Raleway", system-ui, sans-serif;
    --font-serif: "Raleway", system-ui, sans-serif;
    --container: min(1140px, calc(100% - 2.5rem));
    --gradient-accent: linear-gradient(135deg, #ff3333 0%, #e00000 50%, #b80000 100%);
    --gradient-dark: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 60%, #3d0a0a 100%);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-sans);
    background: var(--bg);
    background-image:
        radial-gradient(ellipse 80% 50% at 20% -10%, rgba(224, 0, 0, 0.06), transparent),
        radial-gradient(ellipse 60% 40% at 90% 10%, rgba(42, 42, 42, 0.04), transparent);
    color: var(--text);
    line-height: 1.65;
    font-size: 1rem;
    -webkit-font-smoothing: antialiased;
    position: relative;
}

.page-decor {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.page-decor-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.35;
    animation: orb-float 18s ease-in-out infinite;
}

.page-decor-orb--1 {
    width: 420px;
    height: 420px;
    background: rgba(224, 0, 0, 0.15);
    top: -8%;
    right: -5%;
}

.page-decor-orb--2 {
    width: 320px;
    height: 320px;
    background: rgba(42, 42, 42, 0.08);
    bottom: 20%;
    left: -8%;
    animation-delay: -6s;
}

.page-decor-orb--3 {
    width: 260px;
    height: 260px;
    background: rgba(224, 0, 0, 0.1);
    bottom: -5%;
    right: 25%;
    animation-delay: -12s;
}

.site-header,
.site-main,
.site-cta,
.site-footer,
.top-bar {
    position: relative;
    z-index: 1;
}

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

a {
    color: var(--accent);
    transition: color 0.2s;
}

h1, h2, h3, h4 {
    font-family: var(--font-sans);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.4rem, 5vw, 3.75rem); margin: 0 0 1rem; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin: 0 0 0.75rem; }
h3 { font-size: 1.35rem; margin: 0 0 0.5rem; }
h4 { font-family: var(--font-sans); font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; margin: 0 0 0.75rem; color: var(--muted); }

p { margin: 0 0 1rem; }

.container {
    width: var(--container);
    margin: 0 auto;
}

/* ── Header ── */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--dark);
    border-bottom: 3px solid var(--accent);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 1rem 0;
}

.site-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #fff;
    flex-shrink: 0;
}

.logo-img {
    height: 48px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
}

.logo-img--footer {
    filter: brightness(0) invert(1);
    opacity: 0.95;
}

.site-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 1.75rem;
    margin-left: auto;
}

.site-nav a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    transition: color 0.2s;
}

.site-nav a:hover,
.site-nav a.is-active {
    color: #fff;
}

.site-nav a.is-active {
    box-shadow: inset 0 -3px 0 var(--accent);
    padding-bottom: 0.15rem;
}

.header-phone {
    flex-shrink: 0;
    text-decoration: none;
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    white-space: nowrap;
    padding: 0.5rem 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: var(--radius);
    transition: background 0.2s, border-color 0.2s;
}

.header-phone:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.header-phone--mobile {
    display: block;
    text-align: center;
    padding: 0.85rem 1rem;
}

.nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    width: 44px;
    height: 44px;
    margin-left: auto;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: var(--radius);
    background: transparent;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}

.nav-toggle:hover {
    border-color: var(--accent);
    background: rgba(215, 0, 0, 0.15);
}

.nav-toggle-bar {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: #fff;
    transition: transform 0.2s, opacity 0.2s;
}

body.nav-open .nav-toggle-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

body.nav-open .nav-toggle-bar:nth-child(2) {
    opacity: 0;
}

body.nav-open .nav-toggle-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.site-nav-mobile {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: var(--dark-soft);
}

.site-nav-mobile-inner {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    padding: 1.25rem 0 1.5rem;
}

.site-nav-mobile-links {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.site-nav-mobile-links a {
    display: block;
    padding: 0.75rem 0;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.05rem;
    font-weight: 600;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.site-nav-mobile-links a:hover,
.site-nav-mobile-links a.is-active {
    color: #fff;
}

.site-nav-mobile-links a.is-active {
    color: var(--accent);
}

body.nav-open {
    overflow: hidden;
}

/* ── Buttons ── */

.button,
button.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    border-radius: 999px;
    background: var(--gradient-accent);
    background-size: 200% 200%;
    color: #fff;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-sans);
    font-size: 0.925rem;
    font-weight: 700;
    transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.25s,
                background-position 0.4s;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.button::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.22) 50%, transparent 60%);
    transform: translateX(-100%);
    transition: transform 0.55s;
}

.button:hover::before {
    transform: translateX(100%);
}

.button:hover,
button.button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
    background-position: 100% 0;
    color: #fff;
}

.button-sm {
    padding: 0.6rem 1.2rem;
    font-size: 0.875rem;
}

.button-outline {
    background: transparent;
    color: #fff;
    border: 1.5px solid rgba(255, 255, 255, 0.5);
}

.button-outline::before,
.button-secondary::before,
.button-light::before {
    display: none;
}

.button-outline:hover,
.button-secondary:hover,
.button-light:hover {
    transform: translateY(-2px);
}

.button-outline:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.button-light {
    background: #fff;
    color: var(--accent);
}

.button-light:hover {
    background: var(--accent-light);
    color: var(--accent-hover);
}

.button-secondary {
    background: var(--accent-light);
    color: var(--accent);
}

.button-secondary:hover {
    background: #f5c4c4;
}

.button-full {
    width: 100%;
}

.button-lg {
    padding: 0.95rem 1.75rem;
    font-size: 0.95rem;
}

.text-link {
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    color: var(--accent);
}

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

/* ── Hero ── */

.hero-home {
    position: relative;
    min-height: 88vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}

.hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(54, 54, 54, 0.88) 0%, rgba(54, 54, 54, 0.55) 60%, rgba(215, 0, 0, 0.35) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 6rem 0;
    max-width: 720px;
    color: #fff;
}

.hero-content h1 {
    color: #fff;
}

.hero-lead {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.82);
    margin-bottom: 2rem;
    line-height: 1.7;
}

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

.eyebrow {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    margin-bottom: 1rem;
}

.eyebrow-light {
    color: rgba(255, 255, 255, 0.75);
}

/* ── Page hero (inner pages) ── */

.page-hero {
    position: relative;
    overflow: hidden;
    background: var(--dark);
    color: #fff;
    padding: 5rem 0 4rem;
}

.page-hero .hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}

.page-hero .hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(17, 17, 24, 0.72);
}

.page-hero .container {
    position: relative;
    z-index: 1;
}

.page-hero-short {
    padding: 4rem 0 3rem;
}

.page-hero h1 {
    color: #fff;
    max-width: 680px;
}

.page-hero-lead {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.72);
    max-width: 560px;
    margin-bottom: 0;
}

.page-hero-lead a {
    color: rgba(255, 255, 255, 0.92);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.page-hero-lead a:hover {
    color: #fff;
}

.thank-you-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.5rem;
}

/* ── Sections ── */

.section {
    padding: 5rem 0;
}

.section-muted {
    background: var(--surface);
}

.section-dark {
    background: var(--dark);
    color: #fff;
}

.section-dark h2,
.section-dark h3 {
    color: #fff;
}

.section-dark p {
    color: rgba(255, 255, 255, 0.72);
}

.section-header {
    max-width: 600px;
    margin-bottom: 3rem;
}

.section-header.centered {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.section-lead {
    color: var(--muted);
    font-size: 1.05rem;
}

.section-cta {
    margin-top: 2.5rem;
}

/* ── Stats ── */

.stats-bar {
    background: var(--surface);
    padding: 2.5rem 0;
    border-bottom: 1px solid var(--border);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    text-align: center;
}

.stat strong {
    display: block;
    font-family: var(--font-serif);
    font-size: 2.4rem;
    font-weight: 400;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 0.35rem;
}

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

/* ── Service cards (home) ── */

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.service-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: box-shadow 0.25s, transform 0.25s;
}

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

.service-icon {
    font-family: var(--font-serif);
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 1rem;
    opacity: 0.7;
}

.service-card h3 {
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 1.1rem;
}

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

/* ── Split layout ── */

.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.split-image img {
    border-radius: var(--radius-lg);
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
}

.split-layout--reverse .split-content {
    order: 2;
}

.split-layout--reverse .split-image {
    order: 1;
}

@media (max-width: 1024px) {
    .split-layout--reverse .split-content,
    .split-layout--reverse .split-image {
        order: unset;
    }
}

.check-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 0;
}

.check-list li {
    position: relative;
    padding-left: 1.75rem;
    margin-bottom: 0.75rem;
    color: rgba(255, 255, 255, 0.82);
}

.check-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 700;
}

.check-list-light li {
    color: var(--text);
}

.text-link-light {
    color: rgba(255, 255, 255, 0.85);
}

.text-link-light:hover {
    color: #fff;
}

/* ── Work grid ── */

.work-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    grid-template-rows: auto auto;
    gap: 1.25rem;
}

.work-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 16/10;
}

.work-card-large {
    grid-row: span 2;
    aspect-ratio: auto;
}

.work-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.work-card:hover img {
    transform: scale(1.04);
}

.work-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(17, 17, 24, 0.85) 0%, transparent 55%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
    color: #fff;
}

.work-tag {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 0.35rem;
}

.work-overlay h3 {
    color: #fff;
    font-size: 1.25rem;
    margin: 0;
}

.work-overlay p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    margin: 0.25rem 0 0;
}

/* ── Post cards ── */

.post-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.post-card {
    background: var(--bg);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: box-shadow 0.25s;
}

.post-card:hover {
    box-shadow: var(--shadow);
}

.post-card-image {
    display: block;
    overflow: hidden;
}

.post-card-image img {
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
    transition: transform 0.35s;
}

.post-card:hover .post-card-image img {
    transform: scale(1.04);
}

.post-card-body {
    padding: 1.25rem 1.5rem 1.5rem;
}

.post-card-body h3 {
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
}

.post-card-body h3 a {
    color: var(--text);
    text-decoration: none;
}

.post-card-body h3 a:hover {
    color: var(--accent);
}

.post-card-body p {
    color: var(--muted);
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.post-meta {
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.read-more {
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--accent);
}

.post-taxonomy,
.blog-filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.75rem;
}

.post-header .post-taxonomy {
    margin-bottom: 1rem;
}

.taxonomy-pill {
    display: inline-block;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    background: var(--accent-light);
    color: var(--accent);
    border: 1px solid transparent;
    transition: background 0.2s, border-color 0.2s;
}

.taxonomy-pill:hover {
    background: #ddd9fc;
    color: var(--accent-hover);
}

.taxonomy-pill.is-active {
    background: var(--accent);
    color: #fff;
}

.taxonomy-pill-category {
    background: #ede9fe;
    color: #5b21b6;
}

.taxonomy-pill-category:hover {
    background: #ddd6fe;
    color: #4c1d95;
}

.taxonomy-pill-category.is-active {
    background: #5b21b6;
    color: #fff;
}

.taxonomy-pill-tag {
    background: #f1f5f9;
    color: #475569;
}

.taxonomy-pill-tag:hover {
    background: #e2e8f0;
    color: #334155;
}

.taxonomy-pill-tag.is-active {
    background: #334155;
    color: #fff;
}

.blog-filters-section {
    padding: 1.5rem 0 0;
}

.blog-filters {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.25rem 1.5rem;
}

.blog-filter-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
    margin-bottom: 0.5rem;
}

.blog-filters--minimal {
    background: transparent;
    border: none;
    padding: 0;
    gap: 0.75rem;
}

.blog-filters--minimal .blog-filter-label {
    font-size: 0.7rem;
    margin-bottom: 0.35rem;
}

.blog-filters--tabs {
    gap: 0;
    padding: 0;
    overflow: hidden;
}

.blog-filters--tabs .blog-filter-group {
    border-bottom: 1px solid var(--border);
}

.blog-filters--tabs .blog-filter-group:last-child {
    border-bottom: none;
}

.blog-filters--tabs .blog-filter-pills {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 0 0.5rem;
    scrollbar-width: none;
}

.blog-filters--tabs .blog-filter-pills::-webkit-scrollbar {
    display: none;
}

.blog-filters--tabs .taxonomy-pill {
    border-radius: 0;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    padding: 0.85rem 1rem;
    font-size: 0.85rem;
}

.blog-filters--tabs .taxonomy-pill:hover {
    background: transparent;
    color: var(--accent);
}

.blog-filters--tabs .taxonomy-pill.is-active {
    background: transparent;
    color: var(--accent);
    border-bottom-color: var(--accent);
}

.blog-filters--tabs .taxonomy-pill-category.is-active {
    background: transparent;
    color: #5b21b6;
    border-bottom-color: #5b21b6;
}

.blog-filters--tabs .taxonomy-pill-tag.is-active {
    background: transparent;
    color: var(--text);
    border-bottom-color: var(--text);
}

.blog-filters--compact {
    padding: 0.85rem 1rem;
}

.blog-filters--compact .blog-filter-pills {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 0.25rem;
    scrollbar-width: thin;
}

.blog-filters--compact .taxonomy-pill {
    flex-shrink: 0;
    font-size: 0.72rem;
    padding: 0.2rem 0.55rem;
}

.blog-filters--dropdown {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: flex-end;
}

.blog-filter-dropdown {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-width: min(100%, 220px);
    flex: 1;
}

.blog-filter-select {
    width: 100%;
    padding: 0.65rem 0.85rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    font: inherit;
    font-size: 0.9rem;
    background: var(--bg);
    color: var(--text);
    cursor: pointer;
}

.blog-filter-select:focus {
    outline: none;
    border-color: var(--accent);
}

/* ── Blog page ── */

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

.blog-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: box-shadow 0.25s;
}

.blog-card:hover {
    box-shadow: var(--shadow-lg);
}

.blog-card-featured {
    grid-column: span 2;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
}

.blog-card-featured .blog-card-image img {
    height: 100%;
    aspect-ratio: unset;
    min-height: 320px;
}

.blog-card-image {
    display: block;
    overflow: hidden;
}

.blog-card-image img {
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
    transition: transform 0.35s;
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.03);
}

.blog-card-body {
    padding: 1.75rem 2rem;
}

.blog-card-body h2 {
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
}

.blog-card-featured .blog-card-body h2 {
    font-size: 1.6rem;
}

.blog-card-body h2 a {
    color: var(--text);
    text-decoration: none;
}

.blog-card-body h2 a:hover {
    color: var(--accent);
}

.blog-card-body p {
    color: var(--muted);
    font-size: 0.95rem;
}

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

.blog-grid--grid-3 {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.blog-grid--grid-4 {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

.blog-grid--grid-4 .blog-card-body {
    padding: 1.25rem 1.5rem;
}

.blog-grid--grid-4 .blog-card-body h2 {
    font-size: 1rem;
}

.blog-grid--stack {
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.blog-grid--list {
    grid-template-columns: 1fr;
    gap: 1rem;
}

.blog-grid--list .blog-card {
    display: grid;
    grid-template-columns: 220px 1fr;
    align-items: stretch;
}

.blog-grid--list .blog-card-image img {
    height: 100%;
    min-height: 140px;
    aspect-ratio: unset;
}

.blog-grid--list .blog-card-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.blog-grid--magazine {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.blog-card-hero {
    grid-column: 1 / -1;
}

.blog-card-hero .blog-card-image img {
    aspect-ratio: 21/9;
    max-height: 420px;
}

.blog-card-hero .blog-card-body h2 {
    font-size: 1.75rem;
}

.blog-pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    margin-top: 2.5rem;
}

.blog-page-link,
.blog-page-current {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0 0.75rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
}

.blog-page-link {
    color: var(--text);
    border: 1px solid var(--border);
    background: var(--surface);
    transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.blog-page-link:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.blog-page-current {
    background: var(--accent);
    color: #fff;
}

/* ── Single post ── */

.post-single {
    padding-bottom: 4rem;
}

.post-header {
    background: var(--dark);
    color: #fff;
    padding: 4rem 0 3rem;
}

.post-header h1 {
    color: #fff;
    max-width: 760px;
}

.post-header .post-meta a {
    color: rgba(255, 255, 255, 0.6);
}

.post-excerpt {
    color: rgba(255, 255, 255, 0.72);
    font-size: 1.15rem;
    max-width: 640px;
}

.post-featured-image {
    margin: -2rem 0 2.5rem;
}

.post-featured-image img {
    width: 100%;
    max-height: 520px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.photo-credit {
    margin-top: 0.65rem;
    font-size: 0.8rem;
    color: var(--muted);
    text-align: right;
}

.photo-credit a {
    color: var(--muted);
}

.post-content {
    max-width: 720px;
    font-size: 1.05rem;
    line-height: 1.75;
}

.post-content h1 {
    margin-top: 2.5rem;
    font-size: 2rem;
    line-height: 1.2;
}

.post-content h2 {
    margin-top: 2.5rem;
    font-size: 1.6rem;
    line-height: 1.25;
}

.post-content h3 {
    margin-top: 2rem;
    font-size: 1.25rem;
    line-height: 1.3;
}

.post-content p,
.post-content ul,
.post-content ol {
    margin-bottom: 1.25rem;
}

.post-content ul,
.post-content ol {
    padding-left: 1.4rem;
}

.post-content li {
    margin-bottom: 0.35rem;
}

.post-content a {
    font-weight: 500;
}

.post-content blockquote {
    margin: 1.75rem 0;
    padding: 1rem 1.25rem;
    border-left: 4px solid #6366f1;
    background: rgba(99, 102, 241, 0.06);
    border-radius: 0 12px 12px 0;
    color: #312e81;
    font-style: italic;
}

.post-content pre,
.post-content pre.ql-syntax {
    margin: 1.5rem 0;
    padding: 1rem 1.15rem;
    background: #1e1e2e;
    color: #e8e8ef;
    border-radius: 12px;
    overflow-x: auto;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.9rem;
    line-height: 1.55;
}

.post-content code {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.9em;
    background: rgba(99, 102, 241, 0.08);
    padding: 0.15rem 0.4rem;
    border-radius: 6px;
}

.post-content pre code {
    background: none;
    padding: 0;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 1.5rem 0;
    box-shadow: var(--shadow);
}

.post-content .ql-align-center {
    text-align: center;
}

.post-content .ql-align-right {
    text-align: right;
}

.post-content .ql-align-justify {
    text-align: justify;
}

.post-content img.ql-align-center {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.post-content img.ql-align-right {
    display: block;
    margin-left: auto;
    margin-right: 0;
}

.post-footer {
    max-width: 720px;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.post-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.post-nav-spacer {
    display: block;
}

.post-nav-link {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 1rem 1.15rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    text-decoration: none;
    color: var(--text);
    box-shadow: var(--shadow);
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
}

.post-nav-link:hover {
    border-color: rgba(91, 92, 246, 0.35);
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.post-nav-prev {
    text-align: left;
}

.post-nav-next {
    text-align: right;
    margin-left: auto;
}

.post-nav-label {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
}

.post-nav-prev .post-nav-label::before {
    content: '← ';
}

.post-nav-next .post-nav-label::after {
    content: ' →';
}

.post-nav-title {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.35;
    color: var(--accent);
}

.post-nav-link:hover .post-nav-title {
    color: var(--accent-hover);
}

.post-back-link {
    display: inline-block;
}

/* ── Services page ── */

.services-list {
    display: flex;
    flex-direction: column;
    gap: 5rem;
}

.service-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
    align-items: center;
}

.service-block-reverse {
    direction: rtl;
}

.service-block-reverse > * {
    direction: ltr;
}

.service-block-image img {
    border-radius: var(--radius-lg);
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    box-shadow: var(--shadow);
}

.service-number {
    display: block;
    font-family: var(--font-serif);
    font-size: 3rem;
    color: var(--accent);
    opacity: 0.25;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.service-block h2 {
    margin-bottom: 1rem;
}

.service-block p {
    color: var(--muted);
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 1.25rem 0;
}

.feature-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text);
    font-size: 0.95rem;
}

.feature-list li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--accent);
}

.service-price {
    margin-top: 1.5rem;
    font-size: 0.95rem;
    color: var(--muted);
}

.service-price strong {
    color: var(--text);
    font-size: 1.1rem;
}

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

.process-step {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
}

.process-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--accent-light);
    color: var(--accent);
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.process-step h3 {
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 1rem;
}

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

/* ── Contact ── */

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 4rem;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.contact-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem 1.5rem;
}

.contact-card h3 {
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
    margin-bottom: 0.35rem;
}

.contact-card a {
    font-weight: 600;
    text-decoration: none;
}

.contact-hours {
    font-size: 0.85rem;
    color: var(--muted);
    margin: 0.25rem 0 0;
}

.contact-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-top: 0.5rem;
}

.contact-image img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
}

.contact-form {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow);
}

.contact-main .contact-form-wrap {
    margin: 0;
}

.contact-main .contact-form {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
}

.contact-form-wrap .contact-notice {
    margin-bottom: 1rem;
}

.contact-form-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 1.25rem;
}

.form-group--full {
    grid-column: 1 / -1;
}

.form-group--half {
    grid-column: span 1;
}

.form-group--checkbox {
    display: block;
}

.form-group--checkbox-group {
    border: 0;
    padding: 0;
    margin: 0 0 1.25rem;
    min-width: 0;
}

.contact-main .form-group--checkbox-group legend {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    padding: 0;
    margin-bottom: 0.75rem;
}

.contact-checkbox-group-options {
    display: grid;
    gap: 0.75rem;
}

.contact-checkbox-group-options--vertical {
    grid-template-columns: 1fr;
}

.contact-checkbox-group-options--horizontal {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.contact-checkbox-option {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    width: 100%;
    min-height: 3rem;
    padding: 0.85rem 1rem;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg);
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.3;
    cursor: pointer;
    margin: 0;
    transition: border-color 0.2s, background 0.2s, transform 0.2s;
}

.contact-checkbox-option:hover {
    border-color: #cbd5e1;
}

.contact-checkbox-option:has(input:checked) {
    border-color: var(--accent);
    background: var(--accent-light);
    transform: scale(1.02);
}

.contact-checkbox-option:focus-within {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(224, 0, 0, 0.12);
}

.contact-checkbox-option input {
    accent-color: var(--accent);
    flex-shrink: 0;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: var(--text);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    font: inherit;
    font-size: 0.95rem;
    background: var(--bg);
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(215, 0, 0, 0.12);
}

/* ── CTA banner ── */

.cta-banner {
    background: var(--accent);
    padding: 4rem 0;
}

.cta-banner-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.cta-banner h2 {
    color: #fff;
    margin-bottom: 0.5rem;
}

.cta-banner p {
    color: rgba(255, 255, 255, 0.82);
    margin: 0;
    max-width: 480px;
}

/* ── Global site CTA (above footer) ── */

.site-cta {
    position: relative;
    overflow: hidden;
    padding: 5rem 0;
}

.site-cta-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}

.site-cta-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, rgba(54, 54, 54, 0.97) 0%, rgba(54, 54, 54, 0.88) 45%, rgba(54, 54, 54, 0.72) 100%);
}

.site-cta-accent {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--accent) 0%, #ff4444 50%, var(--accent) 100%);
}

.site-cta-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 3rem;
    align-items: center;
}

.site-cta-eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent);
    margin: 0 0 0.75rem;
}

.site-cta-content h2 {
    color: #fff;
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    margin-bottom: 1rem;
    max-width: 520px;
}

.site-cta-lead {
    color: rgba(255, 255, 255, 0.78);
    font-size: 1.05rem;
    line-height: 1.7;
    margin: 0 0 1.5rem;
    max-width: 480px;
}

.site-cta-perks {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.25rem;
}

.site-cta-perks li {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

.site-cta-perks li::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
    flex-shrink: 0;
    box-shadow: 0 0 0 3px rgba(215, 0, 0, 0.25);
}

.site-cta-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.85rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(8px);
}

.site-cta-actions .button {
    text-align: center;
    justify-content: center;
}

.site-cta-link {
    display: block;
    text-align: center;
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    margin-top: 0.25rem;
    transition: color 0.2s;
}

.site-cta-link:hover {
    color: #fff;
}

@media (max-width: 900px) {
    .site-cta-inner {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .site-cta-actions {
        max-width: 400px;
    }
}

@media (max-width: 640px) {
    .site-cta {
        padding: 3.5rem 0;
    }

    .site-cta-actions {
        padding: 1.5rem;
        max-width: none;
    }
}

/* ── Newsletter ── */

.newsletter-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.newsletter-form {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
}

.newsletter-form input {
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    font: inherit;
    min-width: 240px;
    background: var(--bg);
}

/* ── Footer ── */

.site-footer {
    position: relative;
    background: var(--dark);
    color: rgba(255, 255, 255, 0.65);
    margin-top: 0;
    overflow: hidden;
}

.site-footer--map .footer-map-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.35;
}

.site-footer--map .footer-map-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(54, 54, 54, 0.92) 0%, rgba(54, 54, 54, 0.97) 100%);
}

.site-footer--map .footer-grid,
.site-footer--map .footer-bottom {
    position: relative;
    z-index: 1;
}

.footer-contact-line {
    font-size: 0.9rem;
    margin: 0 0 0.35rem;
}

.footer-pin {
    margin-right: 0.25rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    padding: 4rem 0 3rem;
}

.footer-brand .site-logo {
    margin-bottom: 0.75rem;
}

.footer-brand .logo-text {
    color: #fff;
}

.footer-brand p {
    font-size: 0.9rem;
    max-width: 280px;
}

.footer-links,
.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-links a,
.footer-contact a {
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer-links a:hover,
.footer-contact a:hover {
    color: #fff;
}

.footer-contact p {
    font-size: 0.9rem;
    margin: 0;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.25rem 0;
}

.footer-bottom p {
    font-size: 0.85rem;
    margin: 0;
    color: rgba(255, 255, 255, 0.4);
}

/* ── 404 ── */

.error-page {
    text-align: center;
    padding: 6rem 2rem;
}

.error-page h1 {
    font-size: 6rem;
    color: var(--accent);
    opacity: 0.3;
    margin-bottom: 0.5rem;
}

.empty-state {
    text-align: center;
    padding: 3rem;
    color: var(--muted);
}

/* ── Scroll reveal & motion ── */

.reveal {
    opacity: 0;
    transform: translateY(32px) scale(0.98);
    filter: blur(4px);
    transition: opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.75s cubic-bezier(0.22, 1, 0.36, 1),
                filter 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-visible {
    opacity: 1;
    transform: none;
    filter: blur(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

@keyframes hero-fade-up {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

.hero-animate > * {
    opacity: 0;
    animation: hero-fade-up 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero-animate > *:nth-child(1) { animation-delay: 0.1s; }
.hero-animate > *:nth-child(2) { animation-delay: 0.22s; }
.hero-animate > *:nth-child(3) { animation-delay: 0.34s; }
.hero-animate > *:nth-child(4) { animation-delay: 0.46s; }
.hero-animate > *:nth-child(5) { animation-delay: 0.58s; }

.hero-bg {
    animation: hero-ken-burns 20s ease-in-out infinite alternate;
}

@keyframes hero-ken-burns {
    from { transform: scale(1); }
    to { transform: scale(1.06); }
}

@keyframes orb-float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -20px) scale(1.05); }
    66% { transform: translate(-20px, 15px) scale(0.95); }
}

@keyframes shimmer-slide {
    0%, 100% { background-position: 200% 0; }
    50% { background-position: -200% 0; }
}

@keyframes gradient-flow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes pulse-ring {
    0% { box-shadow: 0 0 0 0 var(--accent-glow); }
    70% { box-shadow: 0 0 0 12px rgba(224, 0, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(224, 0, 0, 0); }
}

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        filter: none;
        transition: none;
    }

    .page-decor-orb,
    .benefits-bar,
    .benefits-bar::after,
    .hero-slide-bg {
        animation: none;
    }

    .button::before {
        display: none;
    }

    .hero-animate > * {
        opacity: 1;
        animation: none;
    }

    .hero-bg {
        animation: none;
    }
}

/* ── Trust bar ── */

.trust-bar {
    padding: 2rem 0;
    border-bottom: 1px solid var(--border);
    background: var(--surface);
}

.trust-bar-label {
    text-align: center;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted);
    margin-bottom: 1.25rem;
}

.trust-logos {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 2rem 3rem;
}

.trust-logo {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    color: var(--muted);
    opacity: 0.55;
    transition: opacity 0.25s, color 0.25s;
}

.trust-logo:hover {
    opacity: 1;
    color: var(--text);
}

/* ── Testimonials ── */

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.testimonial-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.3s, transform 0.3s;
}

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

.testimonial-quote {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text);
    margin-bottom: 1.5rem;
    flex: 1;
}

.testimonial-quote::before {
    content: "\201C";
    display: block;
    font-family: var(--font-serif);
    font-size: 2.5rem;
    line-height: 1;
    color: var(--accent);
    opacity: 0.4;
    margin-bottom: 0.5rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.testimonial-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--accent-light);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.testimonial-name {
    font-weight: 600;
    font-size: 0.9rem;
    margin: 0;
}

.testimonial-role {
    font-size: 0.8rem;
    color: var(--muted);
    margin: 0;
}

/* ── Values grid ── */

.values-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.value-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem 1.5rem;
    text-align: center;
    transition: box-shadow 0.3s, transform 0.3s, border-color 0.3s;
}

.value-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    border-color: var(--accent-light);
}

.value-icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 1rem;
    background: var(--accent-light);
    color: var(--accent);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

.value-card h3 {
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

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

/* ── Team grid ── */

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

.team-card {
    text-align: center;
}

.team-photo {
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 1rem;
    aspect-ratio: 3/4;
    background: var(--border);
}

.team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.team-card:hover .team-photo img {
    transform: scale(1.04);
}

.team-card h3 {
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 1.05rem;
    margin-bottom: 0.25rem;
}

.team-role {
    font-size: 0.85rem;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.team-bio {
    font-size: 0.9rem;
    color: var(--muted);
    margin: 0;
    line-height: 1.6;
}

/* ── Timeline ── */

.timeline {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    position: relative;
}

.timeline::before {
    content: "";
    position: absolute;
    top: 28px;
    left: 12.5%;
    right: 12.5%;
    height: 2px;
    background: var(--border);
}

.timeline-item {
    text-align: center;
    padding: 0 1rem;
    position: relative;
}

.timeline-year {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: var(--accent);
    color: #fff;
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 1.25rem;
    position: relative;
    z-index: 1;
}

.timeline-item h3 {
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.35rem;
}

.timeline-item p {
    font-size: 0.875rem;
    color: var(--muted);
    margin: 0;
}

/* ── FAQ accordion ── */

.faq-list {
    max-width: 760px;
    margin: 0 auto;
}

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

.faq-item:first-child {
    border-top: 1px solid var(--border);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 0;
    background: none;
    border: none;
    font: inherit;
    font-weight: 600;
    font-size: 1rem;
    text-align: left;
    color: var(--text);
    cursor: pointer;
    transition: color 0.2s;
}

.faq-question:hover {
    color: var(--accent);
}

.faq-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--accent-light);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: transform 0.3s, background 0.2s;
}

.faq-item.is-open .faq-icon {
    transform: rotate(45deg);
    background: var(--accent);
    color: #fff;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
}

.faq-item.is-open .faq-answer {
    max-height: 500px;
    padding-bottom: 1.25rem;
}

.faq-answer p {
    color: var(--muted);
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.7;
}

/* ── Why choose us ── */

.why-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.why-card {
    display: flex;
    gap: 1.25rem;
    padding: 1.75rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: box-shadow 0.3s, transform 0.3s;
}

.why-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.why-num {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    background: var(--accent-light);
    color: var(--accent);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
}

.why-card h3 {
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.35rem;
}

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

@media (max-width: 1024px) {
    .testimonial-grid,
    .values-grid,
    .team-grid,
    .why-grid {
        grid-template-columns: 1fr 1fr;
    }

    .timeline {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .timeline::before {
        display: none;
    }
}

@media (max-width: 640px) {
    .testimonial-grid,
    .values-grid,
    .team-grid,
    .why-grid,
    .timeline {
        grid-template-columns: 1fr;
    }
}

/* ── Andy Clip components ── */

.hero-carousel {
    position: relative;
    background: var(--dark);
    overflow: hidden;
}

.hero-carousel-track {
    position: relative;
    min-height: clamp(380px, 55vh, 520px);
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease, visibility 0.6s;
    display: flex;
    align-items: center;
}

.hero-slide.is-active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

.hero-slide-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}

.hero-slide-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(54, 54, 54, 0.92) 0%, rgba(54, 54, 54, 0.65) 55%, rgba(54, 54, 54, 0.35) 100%);
}

.hero-slide-content {
    position: relative;
    z-index: 1;
    padding: 4rem 0;
    max-width: 640px;
    color: #fff;
}

.hero-slide-content h2 {
    color: #fff;
    font-size: clamp(1.5rem, 3vw, 2.1rem);
    margin: 0;
}

.hero-slide-list {
    margin: 0;
    padding-left: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
}

.hero-slide-list li {
    margin-bottom: 0.35rem;
}

.hero-carousel-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1rem 0 1.5rem;
    background: var(--dark-soft);
}

.carousel-btn {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: var(--radius);
    background: transparent;
    color: #fff;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}

.carousel-btn:hover {
    background: var(--accent);
    border-color: var(--accent);
}

.carousel-dots {
    display: flex;
    gap: 0.5rem;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.carousel-dot.is-active {
    background: var(--accent);
    transform: scale(1.2);
}

.section-intro--mesh {
    padding: 4rem 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(224, 0, 0, 0.04), transparent 40%),
        radial-gradient(circle at 80% 20%, rgba(42, 42, 42, 0.03), transparent 40%);
}

.intro-block {
    text-align: center;
    max-width: 720px;
    margin: 0 auto;
}

.intro-logo {
    margin-bottom: 1.5rem;
}

.intro-logo img {
    margin: 0 auto;
    max-height: 180px;
    width: auto;
}

.content-narrow {
    max-width: 760px;
    margin: 0 auto;
}

.content-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

.faq-list--wide {
    max-width: 900px;
}

.install-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 820px;
    margin: 0 auto;
}

.install-step {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1.25rem;
    align-items: start;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow);
}

.install-step-icon img {
    width: 64px;
    height: 64px;
}

.install-step-body h2 {
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
}

.install-step-body p {
    color: var(--muted);
    margin: 0;
    font-size: 0.95rem;
}

.contact-layout--single {
    max-width: 760px;
    margin: 0 auto;
}

.contact-form--wide {
    width: 100%;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.form-row .form-group {
    margin-bottom: 0;
}

.form-row + .form-group,
.form-row + .form-row,
.form-row + fieldset {
    margin-top: 1.25rem;
}

.form-checkboxes {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem 1.5rem;
    margin: 1.25rem 0;
}

.form-checkboxes legend {
    font-weight: 700;
    font-size: 0.875rem;
    padding: 0 0.25rem;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    margin-bottom: 0.75rem;
    font-size: 0.925rem;
    cursor: pointer;
}

.checkbox-label:last-child {
    margin-bottom: 0;
}

.checkbox-label input {
    margin-top: 0.2rem;
    flex-shrink: 0;
}

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

.form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 0.5rem;
}

@media (max-width: 640px) {
    .form-row {
        grid-template-columns: 1fr;
    }

    .header-phone--desktop {
        display: none;
    }

    .install-step {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .install-step-icon img {
        margin: 0 auto;
    }
}

@media (min-width: 641px) {
    .header-phone--mobile {
        display: none;
    }
}

/* ── Top bar ── */

.top-bar {
    background: var(--dark-soft);
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 0.45rem 0;
}

.top-bar-tag {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.top-bar-phone {
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    margin-left: auto;
}

.top-bar-phone:hover {
    color: var(--accent);
}

/* ── Benefits bar ── */

.benefits-bar {
    background: var(--gradient-accent);
    background-size: 200% 200%;
    animation: gradient-flow 8s ease infinite;
    color: #fff;
    padding: 1.25rem 0;
    position: relative;
    overflow: hidden;
}

.benefits-bar::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
    animation: shimmer-slide 4s ease-in-out infinite;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    text-align: center;
    position: relative;
    z-index: 1;
}

.benefit-item strong {
    display: block;
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1.1;
}

.benefit-item span {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    opacity: 0.9;
    margin-top: 0.2rem;
}

/* ── Home accordion ── */

.home-accordion {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 900px;
    margin: 0 auto;
}

.home-accordion-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
}

.home-accordion-item.is-open {
    box-shadow: var(--shadow-lg);
    transform: scale(1.01);
}

.home-accordion-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: none;
    border: none;
    font: inherit;
    font-weight: 700;
    font-size: 1.05rem;
    text-align: left;
    color: var(--text);
    cursor: pointer;
    transition: color 0.2s, background 0.2s;
}

.home-accordion-trigger:hover,
.home-accordion-item.is-open .home-accordion-trigger {
    color: var(--accent);
    background: var(--accent-light);
}

.home-accordion-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--accent-light);
    position: relative;
    transition: transform 0.3s, background 0.2s;
}

.home-accordion-icon::before,
.home-accordion-icon::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    background: var(--accent);
    transform: translate(-50%, -50%);
    border-radius: 1px;
}

.home-accordion-icon::before {
    width: 12px;
    height: 2px;
}

.home-accordion-icon::after {
    width: 2px;
    height: 12px;
    transition: opacity 0.2s;
}

.home-accordion-item.is-open .home-accordion-icon {
    transform: rotate(180deg);
    background: var(--accent);
}

.home-accordion-item.is-open .home-accordion-icon::before,
.home-accordion-item.is-open .home-accordion-icon::after {
    background: #fff;
}

.home-accordion-item.is-open .home-accordion-icon::after {
    opacity: 0;
}

.home-accordion-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.home-accordion-item.is-open .home-accordion-panel {
    max-height: 1200px;
}

.home-accordion-inner {
    padding: 0 1.5rem 1.5rem;
}

.home-accordion-inner img {
    width: 100%;
    border-radius: var(--radius);
    margin-bottom: 1rem;
}

.home-accordion-inner p {
    color: var(--muted);
    font-size: 0.95rem;
}

/* ── Pull quote ── */

.pull-quote {
    margin: 1.5rem 0;
    padding: 1rem 1.25rem;
    border-left: 4px solid var(--accent);
    background: var(--accent-light);
    font-size: 1.15rem;
    font-weight: 600;
    font-style: italic;
    color: var(--text);
}

.split-image--portrait img {
    aspect-ratio: 3/4;
    object-fit: cover;
}

/* ── FAQ columns ── */

.faq-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 2.5rem;
}

/* ── Install grid ── */

.install-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.install-card {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem 1.5rem 1.5rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.3s,
                border-color 0.3s;
}

.install-card::before {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1px;
    background: var(--gradient-accent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s;
}

.install-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.install-card:hover::before {
    opacity: 1;
}

.install-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    margin: 0 auto 1.25rem;
    background: var(--accent-light);
    border-radius: 50%;
    color: var(--accent);
    transition: background 0.3s, color 0.3s, transform 0.3s;
}

.install-card-icon svg {
    width: 40px;
    height: 40px;
}

.install-card:hover .install-card-icon {
    background: var(--accent);
    color: #fff;
    transform: scale(1.08);
}

.install-card h2 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.install-card p {
    color: var(--muted);
    font-size: 0.875rem;
    margin: 0;
    line-height: 1.6;
}

.install-banner {
    position: relative;
    min-height: 320px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.install-banner-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}

.install-banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(54, 54, 54, 0.92) 0%, rgba(54, 54, 54, 0.6) 100%);
}

.install-banner-content {
    position: relative;
    z-index: 1;
    color: #fff;
    max-width: 520px;
    padding: 4rem 0;
}

.install-banner-content h2 {
    color: #fff;
    margin-bottom: 0.75rem;
}

.install-banner-content p {
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 1.5rem;
}

/* ── Scroll to top ── */

.scroll-top {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 90;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(215, 0, 0, 0.35);
    transition: background 0.2s, transform 0.2s, opacity 0.2s;
}

.scroll-top:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
}

.scroll-top[hidden] {
    display: none;
}

.button:hover {
    box-shadow: 0 4px 16px rgba(215, 0, 0, 0.25);
}

@media (max-width: 1024px) {
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .faq-columns {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

.split-image--glow img {
    box-shadow: var(--shadow-lg), 0 0 40px rgba(224, 0, 0, 0.12);
}

@media (max-width: 640px) {
    .top-bar-tag,
    .top-bar-location {
        display: none;
    }

    .top-bar-phone {
        margin-left: 0;
        width: 100%;
        text-align: center;
    }

    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .benefit-item strong {
        font-size: 1.4rem;
    }

    .contact-page-grid {
        grid-template-columns: 1fr;
    }
}

/* ── Photo band sections ── */

.section-photo-band {
    position: relative;
    padding: 5rem 0;
    background-image: var(--band-photo);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    overflow: hidden;
}

.section-photo-band--compact {
    padding: 4rem 0;
}

.section-photo-band-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(26, 26, 26, 0.88) 0%, rgba(61, 10, 10, 0.75) 100%);
}

.section-photo-band-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: #fff;
    max-width: 640px;
    margin: 0 auto;
}

.section-photo-band-content h2 {
    color: #fff;
    margin-bottom: 0.75rem;
}

.section-photo-band-content p {
    color: rgba(255, 255, 255, 0.82);
    margin-bottom: 1.5rem;
}

/* ── Contact page ── */

.contact-page {
    padding-top: 0;
    margin-top: -3rem;
    position: relative;
    z-index: 2;
}

.contact-page-grid {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 2.5rem;
    align-items: start;
}

.contact-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: sticky;
    top: 7rem;
}

.contact-info-stack {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.contact-info-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.15rem 1.25rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    text-decoration: none;
    color: inherit;
    box-shadow: var(--shadow);
    transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}

.contact-info-card:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(224, 0, 0, 0.25);
}

.contact-info-card--featured {
    background: var(--gradient-dark);
    border-color: rgba(224, 0, 0, 0.3);
    color: #fff;
}

.contact-info-card--featured h3,
.contact-info-card--featured p {
    color: #fff;
}

.contact-info-card--featured .contact-info-icon {
    background: var(--accent);
    color: #fff;
}

.contact-info-card--static {
    cursor: default;
}

.contact-info-card--static:hover {
    transform: none;
}

.contact-info-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-light);
    border-radius: 10px;
    font-size: 1.1rem;
}

.contact-info-card h3 {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
    margin: 0 0 0.2rem;
}

.contact-info-card p {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0;
    color: var(--text);
}

.contact-sidebar-photo {
    margin: 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.contact-sidebar-photo img {
    width: 100%;
    aspect-ratio: 4/5;
    object-fit: cover;
    transition: transform 0.5s;
}

.contact-sidebar-photo:hover img {
    transform: scale(1.04);
}

.contact-sidebar-photo figcaption {
    padding: 0.75rem 1rem;
    font-size: 0.8rem;
    color: var(--muted);
    background: var(--surface);
    text-align: center;
}

.contact-main {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
}

.contact-form-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.contact-form-header h2 {
    font-size: 1.5rem;
    margin-bottom: 0.35rem;
}

.contact-form-header p {
    color: var(--muted);
    margin: 0;
}

.contact-form--modern .form-section {
    border: none;
    margin: 0 0 1.75rem;
    padding: 0;
}

.contact-form--modern .form-section legend {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    padding: 0;
    margin-bottom: 1rem;
}

.contact-form--modern .form-section--checks legend {
    margin-bottom: 0.75rem;
}

.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

.checkbox-card {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.85rem 1rem;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s, transform 0.2s;
    font-size: 0.85rem;
    font-weight: 600;
}

.checkbox-card:has(input:checked) {
    border-color: var(--accent);
    background: var(--accent-light);
    transform: scale(1.02);
}

.checkbox-card input {
    accent-color: var(--accent);
    flex-shrink: 0;
}

.checkbox-card-text {
    line-height: 1.3;
}

.home-accordion-item.is-open {
    transform: scale(1.01);
}

.faq-item.is-open .faq-question {
    color: var(--accent);
}

.faq-item.is-open .faq-icon {
    animation: pulse-ring 1.5s ease infinite;
}

.hero-slide.is-active .hero-slide-bg {
    animation: hero-ken-burns 22s ease-in-out infinite alternate;
}

@media (max-width: 900px) {
    .checkbox-grid {
        grid-template-columns: 1fr;
    }

    .contact-checkbox-group-options--horizontal {
        grid-template-columns: 1fr;
    }

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

    .form-group--half {
        grid-column: 1 / -1;
    }

    .contact-page-grid {
        grid-template-columns: 1fr;
    }

    .contact-sidebar {
        position: static;
    }

    .contact-main {
        padding: 1.75rem;
    }
}

@media (max-width: 640px) {
    .section-photo-band {
        background-attachment: scroll;
    }
}

/* Responsive layout rules: generated from Admin → Options → Layout breakpoints */

/* ── Admin styles ── */

.admin-body {
    font-family: var(--font-sans);
    background:
        radial-gradient(ellipse 80% 60% at 0% 0%, rgba(99, 102, 241, 0.12), transparent 55%),
        radial-gradient(ellipse 70% 50% at 100% 0%, rgba(236, 72, 153, 0.1), transparent 50%),
        radial-gradient(ellipse 60% 40% at 50% 100%, rgba(14, 165, 233, 0.08), transparent 55%),
        #f4f6fb;
    min-height: 100vh;
}

.admin-topbar {
    position: sticky;
    top: 0;
    z-index: 200;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(99, 102, 241, 0.12);
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
}

.admin-topbar-inner {
    width: min(1380px, calc(100% - 2.5rem));
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 0.65rem 0;
    min-height: 60px;
}

.admin-brand {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
    color: var(--text);
    flex-shrink: 0;
}

.admin-logo {
    display: block;
    width: 32px;
    height: 32px;
    border-radius: 8px;
}

.admin-brand-text {
    font-weight: 800;
    font-size: 1.05rem;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, #0ea5e9, #6366f1 50%, #a855f7);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.admin-topbar-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: auto;
    flex-shrink: 0;
}

.admin-login-body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.25rem;
}

.admin-login {
    width: min(420px, 100%);
}

.admin-login-card {
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 22px;
    box-shadow: 0 16px 48px rgba(15, 23, 42, 0.08);
    padding: 2rem 2rem 1.5rem;
}

.admin-login-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
    color: var(--text);
    font-weight: 800;
    margin-bottom: 1.25rem;
}

.admin-login-card h1 {
    font-family: var(--font-sans);
    font-size: 1.5rem;
    margin: 0 0 0.35rem;
    letter-spacing: -0.03em;
}

.admin-login-lead {
    margin: 0 0 1.25rem;
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.5;
}

.admin-login-form label:first-of-type {
    margin-top: 0;
}

.admin-login-submit {
    width: 100%;
    margin-top: 1.25rem;
}

.admin-login-footer {
    margin: 1.25rem 0 0;
    text-align: center;
    font-size: 0.88rem;
}

.admin-login-footer a {
    color: var(--muted);
    text-decoration: none;
}

.admin-login-footer a:hover {
    color: #6366f1;
}

.admin-topnav {
    display: flex;
    align-items: center;
    gap: 0.2rem;
    flex: 1;
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: none;
}

.admin-topnav::-webkit-scrollbar {
    display: none;
}

.admin-topnav-link {
    padding: 0.5rem 0.95rem;
    border-radius: 999px;
    text-decoration: none;
    color: var(--muted);
    font-size: 0.88rem;
    font-weight: 700;
    white-space: nowrap;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

.admin-topnav-link:hover {
    color: #312e81;
    background: rgba(99, 102, 241, 0.1);
}

.admin-topnav-link.is-active,
.admin-topnav-link.is-active:hover {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.3);
}

.admin-view-site {
    flex-shrink: 0;
}

.stats-retention-note {
    margin: -0.5rem 0 1.5rem;
}

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

.stats-summary-card {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.95);
    border-radius: 18px;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 8px 32px rgba(15, 23, 42, 0.06);
}

.stats-summary-label {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
    margin-bottom: 0.35rem;
}

.stats-summary-value {
    display: block;
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
    background: linear-gradient(135deg, #312e81, #6366f1 45%, #0ea5e9);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.stats-summary-meta {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.82rem;
    color: var(--muted);
}

.stats-daily-chart {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0.75rem;
    align-items: end;
    min-height: 180px;
}

.stats-daily-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    text-align: center;
}

.stats-daily-bar-wrap {
    width: 100%;
    height: 120px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.stats-daily-bar {
    width: min(48px, 80%);
    min-height: 4px;
    border-radius: 8px 8px 4px 4px;
    background: linear-gradient(180deg, #6366f1, #0ea5e9);
    transition: height 0.3s ease;
}

.stats-daily-count {
    font-weight: 800;
    font-size: 0.95rem;
}

.stats-daily-label {
    font-size: 0.72rem;
    color: var(--muted);
    line-height: 1.2;
}

.stats-share {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 110px;
}

.stats-share-bar {
    height: 6px;
    border-radius: 999px;
    background: linear-gradient(90deg, #6366f1, #a855f7);
    min-width: 4px;
}

.stats-share span {
    font-size: 0.8rem;
    color: var(--muted);
    font-weight: 700;
    white-space: nowrap;
}

.submissions-table .submission-date {
    font-size: 0.82rem;
    color: var(--muted);
    white-space: nowrap;
}

.submissions-table .submission-message {
    min-width: 220px;
    max-width: 360px;
    font-size: 0.9rem;
    line-height: 1.5;
}

.admin-container {
    width: min(1380px, calc(100% - 2.5rem));
    margin: 0 auto;
    padding: 1.75rem 0 2rem;
}

.admin-site-footer {
    width: min(1380px, calc(100% - 2.5rem));
    margin: 0 auto;
    padding: 1.5rem 0 2.5rem;
    border-top: 1px solid rgba(99, 102, 241, 0.12);
}

.admin-site-footer-brand {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem 1rem;
}

.admin-site-footer-copy {
    margin: 0;
    font-size: 0.88rem;
    color: var(--muted);
}

.admin-site-footer-version {
    display: inline-flex;
    align-items: center;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    background: rgba(99, 102, 241, 0.1);
    color: #6366f1;
}

.admin-site-footer-copy a {
    color: #6366f1;
    text-decoration: none;
    font-weight: 600;
}

.admin-site-footer-copy a:hover {
    text-decoration: underline;
}

.admin-cms-version-display {
    margin: 0;
    font-size: 1.75rem;
    font-weight: 700;
    color: #6366f1;
    letter-spacing: 0.02em;
}

.admin-cms-lead {
    margin: 0 0 1rem;
    color: var(--muted);
    line-height: 1.6;
}

.admin-cms-list {
    margin: 0 0 1rem;
    padding-left: 1.25rem;
    color: var(--muted);
    line-height: 1.7;
}

.admin-cms-list code {
    font-size: 0.88em;
}

.admin-cms-steps {
    margin: 0 0 1.25rem;
    padding-left: 1.25rem;
    color: var(--muted);
    line-height: 1.7;
}

.admin-cms-actions {
    margin: 0;
}

.admin-cms-update-panel {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 1rem;
    margin: 0;
}

.admin-cms-file-label {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    flex: 1 1 16rem;
}

.admin-cms-file-label input[type="file"] {
    padding: 0.65rem 0.85rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    font: inherit;
    background: #fff;
}

.admin-cms-help {
    background: linear-gradient(180deg, rgba(99, 102, 241, 0.04), #fff);
}

.admin-cms-download-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.admin-cms-download-card {
    padding: 1.25rem;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #fff;
}

.admin-cms-download-card h3 {
    margin: 0 0 0.65rem;
    font-size: 1.05rem;
}

.admin-cms-download-card .admin-cms-lead {
    font-size: 0.9rem;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 1.75rem;
    padding: 1.5rem 1.75rem;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(15, 23, 42, 0.06);
}

.admin-header h1 {
    font-family: var(--font-sans);
    font-weight: 800;
    font-size: clamp(1.6rem, 2.5vw, 2.1rem);
    margin: 0 0 0.35rem;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, #312e81, #6366f1 45%, #ec4899);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.admin-header p,
.table-meta {
    color: var(--muted);
    margin: 0;
}

.admin-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    align-items: center;
}

/* Admin buttons — explicit text/background pairs (overrides global link accent colour) */
.admin-body .button,
.admin-body a.button,
.admin-body button.button,
.admin-body label.button {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: #fff;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.35);
    border: none;
}

.admin-body .button:hover,
.admin-body a.button:hover,
.admin-body button.button:hover,
.admin-body label.button:hover {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

.admin-body .button:visited,
.admin-body a.button:visited {
    color: #fff;
}

.admin-body .button-primary,
.admin-body a.button-primary,
.admin-body button.button-primary,
.admin-body label.button-primary {
    background: linear-gradient(135deg, #0ea5e9 0%, #6366f1 100%);
    color: #fff;
    box-shadow: 0 4px 16px rgba(14, 165, 233, 0.35);
}

.admin-body .button-primary:hover,
.admin-body a.button-primary:hover,
.admin-body button.button-primary:hover,
.admin-body label.button-primary:hover {
    background: linear-gradient(135deg, #0284c7 0%, #4f46e5 100%);
    color: #fff;
}

.admin-body .button-primary:visited,
.admin-body a.button-primary:visited {
    color: #fff;
}

.admin-body .button-secondary,
.admin-body a.button-secondary,
.admin-body button.button-secondary,
.admin-body label.button-secondary {
    background: linear-gradient(135deg, #f8fafc 0%, #eef2ff 100%);
    color: #1e1b4b;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.admin-body .button-secondary:hover,
.admin-body a.button-secondary:hover,
.admin-body button.button-secondary:hover,
.admin-body label.button-secondary:hover {
    background: linear-gradient(135deg, #e0e7ff 0%, #ddd6fe 100%);
    color: #312e81;
}

.admin-body .button-secondary:visited,
.admin-body a.button-secondary:visited {
    color: #1e1b4b;
}

.admin-body .button-view-post,
.admin-body a.button-view-post,
.admin-body button.button-view-post {
    background: linear-gradient(135deg, #0ea5e9 0%, #06b6d4 100%);
    color: #fff;
    box-shadow: 0 4px 16px rgba(14, 165, 233, 0.35);
    border: none;
}

.admin-body .button-view-post:hover,
.admin-body a.button-view-post:hover,
.admin-body button.button-view-post:hover {
    background: linear-gradient(135deg, #0284c7 0%, #0891b2 100%);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.4);
}

.admin-body .button-view-post:visited,
.admin-body a.button-view-post:visited {
    color: #fff;
}

.admin-card {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.95);
    border-radius: 18px;
    box-shadow: 0 8px 32px rgba(15, 23, 42, 0.06);
    padding: 1.5rem 1.75rem;
    margin-bottom: 1.5rem;
}

.admin-section-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    margin-bottom: 1.25rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid var(--border);
}

.admin-section-head h2 {
    font-family: var(--font-sans);
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: -0.02em;
}

.admin-section-head p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--muted);
    font-weight: 600;
}

.admin-empty {
    color: var(--muted);
    margin: 0 0 1rem;
}

#admin-categories,
#admin-tags {
    scroll-margin-top: 5.5rem;
}

.posts-filter-form {
    margin-bottom: 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--border);
}

.posts-filter-row {
    display: grid;
    grid-template-columns: minmax(200px, 1.4fr) repeat(3, minmax(140px, 1fr)) auto;
    gap: 0.75rem;
    align-items: end;
}

.posts-filter-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-width: 0;
}

.posts-filter-label {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted);
}

.posts-filter-field input[type="search"],
.posts-filter-field select {
    width: 100%;
    padding: 0.65rem 0.85rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    font: inherit;
    background: #fff;
}

.posts-filter-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: center;
}

.admin-taxonomy-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
}

.admin-taxonomy-grid .admin-card {
    margin-bottom: 0;
}

.admin-table-wrap {
    overflow-x: auto;
    border-radius: 12px;
    border: 1px solid var(--border);
    margin-bottom: 1.25rem;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

.admin-table th,
.admin-table td {
    padding: 0.9rem 1rem;
    border-bottom: 1px solid var(--border);
    text-align: left;
    vertical-align: middle;
}

.admin-table th {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
    background: linear-gradient(180deg, #f8fafc, #f1f5f9);
    font-weight: 700;
}

.admin-table tbody tr:last-child td {
    border-bottom: none;
}

.admin-table tbody tr:hover {
    background: #fafbff;
}

.admin-table-compact th,
.admin-table-compact td {
    padding: 0.75rem 0.9rem;
}

.table-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.table-actions form {
    margin: 0;
}

.admin-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    transition: transform 0.15s, box-shadow 0.15s, filter 0.15s;
    white-space: nowrap;
}

.admin-body a.admin-btn:visited {
    color: inherit;
}

.admin-body a.admin-btn-view:visited,
.admin-body a.admin-btn-edit:visited,
.admin-body a.admin-btn-delete:visited,
.admin-body a.admin-btn-save:visited {
    color: #fff;
}

.admin-btn:hover {
    transform: translateY(-1px);
    filter: brightness(1.05);
}

.admin-btn-view {
    background: linear-gradient(135deg, #0ea5e9, #06b6d4);
    color: #fff;
    box-shadow: 0 3px 10px rgba(14, 165, 233, 0.35);
}

.admin-btn-view:hover,
.admin-btn-edit:hover,
.admin-btn-delete:hover,
.admin-btn-save:hover {
    color: #fff;
}

.admin-btn-edit {
    background: linear-gradient(135deg, #8b5cf6, #a855f7);
    color: #fff;
    box-shadow: 0 3px 10px rgba(139, 92, 246, 0.35);
}

.admin-btn-delete {
    background: linear-gradient(135deg, #f43f5e, #fb7185);
    color: #fff;
    box-shadow: 0 3px 10px rgba(244, 63, 94, 0.3);
}

.admin-btn-save {
    background: linear-gradient(135deg, #10b981, #34d399);
    color: #fff;
    box-shadow: 0 3px 10px rgba(16, 185, 129, 0.35);
}

.admin-btn-muted {
    background: #f1f5f9;
    color: #475569;
    box-shadow: none;
}

.admin-btn-muted:hover {
    color: #334155;
    background: #e2e8f0;
}

.admin-post-title-cell {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}

.admin-post-thumb {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid var(--border);
    background: #f1f5f9;
}

.admin-post-thumb-empty {
    display: block;
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
}

.admin-table-date {
    font-size: 0.78rem;
    color: var(--muted);
    white-space: nowrap;
}

.taxonomy-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.taxonomy-chip {
    display: inline-block;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
}

.taxonomy-chip-category {
    background: linear-gradient(135deg, #ede9fe, #e0e7ff);
    color: #5b21b6;
}

.taxonomy-chip-tag {
    background: linear-gradient(135deg, #fce7f3, #fdf2f8);
    color: #be185d;
}

.admin-add-form {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px dashed var(--border);
}

.admin-add-form h3 {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 700;
    margin: 0 0 0.75rem;
    color: var(--text);
}

.admin-add-form-row {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    align-items: center;
}

.admin-add-form-row input[type="text"] {
    flex: 1;
    min-width: 140px;
    padding: 0.65rem 0.85rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    font: inherit;
    background: #fff;
}

.admin-inline-form {
    display: flex;
    gap: 0.65rem;
    flex-wrap: wrap;
    align-items: center;
}

.admin-inline-form input[type="text"] {
    flex: 1;
    min-width: 120px;
    padding: 0.55rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    font: inherit;
}

.admin-table tr.is-editing td {
    background: #f5f3ff;
}

.link-button {
    background: none;
    border: none;
    color: var(--error);
    cursor: pointer;
    padding: 0;
    font: inherit;
    text-decoration: underline;
}

.status-badge {
    display: inline-block;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    font-size: 0.8rem;
    text-transform: capitalize;
    background: #f3f4f6;
}

.status-published {
    background: #dcfce7;
    color: var(--success);
}

.status-draft {
    background: #fef3c7;
    color: #92400e;
}

.notice {
    padding: 0.9rem 1rem;
    border-radius: var(--radius);
    margin-bottom: 1rem;
}

.notice-success {
    background: #dcfce7;
    color: var(--success);
}

.notice-error {
    background: #fee2e2;
    color: var(--error);
}

.notice ul {
    margin: 0;
    padding-left: 1.2rem;
}

.admin-form {
    background: rgba(255, 255, 255, 0.92);
    padding: 1.75rem;
    border-radius: 18px;
    box-shadow: 0 8px 32px rgba(15, 23, 42, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.95);
}

.admin-form.options-form {
    background: transparent;
    padding: 0;
    border: 0;
    box-shadow: none;
}

.options-layout {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
}

.admin-panel {
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(15, 23, 42, 0.05);
    overflow: hidden;
}

.admin-panel-wide {
    grid-column: 1 / -1;
}

.admin-panel-head {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.95), rgba(255, 255, 255, 0.6));
}

.admin-panel-head h2 {
    font-family: var(--font-sans);
    font-size: 1.05rem;
    font-weight: 800;
    margin: 0 0 0.2rem;
    letter-spacing: -0.02em;
}

.admin-panel-head p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--muted);
    line-height: 1.45;
}

.admin-panel-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    flex-shrink: 0;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    box-shadow: 0 6px 18px rgba(99, 102, 241, 0.28);
    position: relative;
}

.admin-panel-icon::after {
    content: '';
    position: absolute;
    inset: 11px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.92);
}

.admin-panel-icon-brand { background: linear-gradient(135deg, #0ea5e9, #6366f1); }
.admin-panel-icon-seo { background: linear-gradient(135deg, #10b981, #14b8a6); }
.admin-panel-icon-pages { background: linear-gradient(135deg, #f59e0b, #f97316); }
.admin-panel-icon-media { background: linear-gradient(135deg, #ec4899, #a855f7); }
.admin-panel-icon-contact { background: linear-gradient(135deg, #6366f1, #3b82f6); }
.admin-panel-icon-maint { background: linear-gradient(135deg, #64748b, #475569); }

.admin-panel-body {
    padding: 1.25rem 1.5rem 1.5rem;
}

.admin-panel-body > label:first-child,
.admin-panel-body > .toggle-row-panel:first-child {
    margin-top: 0;
}

.admin-panel-subheading {
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--muted);
    margin: 1.5rem 0 0.85rem;
}

.options-split {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
}

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

.page-meta-card {
    padding: 1rem 1.1rem;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #fafbff;
}

.page-meta-card .page-meta-heading {
    margin: 0 0 0.75rem;
    font-size: 0.92rem;
}

.page-meta-card label {
    margin-top: 0.65rem;
}

.thankyou-mode-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
    margin-bottom: 1rem;
}

.thankyou-mode-card {
    display: block;
    cursor: pointer;
}

.thankyou-mode-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.thankyou-mode-card-inner {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 1rem 1.1rem;
    border: 2px solid var(--border);
    border-radius: 14px;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.thankyou-mode-card-inner strong {
    font-size: 0.95rem;
}

.thankyou-mode-card-inner span {
    font-size: 0.82rem;
    color: var(--muted);
    line-height: 1.4;
}

.thankyou-mode-card input:checked + .thankyou-mode-card-inner {
    border-color: #6366f1;
    background: linear-gradient(180deg, #f5f3ff, #fff);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.toggle-row-panel {
    padding: 0.85rem 1rem;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid var(--border);
    margin-top: 0;
}

.blog-settings-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.layout-picker {
    border: none;
    margin: 0;
    padding: 0;
}

.layout-picker-legend {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.layout-picker-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(108px, 1fr));
    gap: 0.75rem;
}

.layout-option {
    display: block;
    cursor: pointer;
}

.layout-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.layout-option-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 0.5rem;
    border: 2px solid var(--border);
    border-radius: 12px;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.layout-option input:checked + .layout-option-card {
    border-color: #6366f1;
    background: linear-gradient(180deg, #f5f3ff, #fff);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
}

.layout-option-label {
    font-size: 0.72rem;
    font-weight: 600;
    text-align: center;
    line-height: 1.3;
    color: var(--muted);
}

.layout-option input:checked + .layout-option-card .layout-option-label {
    color: var(--text);
}

.layout-preview {
    display: grid;
    gap: 3px;
    width: 72px;
    height: 48px;
    padding: 5px;
    background: #f1f5f9;
    border-radius: 6px;
}

.layout-preview--featured {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
}

.layout-preview--magazine {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: 1.2fr 1fr;
}

.layout-preview--grid-2 {
    grid-template-columns: 1fr 1fr;
}

.layout-preview--grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.layout-preview--grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

.layout-preview--list {
    grid-template-columns: 18px 1fr;
    align-content: center;
}

.layout-preview--stack {
    grid-template-columns: 1fr;
}

.layout-block {
    background: #6366f1;
    opacity: 0.45;
    border-radius: 2px;
    min-height: 0;
}

.layout-block-wide {
    grid-column: 1 / -1;
}

.layout-block-hero {
    grid-column: 1 / -1;
}

.layout-block-thumb {
    grid-row: span 1;
}

.layout-block-line {
    opacity: 0.3;
}

.blog-settings-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.blog-settings-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.blog-settings-label {
    font-size: 0.85rem;
    font-weight: 600;
}

.blog-settings-field input,
.blog-settings-field select {
    padding: 0.65rem 0.85rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    font: inherit;
    background: #fff;
}

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

.blog-settings-toggles .toggle-row input[type="checkbox"] {
    appearance: none;
    width: 1.15rem;
    height: 1.15rem;
    margin: 0;
    border: 2px solid #cbd5e1;
    border-radius: 4px;
    background: #fff;
    flex-shrink: 0;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}

.blog-settings-toggles .toggle-row input[type="checkbox"]:checked {
    background: #6366f1;
    border-color: #6366f1;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2' d='M2 6l3 3 5-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 10px;
}

.blog-settings-actions {
    display: flex;
    justify-content: flex-end;
    padding-top: 0.5rem;
    border-top: 1px solid var(--border);
}

.security-block-form {
    margin: 0;
}

.security-level-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.75rem;
}

.security-level-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--muted);
    font-size: 0.92rem;
}

.block-status {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    white-space: nowrap;
}

.block-status-suspicious {
    background: #fef3c7;
    color: #92400e;
}

.block-status-soft {
    background: #ffedd5;
    color: #9a3412;
}

.block-status-hard {
    background: #fee2e2;
    color: #991b1b;
}

.security-block-row {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 1fr auto;
    gap: 1rem;
    align-items: end;
}

.security-block-row label {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.security-block-row input,
.security-block-row select {
    padding: 0.65rem 0.85rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    font: inherit;
    background: #fff;
}

.security-block-inline {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-left: 0.5rem;
    vertical-align: middle;
}

.security-block-inline-form {
    display: inline;
    margin: 0;
}

.security-block-inline .admin-btn {
    padding: 0.2rem 0.5rem;
    font-size: 0.75rem;
    vertical-align: middle;
}

.security-table-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.security-status-form {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    align-items: center;
    margin: 0;
}

.security-status-form select {
    padding: 0.35rem 0.5rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    font: inherit;
    background: #fff;
    font-size: 0.82rem;
}

.notice-warning {
    background: #fffbeb;
    border: 1px solid #fcd34d;
    color: #92400e;
}

.security-recaptcha-row {
    grid-template-columns: 1fr 1fr auto;
}

@media (max-width: 768px) {
    .security-block-row {
        grid-template-columns: 1fr;
    }

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

.maintenance-mode-picker {
    border: none;
    margin: 0 0 1.25rem;
    padding: 0;
}

.maintenance-mode-legend {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.maintenance-mode-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.75rem;
}

.maintenance-mode-option {
    display: block;
    cursor: pointer;
}

.maintenance-mode-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.maintenance-mode-card {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    height: 100%;
    padding: 0.9rem 1rem;
    border: 2px solid var(--border);
    border-radius: 12px;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.maintenance-mode-card strong {
    font-size: 0.92rem;
    color: var(--text);
}

.maintenance-mode-desc {
    font-size: 0.82rem;
    line-height: 1.45;
    color: var(--muted);
    font-weight: 400;
}

.maintenance-mode-option input:checked + .maintenance-mode-card {
    border-color: #6366f1;
    background: linear-gradient(180deg, #f5f3ff, #fff);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
}

.maintenance-mode-option input:focus-visible + .maintenance-mode-card {
    outline: 2px solid #6366f1;
    outline-offset: 2px;
}

.blog-filter-picker {
    padding-top: 0.5rem;
    border-top: 1px solid var(--border);
}

.blog-settings-toggles-inline {
    margin-bottom: 1rem;
}

.layout-preview--filter-pills,
.layout-preview--filter-compact {
    display: flex;
    flex-wrap: wrap;
    align-content: center;
    gap: 4px;
    padding: 8px;
}

.layout-preview--filter-tabs {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    padding: 6px 4px 0;
}

.layout-preview--filter-minimal {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    padding: 10px;
}

.layout-preview--filter-dropdown {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    padding: 8px;
}

.layout-block-pill {
    width: 18px;
    height: 8px;
    border-radius: 999px;
}

.layout-block-pill-sm {
    width: 12px;
    height: 6px;
}

.layout-block-tab {
    width: 16px;
    height: 4px;
    border-radius: 2px 2px 0 0;
    opacity: 0.35;
}

.layout-block-tab.is-active {
    height: 6px;
    opacity: 1;
}

.layout-block-line-wide {
    width: 100%;
    height: 4px;
    border-radius: 2px;
    opacity: 0.35;
}

.layout-block-dropdown {
    width: 100%;
    height: 10px;
    border-radius: 3px;
    opacity: 0.45;
}

.options-save-bar {
    position: sticky;
    bottom: 1rem;
    margin-top: 1.25rem;
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(99, 102, 241, 0.12);
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.1);
    display: flex;
    justify-content: flex-end;
}

.admin-form label {
    display: block;
    font-weight: 600;
    margin: 1rem 0 0.35rem;
    font-size: 0.9rem;
}

.admin-form input[type="text"],
.admin-form input[type="email"],
.admin-form input[type="datetime-local"],
.admin-form textarea,
.admin-form select {
    width: 100%;
    padding: 0.72rem 0.9rem;
    border: 1px solid #dbe1ea;
    border-radius: 10px;
    font: inherit;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.admin-form input:focus,
.admin-form textarea:focus,
.admin-form select:focus {
    outline: none;
    border-color: #818cf8;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.12);
}

.featured-image-field {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.featured-image-field input {
    flex: 1;
}

.upload-label {
    margin: 0;
    white-space: nowrap;
}

.featured-preview {
    margin-top: 0.75rem;
}

.featured-preview img {
    max-width: 240px;
    border-radius: 8px;
    border: 1px solid var(--border);
}

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

.form-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

#editor {
    background: #fff;
    border-radius: 8px;
}

#editor .ql-editor {
    min-height: 360px;
    font-size: 1.05rem;
    line-height: 1.75;
}

#editor .ql-editor.post-content-editor {
    max-width: none;
    padding: 1.25rem 1.5rem;
}

#editor .ql-toolbar {
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    background: #f8fafc;
    border-color: var(--border);
    flex-wrap: wrap;
}

#editor .ql-container {
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    border-color: var(--border);
    font-family: var(--font-sans);
}

#editor .ql-toolbar .ql-stroke {
    stroke: #475569;
}

#editor .ql-toolbar .ql-fill {
    fill: #475569;
}

#editor .ql-toolbar button:hover .ql-stroke,
#editor .ql-toolbar button.ql-active .ql-stroke {
    stroke: #4f46e5;
}

#editor .ql-toolbar button:hover .ql-fill,
#editor .ql-toolbar button.ql-active .ql-fill {
    fill: #4f46e5;
}

.editor-content-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1rem;
    margin: 0.35rem 0 0.75rem;
}

.editor-content-actions .field-hint {
    margin: 0;
    flex: 1 1 220px;
}

.admin-body .button-media-library,
.admin-body a.button-media-library,
.admin-body button.button-media-library {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: linear-gradient(135deg, #059669 0%, #0d9488 100%);
    color: #fff;
    box-shadow: 0 4px 16px rgba(5, 150, 105, 0.35);
    border: none;
    padding: 0.65rem 1.1rem;
    font-size: 0.88rem;
}

.admin-body .button-media-library:hover,
.admin-body button.button-media-library:hover {
    background: linear-gradient(135deg, #047857 0%, #0f766e 100%);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(5, 150, 105, 0.4);
}

.button-media-library-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    background: #fff;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Crect x='3' y='3' width='18' height='18' rx='2'/%3E%3Ccircle cx='8.5' cy='8.5' r='1.5'/%3E%3Cpath d='m21 15-5-5L5 21'/%3E%3C/svg%3E") center / contain no-repeat;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Crect x='3' y='3' width='18' height='18' rx='2'/%3E%3Ccircle cx='8.5' cy='8.5' r='1.5'/%3E%3Cpath d='m21 15-5-5L5 21'/%3E%3C/svg%3E") center / contain no-repeat;
}

#editor .ql-medialibrary {
    width: 30px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 3px 5px;
    border: none;
    border-radius: 4px;
    background: linear-gradient(135deg, #059669 0%, #0d9488 100%);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(5, 150, 105, 0.35);
}

#editor .ql-medialibrary:hover {
    background: linear-gradient(135deg, #047857 0%, #0f766e 100%);
}

#editor .ql-medialibrary svg {
    width: 16px;
    height: 16px;
    display: block;
}

#editor .ql-medialibrary-stroke {
    fill: none;
    stroke: #fff;
    stroke-width: 1.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

#editor .ql-medialibrary-fill {
    fill: #fff;
    stroke: none;
}

.admin-fieldset {
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.35rem 1.6rem;
    margin: 0 0 1.25rem;
    background: rgba(255, 255, 255, 0.6);
}

.admin-fieldset legend {
    font-weight: 700;
    padding: 0 0.35rem;
}

.field-hint {
    color: var(--muted);
    font-size: 0.85rem;
    margin: 0.35rem 0 0;
}

.field-hint code {
    font-size: 0.8rem;
}

.meta-fieldset {
    margin-top: 0.5rem;
}

.meta-preview {
    margin-top: 1rem;
    padding: 1rem 1.25rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
}

.meta-preview-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
    margin: 0 0 0.5rem;
}

.meta-preview-title {
    color: #1a0dab;
    font-size: 1.1rem;
    margin: 0 0 0.15rem;
    line-height: 1.3;
}

.meta-preview-url {
    color: #006621;
    font-size: 0.85rem;
    margin: 0 0 0.35rem;
}

.meta-preview-desc {
    color: #545454;
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.45;
}

.schema-section {
    margin-top: 1.5rem;
    border-top: 1px solid var(--border);
    padding-top: 1.5rem;
}

.schema-section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.schema-section-header h2 {
    font-family: var(--font-sans);
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 0.25rem;
}

.schema-panel {
    display: none;
    padding: 1.25rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.schema-panel.is-open {
    display: block;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    margin: 1rem 0;
}

.code-input {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.85rem;
}

.schema-preview {
    margin: 0.5rem 0 1rem;
    padding: 1rem;
    background: var(--dark);
    color: #e8e8ef;
    border-radius: 8px;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.8rem;
    line-height: 1.5;
    overflow-x: auto;
    white-space: pre-wrap;
    max-height: 320px;
    overflow-y: auto;
}

.button-sm {
    padding: 0.45rem 0.9rem;
    font-size: 0.85rem;
}

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

.toggle-row {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-weight: 600;
    cursor: pointer;
}

.page-meta-heading {
    font-size: 1rem;
    margin: 0 0 0.75rem;
}

.thank-you-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.favicon-field {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.favicon-preview {
    width: 32px;
    height: 32px;
    object-fit: contain;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: #fff;
}

.redirect-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto;
    gap: 0.75rem;
    align-items: center;
    margin-bottom: 0.75rem;
}

.redirect-arrow {
    color: var(--muted);
    font-weight: 700;
}

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

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

.media-card img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    display: block;
}

.media-card-meta {
    padding: 0.65rem;
}

.media-path {
    display: block;
    font-size: 0.7rem;
    word-break: break-all;
    margin-bottom: 0.5rem;
}

.media-card-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.media-upload-form {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    align-items: center;
}

.media-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: grid;
    place-items: center;
    padding: 1rem;
}

.media-modal[hidden] {
    display: none;
}

.media-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
}

.media-modal-panel {
    position: relative;
    width: min(960px, 100%);
    max-height: min(80vh, 720px);
    overflow: auto;
    background: #fff;
    border-radius: var(--radius);
    padding: 1rem 1.25rem 1.25rem;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.2);
}

.media-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.media-modal-header h2 {
    margin: 0 0 0.25rem;
    font-size: 1.15rem;
}

.media-modal-hint {
    margin: 0;
}

.media-modal-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.5rem;
}

.media-modal-tab {
    border: 0;
    background: none;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    font: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--muted);
    cursor: pointer;
}

.media-modal-tab:hover {
    color: #312e81;
    background: rgba(99, 102, 241, 0.1);
}

.media-modal-tab.is-active,
.media-modal-tab.is-active:hover {
    color: #fff;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    box-shadow: 0 3px 12px rgba(99, 102, 241, 0.28);
}

.media-modal-body {
    min-height: 120px;
}

.unsplash-search-form {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.unsplash-search-form input[type="search"] {
    flex: 1;
    min-width: 200px;
}

.unsplash-hint {
    margin-bottom: 1rem;
}

.unsplash-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.unsplash-pick {
    position: relative;
}

.unsplash-pick.is-importing {
    pointer-events: none;
}

.unsplash-pick.is-importing::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
}

.unsplash-pick.is-importing::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 28px;
    height: 28px;
    margin: -14px 0 0 -14px;
    border: 3px solid rgba(255, 255, 255, 0.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: unsplash-spin 0.7s linear infinite;
    z-index: 2;
}

.unsplash-pick.is-imported::after {
    content: '✓';
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    background: rgba(22, 163, 74, 0.75);
    z-index: 2;
}

@keyframes unsplash-spin {
    to { transform: rotate(360deg); }
}

.media-card.is-new {
    opacity: 0;
    transform: translateY(-10px) scale(0.98);
}

.media-card.is-new.is-visible {
    opacity: 1;
    transform: none;
    transition: opacity 0.35s ease, transform 0.35s ease;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.45);
}

.media-library-empty {
    margin-bottom: 1rem;
}

.admin-toast {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 2000;
    padding: 0.75rem 1.1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
    background: #0f766e;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.2);
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.25s ease, transform 0.25s ease;
    pointer-events: none;
}

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

.admin-toast-error {
    background: #b91c1c;
}

.unsplash-credit {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 0.35rem 0.5rem;
    font-size: 0.65rem;
    color: #fff;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.75));
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.notice-inline {
    color: var(--muted);
}

.media-pick {
    border: 0;
    padding: 0;
    background: none;
    cursor: pointer;
    border-radius: var(--radius);
    overflow: hidden;
    border: 2px solid transparent;
}

.media-pick:hover,
.media-pick:focus-visible {
    border-color: var(--accent);
}

.media-pick img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    display: block;
}

.contact-notice {
    align-self: start;
}

.contact-layout .notice ul {
    margin: 0;
    padding-left: 1.1rem;
}

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

    .stats-summary-grid {
        grid-template-columns: 1fr;
    }

    .stats-daily-chart {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .options-layout,
    .options-split,
    .thankyou-mode-options {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .admin-header {
        flex-direction: column;
    }

    .admin-container {
        width: calc(100% - 1.25rem);
    }

    .admin-topbar-inner {
        flex-wrap: wrap;
        gap: 0.75rem;
        padding: 0.75rem 0;
    }

    .admin-topnav {
        order: 3;
        flex: 1 1 100%;
    }

    .admin-topbar-actions {
        margin-left: 0;
    }

    .featured-image-field {
        flex-direction: column;
        align-items: stretch;
    }

    .schema-section-header {
        flex-direction: column;
    }

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

    .redirect-arrow {
        display: none;
    }

    .admin-add-form-row {
        flex-direction: column;
        align-items: stretch;
    }

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

    .posts-filter-actions {
        width: 100%;
    }

    .posts-filter-actions .button {
        flex: 1;
    }
}
