:root {
    --bg: #eef2f7;
    --surface: #ffffff;
    --surface-soft: #f7fafc;
    --text: #162438;
    --muted: #5f7085;
    --line: #d3dbe6;
    --primary: #0f5f74;
    --primary-dark: #0a3d50;
    --accent: #d6892b;
    --radius: 20px;
    --radius-xl: 30px;
    --shadow-soft: 0 14px 30px rgba(22, 36, 56, 0.08);
    --shadow-strong: 0 16px 36px rgba(10, 61, 80, 0.18);
    --header-bg: rgba(244, 248, 253, 0.88);
    --footer-bg: #0f172a;
    --footer-text: #e5eef8;
    --footer-muted: #bfd0e1;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    font-family: "Segoe UI", "Trebuchet MS", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at 9% -15%, rgba(15, 95, 116, 0.18), transparent 44%),
        radial-gradient(circle at 96% -6%, rgba(214, 137, 43, 0.14), transparent 36%),
        linear-gradient(180deg, #f8fbff 0%, var(--bg) 100%);
    line-height: 1.45;
    position: relative;
    min-height: 100vh;
}

body[data-theme="dark"] {
    --bg: #0f1722;
    --surface: #1a2533;
    --surface-soft: #223245;
    --text: #deebf9;
    --muted: #9cb3ca;
    --line: #2f4156;
    --primary: #3ca7c0;
    --primary-dark: #8dd2e2;
    --accent: #dfb16c;
    --shadow-soft: 0 16px 30px rgba(0, 0, 0, 0.34);
    --shadow-strong: 0 18px 38px rgba(0, 0, 0, 0.45);
    --header-bg: rgba(11, 20, 31, 0.9);
    --footer-bg: #08111d;
    --footer-text: #dce8f5;
    --footer-muted: #9eb4ca;
    background:
        radial-gradient(circle at 9% -15%, rgba(61, 141, 160, 0.25), transparent 44%),
        radial-gradient(circle at 96% -6%, rgba(223, 177, 108, 0.18), transparent 36%),
        linear-gradient(180deg, #0b1420 0%, var(--bg) 100%);
}

.body-logo-watermark {
    position: fixed;
    inset: 0;
    background-image: url("../../uploads/logo.png");
    background-repeat: no-repeat;
    background-position: center 58%;
    background-size: min(420px, 58vw);
    opacity: 0.045;
    pointer-events: none;
    z-index: 0;
}

.site-header,
.site-main,
.site-footer {
    position: relative;
    z-index: 1;
}

.container {
    width: min(1140px, 92vw);
    margin-inline: auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid transparent;
    background: var(--header-bg);
    backdrop-filter: blur(10px);
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.site-header.is-scrolled {
    border-color: var(--line);
    box-shadow: 0 10px 24px rgba(22, 36, 56, 0.12);
}

.header-inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 1rem;
    align-items: center;
    padding: 0.78rem 0;
    position: relative;
}

.brand {
    display: inline-grid;
    grid-auto-flow: column;
    align-items: center;
    gap: 0.72rem;
    text-decoration: none;
}

.brand-logo-wrap {
    width: 74px;
    height: 74px;
    border-radius: 50%;
    padding: 5px;
    background: linear-gradient(145deg, rgba(15, 95, 116, 0.22), rgba(214, 137, 43, 0.25));
    box-shadow: 0 10px 26px rgba(15, 95, 116, 0.26);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.brand-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid rgba(15, 95, 116, 0.2);
}

.brand:hover .brand-logo-wrap {
    transform: rotate(-7deg) scale(1.03);
    box-shadow: 0 14px 30px rgba(15, 95, 116, 0.36);
}

.brand-text {
    color: var(--primary-dark);
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.brand-text span {
    color: var(--accent);
}

.main-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.62rem;
    justify-content: end;
    align-items: center;
}

.main-nav a {
    text-decoration: none;
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid transparent;
    border-radius: 999px;
    padding: 0.42rem 0.78rem;
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.main-nav a:hover,
.main-nav a.is-active {
    border-color: rgba(15, 95, 116, 0.5);
    background: rgba(15, 95, 116, 0.09);
    color: var(--primary-dark);
    transform: translateY(-1px);
}

.menu-toggle {
    display: none;
    border: 1px solid var(--line);
    background: var(--surface);
    border-radius: 12px;
    width: 42px;
    height: 40px;
    padding: 8px;
    cursor: pointer;
    gap: 5px;
    align-items: center;
    justify-items: stretch;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text);
}

.site-main {
    display: grid;
    gap: 2.2rem;
    padding-bottom: 2rem;
}

.hero {
    padding: 1.8rem 0 0.4rem;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.35fr 0.65fr;
    gap: 1rem;
}

.hero-main,
.hero-aside {
    background: var(--surface);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--line);
    padding: 1.25rem;
}

.hero-main {
    background:
        linear-gradient(145deg, rgba(15, 95, 116, 0.04), rgba(214, 137, 43, 0.04)),
        #ffffff;
}

.hero-main h1 {
    margin: 0 0 0.8rem;
    font-size: clamp(1.45rem, 2.7vw, 2rem);
}

.hero-main p,
.hero-aside p {
    margin: 0;
    color: var(--muted);
}

.hero-aside {
    display: grid;
    gap: 0.8rem;
    align-content: center;
}

.hero-aside h2 {
    margin: 0;
    color: var(--primary-dark);
}

.hero-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.7rem;
    margin-top: 1rem;
}

.metric {
    background: var(--surface-soft);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 0.7rem;
    text-align: center;
}

.metric strong {
    display: block;
    font-size: 1.16rem;
    color: var(--primary-dark);
}

.section {
    display: grid;
    gap: 1rem;
}

.section-title {
    margin: 0;
    font-size: 1.45rem;
}

.section-subtitle {
    margin: 0;
    color: var(--muted);
}

.ads-shell {
    background: linear-gradient(180deg, #ffffff 0%, #f9fbfd 100%);
    border: 1px solid var(--line);
    border-radius: 28px;
    padding: 1.1rem;
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}

.ads-viewport {
    overflow: hidden;
    border-radius: 22px;
}

.ads-track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(230px, 290px);
    gap: 1rem;
    transform: translateX(0);
    will-change: transform;
}

.ad-card {
    display: grid;
    grid-template-rows: 155px auto auto;
    gap: 0.4rem;
    border: 1px solid var(--line);
    border-radius: 22px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 8px 20px rgba(17, 37, 59, 0.08);
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.ad-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 28px rgba(10, 61, 80, 0.2);
    border-color: rgba(15, 95, 116, 0.35);
}

.ad-card img {
    width: 100%;
    height: 155px;
    object-fit: cover;
}

.ad-card h3 {
    margin: 0;
    font-size: 1rem;
    padding: 0 0.8rem;
    color: var(--primary-dark);
}

.ad-card a,
.ad-card p {
    margin: 0;
    padding: 0 0.8rem 0.85rem;
    font-size: 0.88rem;
    color: var(--muted);
    text-decoration: none;
}

.ad-card a:hover {
    color: var(--primary);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(250px, 360px));
    justify-content: center;
    gap: 1rem;
}

.services-stack {
    display: grid;
    gap: 1rem;
}

.service-panel-static {
    border: 1px solid var(--line);
    border-radius: 28px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbfe 100%);
    box-shadow: var(--shadow-soft);
    padding: 1rem;
}

.service-panel-head {
    padding: 0.2rem 0.25rem 0.7rem;
    border-bottom: 1px dashed rgba(15, 95, 116, 0.22);
    margin-bottom: 0.8rem;
}

.service-panel-head h3 {
    margin: 0 0 0.45rem;
    color: var(--primary-dark);
    font-size: 1.2rem;
}

.service-panel-head p {
    margin: 0;
    color: var(--muted);
}

.service-photo-list {
    display: grid;
    gap: 0.7rem;
}

.service-photo-row {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 0.8rem;
    align-items: center;
    border: 1px solid rgba(15, 95, 116, 0.16);
    border-radius: 20px;
    background: #ffffff;
    padding: 0.5rem;
}

.service-photo-row img {
    width: 100%;
    height: 126px;
    object-fit: cover;
    border-radius: 14px;
    border: 1px solid rgba(15, 95, 116, 0.2);
}

.service-photo-text h4 {
    margin: 0 0 0.4rem;
    color: var(--primary-dark);
    font-size: 1rem;
}

.service-photo-text p {
    margin: 0;
    color: var(--muted);
    font-size: 0.92rem;
}

.static-photo-timeline {
    display: grid;
    gap: 1rem;
}

.static-photo-item {
    display: grid;
    grid-template-columns: minmax(290px, 560px) 1fr;
    gap: 1rem;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 30px;
    background: linear-gradient(145deg, rgba(15, 95, 116, 0.08), rgba(214, 137, 43, 0.06)), var(--surface);
    box-shadow: var(--shadow-soft);
    padding: 0.9rem;
    overflow: hidden;
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.static-photo-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-strong);
    border-color: rgba(15, 95, 116, 0.48);
}

.static-photo-right {
    grid-template-columns: 1fr minmax(290px, 560px);
}

.static-photo-right .static-photo-media {
    order: 2;
}

.static-photo-right .static-photo-copy {
    order: 1;
}

.static-photo-media {
    margin: 0;
    border-radius: 22px;
    overflow: hidden;
}

.static-photo-media img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease, filter 0.35s ease;
}

.static-photo-item:hover .static-photo-media img {
    transform: scale(1.05);
    filter: saturate(1.08) contrast(1.02);
}

.static-photo-copy {
    display: grid;
    gap: 0.45rem;
    padding: 0.35rem 0.2rem;
}

.static-photo-service {
    margin: 0;
    display: inline-block;
    width: fit-content;
    padding: 0.24rem 0.7rem;
    border-radius: 999px;
    border: 1px solid rgba(15, 95, 116, 0.45);
    background: rgba(15, 95, 116, 0.08);
    color: var(--primary-dark);
    font-weight: 700;
    font-size: 0.84rem;
}

.static-photo-copy h3 {
    margin: 0;
    font-size: 1.3rem;
    color: var(--primary-dark);
}

.static-photo-copy > p:not(.static-photo-service) {
    margin: 0;
    color: var(--muted);
    font-size: 0.98rem;
}

.service-card {
    background: linear-gradient(180deg, #ffffff 0%, #f9fbfd 100%);
    border-radius: 34px;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    cursor: pointer;
    max-height: 362px;
    transition: max-height 0.5s ease, box-shadow 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-7px);
    border-color: rgba(15, 95, 116, 0.45);
    box-shadow: var(--shadow-strong);
}

.service-card.expanded {
    max-height: 900px;
    border-color: rgba(15, 95, 116, 0.58);
    box-shadow: var(--shadow-strong);
}

.service-slider {
    overflow: hidden;
    padding: 0.75rem 0.9rem 0.35rem;
}

.slides {
    display: flex;
    transition: transform 0.6s ease;
}

.slide {
    flex: 0 0 100%;
    aspect-ratio: 1 / 1;
    padding: 0 0.5rem;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid rgba(15, 95, 116, 0.08);
    box-shadow: 0 8px 22px rgba(10, 61, 80, 0.15);
}

.service-content {
    display: grid;
    gap: 0.68rem;
    padding: 0.15rem 1rem 1.15rem;
}

.service-content h3 {
    margin: 0;
    font-size: 1.12rem;
    color: var(--primary-dark);
}

.service-content p {
    margin: 0;
    color: var(--muted);
    font-size: 0.93rem;
}

.service-details {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.45s ease, opacity 0.35s ease;
}

.service-card.expanded .service-details {
    max-height: 530px;
    opacity: 1;
}

.service-note-list {
    display: grid;
    gap: 0.55rem;
    margin-top: 0.65rem;
}

.service-note-item {
    display: grid;
    grid-template-columns: 58px 1fr;
    gap: 0.55rem;
    align-items: center;
    border: 1px solid rgba(15, 95, 116, 0.18);
    border-radius: 16px;
    background: rgba(15, 95, 116, 0.04);
    padding: 0.5rem;
}

.service-note-item img {
    width: 58px;
    height: 58px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid rgba(15, 95, 116, 0.24);
}

.service-note-item p {
    margin: 0;
    font-size: 0.84rem;
    color: var(--muted);
}

.service-note-item strong {
    color: var(--primary-dark);
}

.close-service {
    border: 1px solid rgba(15, 95, 116, 0.3);
    background: rgba(15, 95, 116, 0.08);
    color: var(--primary-dark);
    border-radius: 999px;
    padding: 0.45rem 0.95rem;
    cursor: pointer;
    margin-top: 0.7rem;
    font-weight: 600;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.8rem;
}

.contact-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 0.95rem;
    box-shadow: 0 8px 20px rgba(17, 37, 59, 0.06);
}

.contact-card h3 {
    margin: 0 0 0.4rem;
    color: var(--primary-dark);
}

.contact-card p {
    margin: 0;
    color: var(--muted);
}

.empty-message {
    margin: 0;
    color: var(--muted);
}

.gallery-header {
    padding: 2rem 0 0.4rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 0.9rem;
}

.gallery-item {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 22px rgba(17, 37, 59, 0.08);
}

.gallery-item img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
}

.gallery-item p {
    margin: 0;
    padding: 0.65rem 0.72rem;
    font-size: 0.88rem;
    color: var(--muted);
}

.site-footer {
    margin-top: 2rem;
    padding: 1.8rem 0;
    background: var(--footer-bg);
    color: var(--footer-text);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.8rem;
}

.footer-grid h3 {
    margin-top: 0;
}

.footer-grid p {
    margin: 0.3rem 0;
    color: var(--footer-muted);
}

.theme-toggle {
    margin-top: 0.75rem;
    border: 1px solid rgba(221, 235, 250, 0.5);
    background: rgba(221, 235, 250, 0.12);
    color: var(--footer-text);
    border-radius: 999px;
    padding: 0.48rem 0.9rem;
    font: inherit;
    font-size: 0.88rem;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.theme-toggle:hover {
    transform: translateY(-2px);
    background: rgba(221, 235, 250, 0.22);
    border-color: rgba(221, 235, 250, 0.8);
}

@media (max-width: 980px) {
    .hero-grid,
    .contact-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .services-grid {
        grid-template-columns: repeat(2, minmax(230px, 1fr));
    }

    .service-photo-row {
        grid-template-columns: 150px 1fr;
    }

    .static-photo-item,
    .static-photo-right {
        grid-template-columns: 1fr;
    }

    .static-photo-right .static-photo-media,
    .static-photo-right .static-photo-copy {
        order: initial;
    }

    .static-photo-media img {
        height: 290px;
    }
}

@media (max-width: 760px) {
    .header-inner {
        grid-template-columns: 1fr auto;
    }

    .brand-text {
        font-size: 1.03rem;
    }

    .brand-logo-wrap {
        width: 62px;
        height: 62px;
    }

    .menu-toggle {
        display: grid;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: calc(100% + 8px);
        right: 0;
        background: var(--surface);
        border: 1px solid var(--line);
        box-shadow: var(--shadow-soft);
        border-radius: 14px;
        padding: 0.65rem;
        width: min(260px, 82vw);
        gap: 0.45rem;
        justify-content: stretch;
    }

    .main-nav.is-open {
        display: grid;
    }

    .hero-metrics {
        grid-template-columns: 1fr;
    }

    .ads-viewport {
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
    }

    .ads-track {
        display: flex;
        grid-auto-columns: minmax(212px, 248px);
        gap: 0.75rem;
        padding: 0.15rem 0.15rem 0.45rem;
    }

    .ad-card {
        flex: 0 0 82vw;
        grid-template-rows: 138px auto auto;
        max-width: 330px;
        scroll-snap-align: start;
    }

    .ad-card img {
        height: 138px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-photo-row {
        grid-template-columns: 1fr;
    }

    .service-photo-row img {
        height: 185px;
    }

    .static-photo-media img {
        height: 220px;
    }

    .service-card {
        max-width: 370px;
        width: 100%;
        justify-self: center;
    }

    .body-logo-watermark {
        background-size: min(300px, 64vw);
        background-position: center 62%;
    }
}
