: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: 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: #ffffff;
}

.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);
}

.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,
.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-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;
}

.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;
}

@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;
}

.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: 42px;
    height: 42px;
    object-fit: contain;
    align-self: flex-start;
    padding: 8px;
    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;
    }

    .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;
    }
}
