:root {
    --color-bg: #f4f7fb;
    --color-surface: #ffffff;
    --color-text: #111827;
    --color-muted: #667085;
    --color-border: #e5edf7;
    --color-primary: #2563eb;
    --color-primary-dark: #1d4ed8;
    --shadow-soft: 0 30px 90px rgba(15, 23, 42, 0.13);
    --shadow-card: 0 20px 56px rgba(15, 23, 42, 0.08);
    --shadow-hover: 0 30px 90px rgba(37, 99, 235, 0.16);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    margin: 0;
    color: var(--color-text);
    background: var(--color-bg);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.5;
    text-rendering: optimizeLegibility;
}

a {
    color: inherit;
}

img,
iframe {
    max-width: 100%;
}

::selection {
    color: #ffffff;
    background: var(--color-primary);
}

:focus-visible {
    outline: 3px solid rgba(15, 118, 110, 0.28);
    outline-offset: 3px;
}

.site-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 56px 0;
}

.public-header {
    position: relative;
    z-index: 5;
    padding: 18px 0;
    background: rgba(255, 255, 255, 0.86);
    border-bottom: 1px solid rgba(226, 232, 240, 0.72);
    backdrop-filter: blur(18px);
}

.public-brand {
    display: inline-flex;
    align-items: center;
    min-height: 48px;
    color: var(--color-text);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 900;
}

.public-hero {
    min-height: 92vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 96px 0;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(245, 246, 248, 0.8)),
        radial-gradient(circle at 50% 0%, rgba(15, 118, 110, 0.14), rgba(255, 255, 255, 0) 48%);
}

.public-hero::after {
    content: "";
    position: absolute;
    right: 8%;
    bottom: 10%;
    width: 240px;
    height: 240px;
    border: 1px solid rgba(15, 118, 110, 0.12);
    border-radius: 50%;
    pointer-events: none;
}

.public-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 860px;
    margin: 0 auto;
    text-align: center;
    animation: theme-rise 680ms ease both;
}

.public-hero h1 {
    margin: 0 0 20px;
    font-size: 5rem;
    line-height: 1;
    font-weight: 800;
    letter-spacing: 0;
}

.public-hero .lead {
    margin-right: auto;
    margin-left: auto;
}

.public-hero .hero-text {
    margin-right: auto;
    margin-left: auto;
}

.public-hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 30px;
}

.homepage-block {
    padding: 92px 0;
    background: var(--color-surface);
    content-visibility: auto;
    contain-intrinsic-size: 720px;
}

.homepage-block:nth-child(odd) {
    background: #f8fafc;
}

.homepage-block h2 {
    margin: 0 0 18px;
    font-size: 3rem;
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: 0;
}

.homepage-block-text {
    margin: 0 0 28px;
    color: var(--color-muted);
    font-size: 1.12rem;
    line-height: 1.7;
}

.homepage-block-image,
.homepage-block-placeholder {
    width: 100%;
    min-height: 360px;
    border-radius: 8px;
    box-shadow: var(--shadow-card);
}

.homepage-block-image {
    display: block;
    object-fit: cover;
    transition: transform 220ms ease, box-shadow 220ms ease;
}

.homepage-block-image:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-3px);
}

.homepage-block-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-muted);
    background: #e9edf2;
    font-weight: 800;
}

.services-section {
    padding: 92px 0;
    background: var(--color-surface);
    content-visibility: auto;
    contain-intrinsic-size: 680px;
}

.services-heading {
    max-width: 760px;
    margin: 0 auto 34px;
    text-align: center;
}

.services-heading h2 {
    margin: 0;
    font-size: 3rem;
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: 0;
}

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

.service-card {
    min-height: 300px;
    display: flex;
    flex-direction: column;
    padding: 26px;
    border: 1px solid var(--color-border);
    border-radius: 22px;
    color: var(--color-text);
    background: #ffffff;
    box-shadow: var(--shadow-card);
    text-decoration: none;
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.service-card:hover {
    border-color: rgba(15, 118, 110, 0.35);
    color: var(--color-text);
    box-shadow: var(--shadow-hover);
    transform: translateY(-4px);
}

.service-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 22px;
    border-radius: 8px;
    color: var(--color-primary-dark);
    background: rgba(15, 118, 110, 0.1);
    font-weight: 800;
}

.service-icon-placeholder {
    text-transform: uppercase;
}

.service-image {
    width: 100%;
    aspect-ratio: 16 / 10;
    display: block;
    margin-bottom: 24px;
    border-radius: 18px;
    object-fit: cover;
    background: #eef5ff;
}

.service-card h3 {
    margin: 0 0 12px;
    font-size: 1.35rem;
    font-weight: 800;
}

.service-card p {
    margin: 0;
    color: var(--color-muted);
    line-height: 1.65;
}

.gallery-section {
    padding: 92px 0;
    background: #f8fafc;
    content-visibility: auto;
    contain-intrinsic-size: 680px;
}

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

.gallery-item {
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 8px;
    background: #e9edf2;
    box-shadow: var(--shadow-card);
    transition: box-shadow 180ms ease, transform 180ms ease;
}

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

.gallery-item:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-3px);
}

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

.gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 32px;
    background: rgba(24, 32, 42, 0.86);
}

.gallery-lightbox:target {
    display: flex;
}

.gallery-lightbox img {
    max-width: min(1100px, 100%);
    max-height: 82vh;
    border-radius: 8px;
    box-shadow: var(--shadow-soft);
}

.gallery-lightbox-close {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 10px 14px;
    border-radius: 8px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
    text-decoration: none;
    font-weight: 800;
}

.team-section {
    padding: 92px 0;
    background: var(--color-surface);
    content-visibility: auto;
    contain-intrinsic-size: 720px;
}

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

.team-card {
    overflow: hidden;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: var(--shadow-card);
    transition: transform 180ms ease, box-shadow 180ms ease;
}

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

.team-photo,
.team-placeholder {
    width: 100%;
    aspect-ratio: 4 / 3;
}

.team-photo {
    display: block;
    object-fit: cover;
    transition: transform 240ms ease;
}

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

.team-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-muted);
    background: #e9edf2;
    font-weight: 800;
}

.team-card-body {
    padding: 24px;
}

.team-card h3 {
    margin: 0 0 8px;
    font-size: 1.35rem;
    font-weight: 800;
}

.team-position {
    margin: 0 0 18px;
    color: var(--color-muted);
    font-weight: 700;
}

.team-contact {
    display: grid;
    gap: 6px;
}

.team-contact a {
    color: var(--color-primary-dark);
    font-weight: 700;
    text-decoration: none;
}

.team-contact a:hover {
    text-decoration: underline;
}

.references-section {
    padding: 92px 0;
    background: #f8fafc;
    content-visibility: auto;
    contain-intrinsic-size: 620px;
}

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

.reference-card {
    min-height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 28px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: var(--shadow-card);
    transition: transform 180ms ease, box-shadow 180ms ease;
}

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

.reference-rating {
    display: flex;
    gap: 4px;
    margin-bottom: 18px;
    color: var(--color-primary-dark);
    font-size: 1.15rem;
    font-weight: 800;
}

.reference-text {
    margin: 0 0 28px;
    color: var(--color-text);
    font-size: 1.05rem;
    line-height: 1.7;
}

.reference-card h3 {
    margin: 0 0 6px;
    font-size: 1.2rem;
    font-weight: 800;
}

.reference-company {
    margin: 0;
    color: var(--color-muted);
    font-weight: 700;
}

.contact-section {
    padding: 92px 0;
    background: var(--color-surface);
    content-visibility: auto;
    contain-intrinsic-size: 760px;
}

.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
    gap: 24px;
}

.contact-info,
.contact-form-card {
    padding: 28px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: var(--shadow-card);
    transition: box-shadow 180ms ease;
}

.contact-info:hover,
.contact-form-card:hover {
    box-shadow: var(--shadow-hover);
}

.contact-map,
.contact-map-placeholder {
    width: 100%;
    min-height: 300px;
    margin-bottom: 24px;
    border: 0;
    border-radius: 8px;
    background: #e9edf2;
}

.contact-map-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-muted);
    font-weight: 800;
}

.contact-details {
    display: grid;
    gap: 18px;
}

.contact-details strong {
    display: block;
    margin-bottom: 6px;
    font-size: 0.86rem;
    text-transform: uppercase;
}

.contact-details a {
    color: var(--color-primary-dark);
    font-weight: 700;
    text-decoration: none;
}

.contact-details a:hover {
    text-decoration: underline;
}

.contact-details p {
    margin: 0;
    color: var(--color-muted);
    line-height: 1.65;
}

.public-hero {
    min-height: auto;
    padding: 116px 0 92px;
    background:
        linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(255, 255, 255, 0) 42%),
        linear-gradient(180deg, var(--section-hero-bg, #ffffff) 0%, #f4f7fb 100%);
}

.public-hero-has-bg {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(244, 247, 251, 0.9)),
        var(--hero-bg-image);
    background-position: center;
    background-size: cover;
}

.public-hero::after {
    right: 6%;
    bottom: 6%;
    width: 340px;
    height: 340px;
    border-color: rgba(37, 99, 235, 0.12);
}

.public-hero-inner {
    max-width: none;
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(360px, 1.08fr);
    gap: 64px;
    align-items: center;
    text-align: left;
}

.public-hero h1 {
    max-width: 720px;
    font-size: 5.8rem;
    letter-spacing: 0;
}

.public-hero .lead,
.public-hero .hero-text {
    margin-right: 0;
    margin-left: 0;
}

.public-hero .lead {
    font-size: 1.45rem;
}

.public-hero .hero-text {
    font-size: 1.1rem;
}

.public-hero-actions {
    justify-content: flex-start;
}

.public-hero-image-left .public-hero-content {
    order: 2;
}

.public-hero-image-left .public-hero-media {
    order: 1;
}

.public-hero-media {
    position: relative;
    padding: 18px;
    border: 1px solid rgba(37, 99, 235, 0.12);
    border-radius: 28px;
    background: var(--hero-image-bg, rgba(255, 255, 255, 0.82));
    box-shadow: var(--shadow-soft);
}

.public-hero-media::before {
    content: "";
    position: absolute;
    inset: 12% -5% auto auto;
    width: 44%;
    height: 42%;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.12);
    filter: blur(34px);
}

.public-hero-media img,
.services-showcase img,
.references-media img,
.contact-premium-image {
    position: relative;
    width: 100%;
    display: block;
    border-radius: 22px;
    object-fit: cover;
}

.public-hero-media img {
    aspect-ratio: 4 / 3;
    max-height: 520px;
}

.public-hero-media-custom img {
    padding: 28px;
    object-fit: contain;
    background: transparent;
}

.homepage-block,
.services-section,
.gallery-section,
.team-section,
.references-section,
.contact-section {
    padding: 120px 0;
}

.homepage-block {
    background: var(--section-text-bg, #f4f7fb);
}

.homepage-block:nth-child(odd) {
    background: var(--section-text-bg, #f4f7fb);
}

.services-section {
    background: var(--section-services-bg, #ffffff);
}

.gallery-section {
    background: var(--section-gallery-bg, #f8fafc);
}

.team-section {
    background: var(--section-team-bg, #ffffff);
}

.references-section {
    background: var(--section-references-bg, #eef5ff);
}

.contact-section {
    background: var(--section-contact-bg, #ffffff);
}

.page-detail-section {
    min-height: 70vh;
    padding: 96px 0;
    color: var(--section-text-color, var(--color-text));
    background: var(--section-text-bg, #f4f7fb);
}

.page-detail-shell {
    max-width: 980px;
    margin: 0 auto;
    padding: 58px;
    border: 1px solid rgba(226, 232, 240, 0.88);
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow-card);
}

.page-detail-shell h1 {
    margin: 0 0 28px;
    font-size: 4rem;
    line-height: 1.05;
    font-weight: 800;
}

.page-detail-content {
    color: inherit;
    font-size: 1.08rem;
    line-height: 1.75;
}

.page-detail-content::after {
    display: block;
    clear: both;
    content: "";
}

.page-detail-content img {
    max-width: 100%;
    height: auto;
    border-radius: 18px;
}

.page-detail-content figure.image {
    max-width: 100%;
    margin: 1.7rem 0;
}

.page-detail-content figure.image img {
    display: block;
    width: 100%;
}

.page-detail-content figure.image figcaption {
    margin-top: 8px;
    color: var(--color-muted);
    font-size: 0.92rem;
    text-align: center;
}

.page-detail-content .image_resized {
    max-width: 100%;
}

.page-detail-content .image-style-align-left {
    float: left;
    width: 50%;
    max-width: min(50%, 420px);
    margin: 0.45rem 2rem 1.2rem 0;
}

.page-detail-content .image-style-align-right,
.page-detail-content .image-style-side {
    float: right;
    width: 50%;
    max-width: min(50%, 420px);
    margin: 0.45rem 0 1.2rem 2rem;
}

.page-detail-content .image-style-align-left.image_resized,
.page-detail-content .image-style-align-right.image_resized,
.page-detail-content .image-style-side.image_resized {
    max-width: 100%;
}

.page-detail-content .image-style-align-center,
.page-detail-content .image-style-block {
    display: block;
    float: none;
    clear: both;
    margin-right: auto;
    margin-left: auto;
    text-align: center;
}

.page-detail-content .image-style-align-center.image_resized,
.page-detail-content .image-style-block.image_resized {
    max-width: 100%;
}

.page-detail-content .image-style-align-left img,
.page-detail-content .image-style-align-right img,
.page-detail-content .image-style-align-center img,
.page-detail-content .image-style-side img,
.page-detail-content .image-style-block img,
.page-detail-content .image_resized img {
    width: 100%;
}

.page-detail-content img[style*="float: left"],
.page-detail-content img[style*="float:left"] {
    margin: 0.45rem 2rem 1.2rem 0;
}

.page-detail-content img[style*="float: right"],
.page-detail-content img[style*="float:right"] {
    margin: 0.45rem 0 1.2rem 2rem;
}

.page-detail-content img.alignleft,
.page-detail-content img.align-left {
    float: left;
    margin: 0.45rem 2rem 1.2rem 0;
}

.page-detail-content img.alignright,
.page-detail-content img.align-right {
    float: right;
    margin: 0.45rem 0 1.2rem 2rem;
}

.page-detail-content img.aligncenter,
.page-detail-content img.align-center {
    display: block;
    float: none;
    clear: both;
    margin: 1.7rem auto;
}

.rich-text {
    color: inherit;
}

.rich-text > :first-child {
    margin-top: 0;
}

.rich-text > :last-child {
    margin-bottom: 0;
}

.rich-text a {
    color: var(--color-primary);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.rich-text ul,
.rich-text ol {
    padding-left: 1.2rem;
}

.rich-text img {
    max-width: 100%;
    height: auto;
    border-radius: 14px;
}

.rich-text img[style*="float: left"],
.rich-text img[style*="float:left"] {
    margin: 0.35rem 1.35rem 1rem 0;
}

.rich-text img[style*="float: right"],
.rich-text img[style*="float:right"] {
    margin: 0.35rem 0 1rem 1.35rem;
}

.homepage-block-shell,
.premium-section-shell {
    padding: 58px;
    border: 1px solid rgba(226, 232, 240, 0.88);
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow-card);
}

.premium-section-shell-light {
    background: #f8fafc;
}

.premium-section-shell-blue {
    background:
        linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(255, 255, 255, 0) 44%),
        #ffffff;
}

.premium-contact-shell {
    background:
        linear-gradient(135deg, #eef5ff 0%, #ffffff 48%, #f8fafc 100%);
}

.homepage-block h2,
.services-heading h2 {
    color: var(--color-text);
    font-size: 3.5rem;
}

.homepage-block-text,
.service-card p,
.service-text,
.reference-text,
.contact-details p {
    color: var(--color-muted);
}

.homepage-block-image,
.homepage-block-placeholder,
.services-showcase img,
.references-media img,
.contact-premium-image {
    min-height: 420px;
    border-radius: 24px;
    box-shadow: var(--shadow-soft);
}

.services-showcase {
    margin-bottom: 24px;
}

.services-showcase img {
    max-height: 380px;
    object-fit: cover;
}

.services-grid,
.team-grid {
    gap: 24px;
}

.service-card,
.team-card,
.reference-card,
.contact-info,
.contact-form-card {
    border-color: rgba(226, 232, 240, 0.92);
    border-radius: 22px;
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.07);
}

.service-card {
    min-height: 300px;
    padding: 26px;
}

.service-card-link {
    display: inline-flex;
    align-items: center;
    margin-top: auto;
    color: var(--color-primary);
    font-weight: 800;
    text-decoration: none;
}

.service-card-link:hover {
    color: var(--color-primary-dark);
}

.service-icon {
    color: var(--color-primary-dark);
    background: #eaf1ff;
}

.gallery-grid {
    gap: 22px;
}

.gallery-item {
    border-radius: 22px;
}

.team-card {
    border-radius: 24px;
}

.team-photo,
.team-placeholder {
    aspect-ratio: 5 / 4;
}

.reference-card {
    min-height: 310px;
    padding: 32px;
}

.references-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
    gap: 34px;
    align-items: stretch;
}

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

.references-media {
    display: flex;
    align-items: stretch;
}

.references-media img {
    height: 100%;
}

.contact-grid {
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.82fr);
    gap: 28px;
}

.contact-info,
.contact-form-card {
    padding: 34px;
}

.contact-premium-image {
    min-height: 280px;
    margin-bottom: 24px;
}

.contact-map {
    min-height: 260px;
}

.public-hero,
.public-hero h1,
.public-hero .lead,
.public-hero .hero-text {
    color: var(--section-hero-text, var(--color-text));
}

.homepage-block,
.homepage-block h2,
.homepage-block-text {
    color: var(--section-text-color, var(--color-text));
}

.services-section,
.services-section .services-heading h2,
.services-section .service-card h3,
.services-section .service-card p,
.services-section .service-text {
    color: var(--section-services-text, var(--color-text));
}

.gallery-section,
.gallery-section .services-heading h2 {
    color: var(--section-gallery-text, var(--color-text));
}

.team-section,
.team-section .services-heading h2,
.team-section .team-card h3,
.team-section .team-position {
    color: var(--section-team-text, var(--color-text));
}

.references-section,
.references-section .services-heading h2,
.references-section .reference-card h3,
.references-section .reference-text,
.references-section .reference-company {
    color: var(--section-references-text, var(--color-text));
}

.contact-section,
.contact-section .services-heading h2,
.contact-section .contact-details p,
.contact-section .contact-details .rich-text {
    color: var(--section-contact-text, var(--color-text));
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    gap: 0.45em;
    min-height: 0;
    padding: 0.35rem 0.6rem;
    border: 1px solid rgba(37, 99, 235, 0.22);
    border-radius: 999px;
    color: var(--color-primary);
    font-size: 0.9rem;
    font-weight: 800;
    line-height: 1.2;
    text-decoration: none;
    background: rgba(37, 99, 235, 0.06);
}

.social-links img {
    width: 1.1em;
    height: 1.1em;
    object-fit: contain;
    flex: 0 0 auto;
}

.social-links a:hover {
    color: #ffffff;
    background: var(--color-primary);
}

.public-footer {
    padding: 42px 0;
    color: var(--color-muted);
    background: #ffffff;
    border-top: 1px solid var(--color-border);
}

.public-footer .container {
    display: grid;
    gap: 16px;
    justify-items: center;
    text-align: center;
}

.public-footer-text {
    max-width: 760px;
}

.public-footer-copy {
    font-size: 0.95rem;
}

.public-footer-creator {
    color: var(--color-muted);
    font-size: 0.84rem;
}

.public-footer-creator a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.hero h1 {
    max-width: 760px;
    margin: 0 0 20px;
    font-size: 5rem;
    line-height: 1;
    font-weight: 800;
    letter-spacing: 0;
}

.lead {
    max-width: 680px;
    color: var(--color-muted);
    font-size: 1.35rem;
}

.hero-text {
    max-width: 640px;
    margin: 28px 0 0;
    color: #334155;
    font-size: 1.05rem;
}

.eyebrow {
    margin: 0 0 18px;
    color: var(--color-primary-dark);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

.theme-cosmetic-black-gold {
    --color-bg: #0B0B0B;
    --color-surface: #171717;
    --color-text: #F5F1EA;
    --color-muted: #CFC6B8;
    --color-border: rgba(200, 169, 107, 0.22);
    --shadow-soft: 0 34px 110px rgba(0, 0, 0, 0.5);
    --shadow-card: 0 22px 70px rgba(0, 0, 0, 0.34);
    --shadow-hover: 0 28px 90px rgba(200, 169, 107, 0.18);
    color: var(--color-text);
    background: var(--section-hero-bg, #0B0B0B);
}

.theme-cosmetic-black-gold .public-header {
    background: rgba(11, 11, 11, 0.84);
    border-bottom-color: rgba(200, 169, 107, 0.18);
}

.theme-cosmetic-black-gold .public-brand {
    color: #F5F1EA;
    letter-spacing: 0.04em;
}

.theme-cosmetic-black-gold .public-hero {
    background:
        radial-gradient(circle at 18% 14%, rgba(200, 169, 107, 0.18), rgba(11, 11, 11, 0) 30%),
        linear-gradient(180deg, var(--section-hero-bg, #0B0B0B) 0%, var(--section-text-bg, #121212) 100%);
}

.theme-cosmetic-black-gold .public-hero-has-bg {
    background:
        linear-gradient(180deg, rgba(11, 11, 11, 0.72), rgba(11, 11, 11, 0.88)),
        var(--hero-bg-image);
    background-position: center;
    background-size: cover;
}

.theme-cosmetic-black-gold .public-hero::after {
    border-color: rgba(200, 169, 107, 0.2);
}

.theme-cosmetic-black-gold .public-hero-media,
.theme-cosmetic-black-gold .homepage-block-shell,
.theme-cosmetic-black-gold .premium-section-shell,
.theme-cosmetic-black-gold .page-detail-shell,
.theme-cosmetic-black-gold .service-card,
.theme-cosmetic-black-gold .team-card,
.theme-cosmetic-black-gold .reference-card,
.theme-cosmetic-black-gold .contact-info,
.theme-cosmetic-black-gold .contact-form-card {
    border-color: rgba(200, 169, 107, 0.22);
    background: linear-gradient(180deg, rgba(23, 23, 23, 0.96), rgba(14, 14, 14, 0.96));
    box-shadow: 0 26px 90px rgba(0, 0, 0, 0.42), 0 0 0 1px rgba(200, 169, 107, 0.08);
}

.theme-cosmetic-black-gold .public-hero-media::before {
    background: rgba(200, 169, 107, 0.16);
}

.theme-cosmetic-black-gold .public-hero-media {
    background: var(--hero-image-bg, #171717);
}

.theme-cosmetic-black-gold .homepage-block,
.theme-cosmetic-black-gold .page-detail-section,
.theme-cosmetic-black-gold .gallery-section,
.theme-cosmetic-black-gold .references-section {
    background: var(--section-text-bg, #121212);
}

.theme-cosmetic-black-gold .services-section,
.theme-cosmetic-black-gold .team-section,
.theme-cosmetic-black-gold .contact-section {
    background: var(--section-hero-bg, #0B0B0B);
}

.theme-cosmetic-black-gold .services-section {
    background: var(--section-services-bg, #0B0B0B);
}

.theme-cosmetic-black-gold .gallery-section {
    background: var(--section-gallery-bg, #121212);
}

.theme-cosmetic-black-gold .team-section {
    background: var(--section-team-bg, #0B0B0B);
}

.theme-cosmetic-black-gold .references-section {
    background: var(--section-references-bg, #121212);
}

.theme-cosmetic-black-gold .contact-section {
    background: var(--section-contact-bg, #0B0B0B);
}

.theme-cosmetic-black-gold .premium-section-shell-light,
.theme-cosmetic-black-gold .premium-section-shell-blue,
.theme-cosmetic-black-gold .premium-contact-shell {
    background:
        radial-gradient(circle at 80% 0%, rgba(200, 169, 107, 0.12), rgba(18, 18, 18, 0) 34%),
        #171717;
}

.theme-cosmetic-black-gold h1,
.theme-cosmetic-black-gold h2,
.theme-cosmetic-black-gold h3,
.theme-cosmetic-black-gold .homepage-block h2,
.theme-cosmetic-black-gold .services-heading h2 {
    color: #F5F1EA;
}

.theme-cosmetic-black-gold .lead,
.theme-cosmetic-black-gold .hero-text,
.theme-cosmetic-black-gold .homepage-block-text,
.theme-cosmetic-black-gold .service-card p,
.theme-cosmetic-black-gold .service-text,
.theme-cosmetic-black-gold .reference-text,
.theme-cosmetic-black-gold .contact-details p,
.theme-cosmetic-black-gold .contact-details .rich-text,
.theme-cosmetic-black-gold .team-position {
    color: #CFC6B8;
}

.theme-cosmetic-black-gold .eyebrow,
.theme-cosmetic-black-gold .contact-details a,
.theme-cosmetic-black-gold .team-contact a {
    color: var(--color-primary);
}

.theme-cosmetic-black-gold .btn-primary {
    color: #0B0B0B;
    border-color: var(--color-primary);
    background: linear-gradient(135deg, var(--color-primary), #E3CD94);
    box-shadow: 0 18px 42px rgba(200, 169, 107, 0.18);
}

.theme-cosmetic-black-gold .btn-primary:hover {
    border-color: #D8BD82;
    background: linear-gradient(135deg, #D8BD82, #F0DDA6);
}

.theme-cosmetic-black-gold .btn-outline-primary {
    color: #F5F1EA;
    border-color: rgba(200, 169, 107, 0.45);
    background: rgba(200, 169, 107, 0.06);
}

.theme-cosmetic-black-gold .btn-outline-primary:hover {
    color: #0B0B0B;
    border-color: var(--color-primary);
    background: var(--color-primary);
}

.theme-cosmetic-black-gold .service-icon,
.theme-cosmetic-black-gold .service-image {
    color: #0B0B0B;
    background: var(--color-primary);
}

.theme-cosmetic-black-gold .public-footer {
    color: #CFC6B8;
    background: #0B0B0B;
    border-top-color: rgba(200, 169, 107, 0.18);
}

.theme-cosmetic-black-gold .reference-rating span {
    color: var(--color-primary);
}

.theme-cosmetic-black-gold .gallery-lightbox {
    background: rgba(11, 11, 11, 0.94);
}

.theme-cosmetic-black-gold .gallery-lightbox-close {
    color: #F5F1EA;
    border-color: rgba(200, 169, 107, 0.32);
    background: #171717;
}

.theme-cosmetic-black-gold .contact-map,
.theme-cosmetic-black-gold .contact-map-placeholder {
    border-color: rgba(200, 169, 107, 0.22);
    background: #121212;
}

.theme-cosmetic-black-gold .gallery-item,
.theme-cosmetic-black-gold .homepage-block-image,
.theme-cosmetic-black-gold .team-photo,
.theme-cosmetic-black-gold .references-media img,
.theme-cosmetic-black-gold .contact-premium-image {
    border: 1px solid rgba(200, 169, 107, 0.2);
    box-shadow: 0 22px 70px rgba(0, 0, 0, 0.44);
}

.theme-cosmetic-black-gold .form-control {
    color: #F5F1EA;
    border-color: rgba(200, 169, 107, 0.24);
    background: #121212;
}

.theme-cosmetic-black-gold .form-control::placeholder {
    color: #8f877b;
}

.theme-cosmetic-black-gold .public-hero,
.theme-cosmetic-black-gold .public-hero h1,
.theme-cosmetic-black-gold .public-hero .lead,
.theme-cosmetic-black-gold .public-hero .hero-text {
    color: var(--section-hero-text, #F5F1EA);
}

.theme-cosmetic-black-gold .homepage-block,
.theme-cosmetic-black-gold .homepage-block h2,
.theme-cosmetic-black-gold .homepage-block-text,
.theme-cosmetic-black-gold .page-detail-section,
.theme-cosmetic-black-gold .page-detail-shell h1,
.theme-cosmetic-black-gold .page-detail-content {
    color: var(--section-text-color, #F5F1EA);
}

.theme-cosmetic-black-gold .services-section,
.theme-cosmetic-black-gold .services-section .services-heading h2,
.theme-cosmetic-black-gold .services-section .service-card h3,
.theme-cosmetic-black-gold .services-section .service-card p {
    color: var(--section-services-text, #F5F1EA);
}

.theme-cosmetic-black-gold .gallery-section,
.theme-cosmetic-black-gold .gallery-section .services-heading h2 {
    color: var(--section-gallery-text, #F5F1EA);
}

.theme-cosmetic-black-gold .team-section,
.theme-cosmetic-black-gold .team-section .services-heading h2,
.theme-cosmetic-black-gold .team-section .team-card h3,
.theme-cosmetic-black-gold .team-section .team-position {
    color: var(--section-team-text, #F5F1EA);
}

.theme-cosmetic-black-gold .references-section,
.theme-cosmetic-black-gold .references-section .services-heading h2,
.theme-cosmetic-black-gold .references-section .reference-card h3,
.theme-cosmetic-black-gold .references-section .reference-text,
.theme-cosmetic-black-gold .references-section .reference-company {
    color: var(--section-references-text, #F5F1EA);
}

.theme-cosmetic-black-gold .contact-section,
.theme-cosmetic-black-gold .contact-section .services-heading h2,
.theme-cosmetic-black-gold .contact-section .contact-details p {
    color: var(--section-contact-text, #F5F1EA);
}

@keyframes theme-rise {
    from {
        opacity: 0;
        transform: translateY(14px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.homepage-block,
.services-section,
.gallery-section,
.team-section,
.references-section,
.contact-section {
    animation: theme-rise 520ms ease both;
}

.status-panel {
    padding: 32px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background: var(--color-surface);
    box-shadow: var(--shadow-soft);
}

.status-panel h2 {
    margin: 0 0 20px;
    font-size: 1.25rem;
    font-weight: 700;
}

.status-panel ul {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.status-panel li {
    padding: 12px 14px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    color: #243244;
    background: #fbfcfd;
}

.admin-body {
    background: #eef1f5;
}

.admin-topbar {
    padding: 18px 0;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
}

.admin-brand {
    font-size: 1.15rem;
    font-weight: 800;
}

.admin-menu {
    background: #18202a;
}

.admin-menu .container {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding-top: 10px;
    padding-bottom: 10px;
}

.admin-menu a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 8px 14px;
    border-radius: 8px;
    color: #e5eaf0;
    text-decoration: none;
    font-weight: 600;
}

.admin-menu a:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

.admin-menu img {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

.admin-main {
    padding: 40px 0;
}

.dashboard-heading {
    margin-bottom: 28px;
}

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

.dashboard-heading h1 {
    margin: 0;
    font-size: 2.3rem;
    font-weight: 800;
}

.admin-page-heading h1 {
    margin: 0;
    font-size: 2.3rem;
    font-weight: 800;
}

.dashboard-heading p {
    margin: 8px 0 0;
    color: var(--color-muted);
    font-size: 1.1rem;
}

.admin-page-heading p {
    margin: 8px 0 0;
    color: var(--color-muted);
    font-size: 1.1rem;
}

.admin-card {
    padding: 24px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background: var(--color-surface);
    box-shadow: var(--shadow-card);
}

.admin-card h2 {
    margin: 0 0 18px;
    font-size: 1.25rem;
    font-weight: 800;
}

.admin-settings-grid {
    display: grid;
    gap: 18px;
}

.admin-table {
    margin: 0;
}

.admin-table th {
    color: var(--color-muted);
    font-size: 0.88rem;
    font-weight: 800;
}

.admin-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.media-thumb {
    width: 72px;
    height: 54px;
    object-fit: cover;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background: #f8fafc;
}

.media-path {
    display: inline-block;
    max-width: 280px;
    padding: 6px 8px;
    border-radius: 8px;
    color: #334155;
    background: #f8fafc;
    white-space: normal;
    word-break: break-all;
}

.media-copy-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.editor-image-helper,
.ckeditor-image-helper {
    margin-top: 14px;
    padding: 14px;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    background: #f8fafc;
}

.admin-form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

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

.dashboard-card {
    min-height: 150px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: space-between;
    padding: 24px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    color: var(--color-text);
    background: var(--color-surface);
    box-shadow: var(--shadow-card);
    text-decoration: none;
}

.dashboard-card:hover {
    border-color: rgba(15, 118, 110, 0.35);
    color: var(--color-primary-dark);
}

.dashboard-card img {
    width: 54px;
    height: 54px;
    object-fit: contain;
    align-self: flex-start;
    padding: 6px;
    border-radius: 14px;
    background: #eef5ff;
}

.dashboard-card span {
    font-size: 1.25rem;
    font-weight: 800;
}

.login-page {
    min-height: calc(100vh - 76px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 16px;
}

.login-card {
    width: 100%;
    max-width: 430px;
    padding: 34px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background: var(--color-surface);
    box-shadow: var(--shadow-card);
}

.install-card {
    max-width: 620px;
}

.login-card h1 {
    margin: 0 0 24px;
    font-size: 1.8rem;
    font-weight: 800;
}

.form-control {
    min-height: 46px;
    border-radius: 8px;
}

.btn {
    min-height: 46px;
    border-radius: 8px;
    font-weight: 700;
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background-color 160ms ease, color 160ms ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    border-color: var(--color-primary);
    background: linear-gradient(135deg, var(--color-primary), #4f46e5);
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.22);
}

.btn-primary:hover {
    border-color: var(--color-primary-dark);
    background: linear-gradient(135deg, var(--color-primary-dark), #4338ca);
    box-shadow: 0 16px 34px rgba(37, 99, 235, 0.3);
}

.btn-outline-primary {
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.btn-outline-primary:hover {
    color: #ffffff;
    border-color: var(--color-primary);
    background: var(--color-primary);
}

.admin-footer {
    padding: 22px 0;
    color: var(--color-muted);
    font-size: 0.95rem;
}

@media (max-width: 991.98px) {
    .public-hero {
        min-height: auto;
        padding: 76px 0;
    }

    .public-hero-inner,
    .references-layout,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .public-hero h1 {
        font-size: 4.4rem;
    }

    .public-hero-image-left .public-hero-content {
        order: 1;
    }

    .public-hero-image-left .public-hero-media {
        order: 2;
    }

    .homepage-block-shell,
    .premium-section-shell {
        padding: 42px;
        border-radius: 26px;
    }

    .homepage-block,
    .services-section,
    .gallery-section,
    .team-section,
    .references-section,
    .contact-section {
        padding: 72px 0;
    }

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

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

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

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

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

@media (max-width: 767.98px) {
    .site-shell {
        align-items: flex-start;
        padding: 36px 0;
    }

    .status-panel {
        padding: 24px;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .public-hero h1 {
        font-size: 3.2rem;
    }

    .public-hero {
        padding: 62px 0;
    }

    .public-hero-inner {
        gap: 34px;
    }

    .public-hero-media {
        padding: 10px;
        border-radius: 20px;
    }

    .public-hero-actions .btn {
        width: 100%;
    }

    .homepage-block,
    .services-section,
    .gallery-section,
    .team-section,
    .references-section,
    .contact-section {
        padding: 56px 0;
    }

    .homepage-block-shell,
    .premium-section-shell {
        padding: 24px;
        border-radius: 22px;
    }

    .service-card,
    .team-card,
    .reference-card,
    .contact-info,
    .contact-form-card {
        border-radius: 18px;
    }

    .homepage-block h2 {
        font-size: 2.35rem;
    }

    .services-heading h2 {
        font-size: 2.35rem;
    }

    .services-heading {
        margin-bottom: 26px;
    }

    .homepage-block-image,
    .homepage-block-placeholder {
        min-height: 260px;
    }

    .services-showcase img,
    .references-media img,
    .contact-premium-image {
        min-height: 240px;
    }

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

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

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

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

    .lead {
        font-size: 1.15rem;
    }

    .page-detail-shell {
        padding: 28px;
        border-radius: 22px;
    }

    .page-detail-shell h1 {
        font-size: 2.7rem;
    }

    .page-detail-content .image-style-align-left,
    .page-detail-content .image-style-align-right,
    .page-detail-content .image-style-align-center,
    .page-detail-content .image-style-side,
    .page-detail-content .image-style-block,
    .page-detail-content .image_resized {
        float: none;
        width: 100% !important;
        max-width: 100%;
        margin: 1.4rem 0;
    }

    .page-detail-content img[style*="float: left"],
    .page-detail-content img[style*="float:left"],
    .page-detail-content img[style*="float: right"],
    .page-detail-content img[style*="float:right"],
    .page-detail-content img.alignleft,
    .page-detail-content img.align-left,
    .page-detail-content img.alignright,
    .page-detail-content img.align-right,
    .page-detail-content img.aligncenter,
    .page-detail-content img.align-center,
    .rich-text img[style*="float: left"],
    .rich-text img[style*="float:left"],
    .rich-text img[style*="float: right"],
    .rich-text img[style*="float:right"] {
        display: block;
        float: none !important;
        width: 100% !important;
        max-width: 100%;
        height: auto;
        margin: 1.4rem 0;
    }

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

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

    .dashboard-card {
        min-height: 110px;
    }

    .login-card {
        padding: 26px;
    }
}

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