:root {
    --accent: #0087d2;
    --text: #222222;
    --muted: #666666;
    --line: #e1e1e1;
    --bg: #ffffff;
    --surface: #f8f8f8;
    --radius: 10px;
    --shadow-soft: 0 8px 24px rgba(18, 34, 48, .08);
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: 'Source Sans Pro', 'Segoe UI', sans-serif;
    color: var(--text);
    background: #fff;
    line-height: 1.55;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', 'Source Sans Pro', sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color .25s ease, background-color .25s ease, border-color .25s ease, transform .25s ease;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid rgba(0, 135, 210, .45);
    outline-offset: 2px;
}

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

.container {
    width: min(1180px, 92%);
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(8px);
    z-index: 40;
    border-bottom: 1px solid var(--line);
}

.site-header.home-header {
    position: absolute;
    top: 52px;
}

.head-top {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 16px 0 18px;
    border-bottom: 1px solid var(--line);
}

.head-top-left { justify-self: start; }
.head-top-right { justify-self: end; }

.logo {
    justify-self: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    font-size: 2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.logo img {
    max-height: 56px;
    width: auto;
}

.circle-link {
    width: 36px;
    height: 36px;
    border: 1px dashed #b7b7b7;
    border-radius: 999px;
    color: #999;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

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

.head-nav-row {
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
    padding: 14px 0;
}

.menu-toggle {
    display: none;
    border: 1px solid #d0d0d0;
    background: #fff;
    color: #333;
    border-radius: 7px;
    padding: .45rem .8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.main-nav > ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 0;
}

.main-nav > ul > li {
    position: relative;
}

.main-nav > ul > li > a {
    display: block;
    text-transform: uppercase;
    font-size: .88rem;
    letter-spacing: .04em;
    padding: 0 .95rem;
    color: #222;
}

.main-nav > ul > li > a:hover,
.main-nav > ul > li > a.active {
    color: var(--accent);
}

.submenu {
    list-style: none;
    margin: 0;
    padding: .35rem 0;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 210px;
    background: #fff;
    border: 1px solid #e7edf1;
    box-shadow: 0 8px 20px rgba(0,0,0,.12);
    display: none;
    z-index: 50;
}

.has-submenu:hover .submenu { display: block; }

.submenu li a {
    display: block;
    padding: .62rem .85rem;
    color: #666;
    font-size: .95rem;
    text-transform: uppercase;
    letter-spacing: .03em;
}

.submenu li a:hover {
    background: var(--accent);
    color: #fff;
}

main {
    margin-top: 0;
    flex: 1 0 auto;
}

.hero-slider {
    position: relative;
    height: 100vh;
    min-height: 640px;
    overflow: hidden;
    background: #000;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity .8s ease;
}

.hero-slide.active { opacity: 1; }

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-dots {
    position: absolute;
    right: 62px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 5;
}

.hero-dot {
    width: 12px;
    height: 12px;
    border: 2px solid rgba(255,255,255,.7);
    border-radius: 999px;
    background: transparent;
    cursor: pointer;
}

.hero-dot.active {
    width: 16px;
    height: 16px;
    border-color: #fff;
}

.section { padding: 76px 0; }
.section-alt { background: #fafafa; }

.welcome-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
}

.welcome-left {
    background: var(--accent);
    color: #fff;
    padding: 72px clamp(22px, 4vw, 62px);
}

.welcome-content h2 {
    margin: 0 0 12px;
    font-size: clamp(2rem, 3vw, 3.5rem);
    line-height: 1.05;
    text-transform: uppercase;
}

.welcome-content h3 {
    margin: 0 0 18px;
    font-size: 1.6rem;
    font-weight: 600;
}

.welcome-content p {
    margin: 0 0 14px;
    color: rgba(255,255,255,.9);
}

.more-link {
    display: inline-block;
    margin-top: 8px;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-weight: 700;
    color: #fff;
}

.welcome-right img {
    width: 100%;
    height: 100%;
    min-height: 420px;
    object-fit: cover;
}

.heading-center {
    text-align: center;
    margin-bottom: 34px;
}

.heading-center h2 {
    font-size: clamp(1.9rem, 3vw, 3rem);
    margin: 0 0 10px;
    text-transform: uppercase;
}

.heading-center p {
    margin: 0;
    font-size: 1.15rem;
    color: #555;
    max-width: 740px;
    margin-left: auto;
    margin-right: auto;
}

.method-section { padding-top: 86px; }

.method-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.method-grid article {
    border: 1px solid #ececec;
    padding: 20px;
    background: #fff;
    border-radius: var(--radius);
    transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}

.method-grid article:hover {
    transform: translateY(-4px);
    border-color: #dde7ee;
    box-shadow: var(--shadow-soft);
}

.method-grid article span {
    display: inline-block;
    font-size: .82rem;
    color: #888;
    margin-bottom: 6px;
}

.method-grid h3 {
    margin: 0 0 8px;
    font-size: 1.3rem;
}

.method-grid p {
    margin: 0;
    color: #666;
}

.portfolio-home .section-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.portfolio-home .section-head h3 {
    margin: 0;
    text-transform: uppercase;
    letter-spacing: .05em;
    font-size: 1rem;
}

.portfolio-home .section-head.only-link {
    justify-content: flex-end;
}

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

.category-block {
    margin-top: 1.3rem;
    padding: .9rem;
    border: 1px solid #d8e6f1;
    border-radius: 12px;
    background: linear-gradient(180deg, #f8fcff 0%, #fdfefe 100%);
}

.category-preview-cards {
    margin-top: .8rem;
    padding-top: .75rem;
    border-top: 1px dashed #cbddeb;
}

.category-card {
    border-color: #cfe1ef;
    box-shadow: none;
}

.category-preview-head h4 {
    margin: .9rem 0 0;
    font-size: .98rem;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #3b5568;
}

.category-project-card {
    border-color: #dce8f1;
}

.card {
    background: #fff;
    border: 1px solid #e7edf1;
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-soft);
    border-color: #dce8f1;
}

.card.is-clickable {
    cursor: pointer;
}

.card.is-clickable:focus-visible {
    outline: 3px solid rgba(0, 135, 210, .35);
    outline-offset: 2px;
}

.card img { width: 100%; height: 250px; object-fit: cover; }

.card-body {
    padding: 14px 14px 16px;
    display: flex;
    flex-direction: column;
    gap: .42rem;
    height: 100%;
}

.badge {
    display: inline-block;
    background: #eaf5fb;
    color: var(--accent);
    font-size: .74rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    border-radius: 999px;
    padding: .24rem .58rem;
    margin-bottom: .45rem;
}

.badge-status {
    background: #ffd84f;
    color: #1f2730;
    font-weight: 800;
    border: 1px solid #e1b600;
    font-size: .8rem;
    padding: .3rem .64rem;
    box-shadow: 0 2px 8px rgba(0,0,0,.16);
}

.card-body h3 { margin: .28rem 0 .3rem; font-size: clamp(1.08rem, 1.7vw, 1.24rem); }
.card-body p { margin: 0; color: #666; line-height: 1.48; }
.link {
    color: var(--accent);
    font-weight: 700;
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: .25rem;
}

.link::after {
    content: "→";
    font-size: .9em;
}

.cta {
    background: #1f2830;
    color: #fff;
    text-align: center;
}

.cta h2 { margin: 0 0 10px; font-size: clamp(1.6rem, 2.7vw, 2.5rem); text-transform: uppercase; }
.cta p { margin: 0 0 18px; color: rgba(255,255,255,.85); }

.btn {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    border: 0;
    border-radius: 0;
    padding: .72rem 1.08rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    cursor: pointer;
    transition: transform .2s ease, filter .2s ease;
}

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

.btn-light {
    background: #fff;
    color: #222;
}

.btn-secondary {
    background: #fff;
    color: #26333d;
    border: 1px solid #ced8e0;
}

.btn-sm {
    padding: .45rem .7rem;
    font-size: .78rem;
}

.narrow { width: min(820px, 92%); margin: 0 auto; }
.center { text-align: center; }
.lead { color: #666; font-size: 1.08rem; }
.rich-text { white-space: normal; color: #333; }
.rich-text p { margin: 0 0 .82rem; }
.rich-text p:last-child { margin-bottom: 0; }
.rich-text strong { font-weight: 700; color: #111; }
.rich-text em { font-style: italic; }
.mt-2 { margin-top: 1.2rem; }

.detail-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 2rem; align-items: start; }
.gallery-main-wrap { border: 1px solid #e4e4e4; border-radius: var(--radius); overflow: hidden; }
.gallery-main { width: 100%; height: 500px; object-fit: cover; }
.gallery-main-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
    padding: .7rem;
    border-top: 1px solid #e8edf2;
    background: #f8fbfd;
}
.gallery-caption {
    margin-top: .55rem;
    border: 1px solid #dde5ec;
    background: #f8fbfd;
    border-radius: 8px;
    padding: .58rem .72rem;
    color: #2d3a44;
    min-height: 44px;
}
.gallery-caption.is-empty {
    display: none;
}
.thumbs { display: grid; grid-template-columns: repeat(6, 1fr); gap: .42rem; margin-top: .62rem; }
.thumb-btn { border: 1px solid #e1e1e1; padding: 0; background: #fff; cursor: pointer; border-radius: 8px; overflow: hidden; }
.thumb-btn img { width: 100%; height: 76px; object-fit: cover; }
.thumb-btn.is-active { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(0, 135, 210, .15); }

.gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(8, 14, 20, .92);
    padding: 3rem 1.2rem 1.6rem;
}

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

.gallery-lightbox-close {
    position: absolute;
    top: 14px;
    right: 18px;
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
}

.gallery-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border: 1px solid rgba(255,255,255,.45);
    background: rgba(19, 31, 41, .55);
    color: #fff;
    width: 46px;
    height: 46px;
    border-radius: 999px;
    cursor: pointer;
    font-size: 1.7rem;
    line-height: 1;
}

.gallery-lightbox-nav.prev { left: 16px; }
.gallery-lightbox-nav.next { right: 16px; }

.gallery-lightbox-figure {
    width: min(1320px, 100%);
    margin: 0;
}

.gallery-lightbox-figure img {
    width: 100%;
    max-height: 78vh;
    object-fit: contain;
}

.gallery-lightbox-figure figcaption {
    margin-top: .72rem;
    color: #ebf4fb;
    background: rgba(20, 33, 44, .62);
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 8px;
    padding: .58rem .72rem;
    min-height: 44px;
}

.gallery-lightbox-figure figcaption.is-empty {
    display: none;
}

.share-tools {
    display: flex;
    align-items: center;
    gap: .45rem;
    margin-top: .95rem;
    flex-wrap: wrap;
}

.share-tools span {
    color: #55616a;
    font-size: .93rem;
    font-weight: 600;
}

.share-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: 1px solid #d9dde1;
    color: #3a4650;
    background: #fff;
}

.share-icon svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.share-icon:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.hero-slider-inner {
    min-height: 520px;
    height: 74vh;
}

.about-legacy-section {
    padding-top: 64px;
    padding-bottom: 64px;
}

.about-legacy-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 1.2rem;
    align-items: center;
}

.about-legacy-grid.reverse {
    grid-template-columns: 1fr 1.1fr;
}

.about-legacy-image img {
    width: 100%;
    height: 100%;
    min-height: 360px;
    object-fit: cover;
    border: 1px solid #e6e6e6;
}

.about-legacy-list p {
    margin: 0 0 .65rem;
}

.about-legacy-list ul {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem;
}

.about-legacy-list li {
    position: relative;
    padding-left: 1.15rem;
    margin: 0 0 .52rem;
    color: #333;
}

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

.about-recent-projects .card img {
    height: 210px;
}

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-card { border: 1px solid #e5e5e5; padding: 1rem; background: #fff; }
label { display: block; margin-bottom: .72rem; color: #666; font-size: .95rem; }
input, textarea, select {
    width: 100%;
    margin-top: .22rem;
    border: 1px solid #d6d6d6;
    border-radius: 0;
    padding: .58rem .65rem;
    font: inherit;
}

.site-footer {
    background: #101417;
    color: #cbd2d8;
    margin-top: 3rem;
}

.footer-accent {
    height: 16px;
    background:
        radial-gradient(circle at 100% 150%, #0087d2 24%, #0087d2 25%, #0087d2 28%, #0087d2 29%, #0087d2 36%, #0087d2 36%, #0087d2 40%, transparent 40%, transparent),
        radial-gradient(circle at 0 150%, #0087d2 24%, #0087d2 25%, #0087d2 28%, #0087d2 29%, #0087d2 36%, #0087d2 36%, #0087d2 40%, transparent 40%, transparent),
        radial-gradient(circle at 50% 100%, #0087d2 10%, #0087d2 11%, #0087d2 23%, #0087d2 24%, #0087d2 30%, #0087d2 31%, #0087d2 43%, #0087d2 44%, #0087d2 50%, #0087d2 51%, #0087d2 63%, #0087d2 64%, #0087d2 71%, transparent 71%, transparent),
        radial-gradient(circle at 100% 50%, #0087d2 5%, #0087d2 6%, #0087d2 15%, #0087d2 16%, #0087d2 20%, #0087d2 21%, #0087d2 30%, #0087d2 31%, #0087d2 35%, #0087d2 36%, #0087d2 45%, #0087d2 46%, #0087d2 49%, transparent 50%, transparent),
        radial-gradient(circle at 0 50%, #0087d2 5%, #0087d2 6%, #0087d2 15%, #0087d2 16%, #0087d2 20%, #0087d2 21%, #0087d2 30%, #0087d2 31%, #0087d2 35%, #0087d2 36%, #0087d2 45%, #0087d2 46%, #0087d2 49%, transparent 50%, transparent);
    background-size: 26px 52px;
}

.footer-main {
    padding: 3rem 0 2.4rem;
    background: #171d22;
}

.footer-main-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.4rem;
}

.footer-box h3 {
    margin: 0 0 .9rem;
    color: #fff;
    text-transform: uppercase;
    font-size: 1.1rem;
    letter-spacing: .04em;
}

.footer-logo {
    display: inline-flex;
    margin: 0 0 .9rem;
}

.footer-logo img {
    max-height: 52px;
    width: auto;
}

.footer-box p {
    margin: 0 0 .65rem;
    color: #b8c1c9;
}

.footer-more {
    color: #7ec5ee;
    text-transform: uppercase;
    font-size: .82rem;
    letter-spacing: .08em;
    font-weight: 700;
}

.footer-links-list,
.footer-contact-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-links-list li,
.footer-contact-list li {
    margin-bottom: .62rem;
    color: #b8c1c9;
}

.footer-links-list a,
.footer-contact-list a {
    color: #d7e8f4;
}

.footer-contact-item {
    display: grid;
    grid-template-columns: 18px 1fr;
    gap: .45rem;
    align-items: start;
}

.footer-contact-icon {
    display: inline-flex;
    width: 18px;
    height: 18px;
    color: #7ec5ee;
    margin-top: .05rem;
}

.footer-contact-icon svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.footer-contact-content {
    line-height: 1.45;
    word-break: break-word;
}

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

.footer-bottom {
    background: rgba(0, 0, 0, .45);
    padding: .95rem 0;
}

.footer-bottom-grid {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1rem;
    align-items: center;
}

.footer-menu {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-menu a {
    color: #e7eef3;
    font-size: .84rem;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.footer-menu a:hover {
    color: #7ec5ee;
}

.footer-copy {
    color: #a7b1ba;
    font-size: .85rem;
    text-align: right;
}

.alert { margin: 1rem auto 0; padding: .85rem 1rem; border-radius: 6px; width: min(1180px, 92%); }
.alert-success { background: #e3f4e8; color: #1e622f; }
.alert-error { background: #fbe7e7; color: #802121; }

.site-breadcrumb {
    margin: 1rem 0 .35rem;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
    scrollbar-color: #c9d4dc #eef3f7;
}

.site-breadcrumb ol {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0;
    width: 100%;
    min-width: 0;
}

.site-breadcrumb li {
    display: inline-flex;
    align-items: center;
    position: relative;
    margin-right: .55rem;
    max-width: 17rem;
    min-width: 0;
    flex: 0 1 auto;
    color: #5a6873;
    font-size: .94rem;
}

.site-breadcrumb li a,
.site-breadcrumb li span {
    display: block;
    min-height: 2.5rem;
    width: 100%;
    max-width: 100%;
    padding: .6rem 1rem .6rem 1.25rem;
    position: relative;
    background: #e9eef3;
    color: #4c5f6f;
    font-size: .94rem;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.site-breadcrumb li a::after,
.site-breadcrumb li span::after {
    content: "";
    position: absolute;
    top: 0;
    right: -1.1rem;
    width: 0;
    height: 0;
    border-top: 1.25rem solid transparent;
    border-bottom: 1.25rem solid transparent;
    border-left: 1.1rem solid #e9eef3;
    z-index: 2;
}

.site-breadcrumb li:not(:first-child) a::before,
.site-breadcrumb li:not(:first-child) span::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
    border-top: 1.25rem solid transparent;
    border-bottom: 1.25rem solid transparent;
    border-left: .95rem solid #fff;
    z-index: 1;
}

.site-breadcrumb li:first-child a,
.site-breadcrumb li:first-child span {
    padding-left: 1rem;
    border-top-left-radius: 7px;
    border-bottom-left-radius: 7px;
}

.site-breadcrumb li:last-child {
    margin-right: 0;
}

.site-breadcrumb li:last-child a,
.site-breadcrumb li:last-child span {
    border-top-right-radius: 7px;
    border-bottom-right-radius: 7px;
}

.site-breadcrumb li.is-link a:hover {
    background: #dfe7ee;
    color: #2f4556;
}

.site-breadcrumb li.is-link a:hover::after {
    border-left-color: #dfe7ee;
}

.site-breadcrumb li.is-current a,
.site-breadcrumb li.is-current span {
    background: var(--accent);
    color: #fff;
    font-weight: 700;
    max-width: min(28rem, 58vw);
}

.site-breadcrumb li.is-current a::after,
.site-breadcrumb li.is-current span::after {
    border-left-color: var(--accent);
}

.site-breadcrumb li.is-home a,
.site-breadcrumb li.is-home span {
    display: inline-flex;
    align-items: center;
    width: 2.9rem;
    min-width: 2.9rem;
    justify-content: center;
    text-indent: -9999px;
    padding-left: 0;
    padding-right: 0;
}

.site-breadcrumb li.is-home a::before,
.site-breadcrumb li.is-home span::before {
    content: "\2302";
    text-indent: 0;
    position: relative;
    border: 0;
    width: auto;
    height: auto;
    color: #6b7f92;
    font-size: 1.15rem;
    line-height: 1;
    left: auto;
    top: auto;
}

.site-breadcrumb li.is-home.is-current a::before,
.site-breadcrumb li.is-home.is-current span::before {
    color: #fff;
}

.site-breadcrumb li.is-home a::after,
.site-breadcrumb li.is-home span::after {
    right: -1rem;
    border-left-width: 1rem;
}

.site-breadcrumb li.is-home a:hover::before {
    color: #4f667a;
}

.site-breadcrumb li:last-child a::after,
.site-breadcrumb li:last-child span::after {
    display: none;
}

.site-breadcrumb::-webkit-scrollbar {
    height: 7px;
}

.site-breadcrumb::-webkit-scrollbar-thumb {
    background: #c9d4dc;
    border-radius: 999px;
}

.site-breadcrumb::-webkit-scrollbar-track {
    background: #eef3f7;
    border-radius: 999px;
}

.detail-back-wrap {
    margin: .1rem 0 1rem;
}

.back-to-category {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .45rem .82rem;
    border: 1px solid #d9e4ec;
    border-radius: 999px;
    background: linear-gradient(180deg, #f8fbfe 0%, #f1f6fa 100%);
    color: #284153;
    font-weight: 700;
    font-size: .93rem;
    letter-spacing: .01em;
    box-shadow: 0 4px 12px rgba(20, 45, 64, .07);
}

.back-to-category-icon {
    width: 1.45rem;
    height: 1.45rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #e9f1f7;
    color: #4d6475;
    font-size: .95rem;
    line-height: 1;
    transition: transform .25s ease, background-color .25s ease, color .25s ease;
}

.back-to-category:hover {
    color: #183042;
    border-color: #c5d8e6;
    background: linear-gradient(180deg, #f4f9fd 0%, #eaf3fa 100%);
    box-shadow: 0 8px 16px rgba(18, 42, 60, .12);
    transform: translateY(-1px);
}

.back-to-category:hover .back-to-category-icon {
    transform: translateX(-2px);
    background: rgba(0, 135, 210, .14);
    color: var(--accent);
}

.back-to-category:focus-visible {
    border-color: rgba(0, 135, 210, .45);
}

@media (max-width: 1120px) {
    .hero-dots { right: 28px; }
    .method-grid { grid-template-columns: repeat(2, 1fr); }
    .cards { grid-template-columns: repeat(2, 1fr); }
    .detail-grid { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
    .site-header { position: static; top: auto; }
    .head-top {
        grid-template-columns: 1fr;
        gap: .7rem;
        text-align: center;
    }
    .head-top-left,
    .head-top-right,
    .logo { justify-self: center; }

    .head-nav-row { grid-template-columns: 1fr; gap: .5rem; }
    .menu-toggle { display: inline-flex; justify-self: center; }

    .main-nav { display: none; }
    .main-nav.open {
        display: block;
        border: 1px solid #e5edf3;
        border-radius: 10px;
        background: #fff;
        padding: .55rem .7rem;
        box-shadow: 0 8px 18px rgba(19, 36, 50, .08);
    }
    .main-nav > ul { flex-direction: column; align-items: stretch; gap: .2rem; }
    .main-nav > ul > li > a {
        padding: .45rem .35rem;
        border-radius: 7px;
        text-align: center;
    }

    .site-breadcrumb li {
        max-width: 12.5rem;
        margin-right: .35rem;
    }

    .site-breadcrumb li a,
    .site-breadcrumb li span {
        min-height: 2.2rem;
        font-size: .86rem;
        padding: .5rem .8rem .5rem 1rem;
    }

    .site-breadcrumb li a::after,
    .site-breadcrumb li span::after {
        right: -.95rem;
        border-top-width: 1.1rem;
        border-bottom-width: 1.1rem;
        border-left-width: .95rem;
    }

    .site-breadcrumb li:not(:first-child) a::before,
    .site-breadcrumb li:not(:first-child) span::before {
        border-top-width: 1.1rem;
        border-bottom-width: 1.1rem;
        border-left-width: .82rem;
    }

    .site-breadcrumb li.is-home a,
    .site-breadcrumb li.is-home span {
        width: 2.5rem;
        min-width: 2.5rem;
    }

    .back-to-category {
        font-size: .88rem;
        padding: .4rem .72rem;
    }

    .site-breadcrumb li.is-current a,
    .site-breadcrumb li.is-current span {
        max-width: min(16rem, 68vw);
    }

    .submenu {
        position: static;
        display: none;
        box-shadow: none;
        border: 0;
        margin-top: .1rem;
        background: transparent;
        min-width: 0;
        padding: 0;
    }
    .has-submenu.open .submenu { display: block; }
    .submenu li a {
        text-align: center;
        padding: .38rem .45rem;
        font-size: .88rem;
        border-radius: 6px;
    }

    .hero-slider { min-height: 500px; height: 72vh; }
    .hero-dots { right: 12px; }

    .welcome-section,
    .contact-grid,
    .footer-main-grid {
        grid-template-columns: 1fr;
    }

    .about-legacy-grid,
    .about-legacy-grid.reverse {
        grid-template-columns: 1fr;
    }

    .footer-bottom-grid {
        grid-template-columns: 1fr;
    }

    .footer-copy {
        text-align: left;
    }

    .welcome-right img { min-height: 280px; }
}

@media (max-width: 620px) {
    .cards { grid-template-columns: 1fr; }
    .method-grid { grid-template-columns: 1fr; }
    .thumbs { grid-template-columns: repeat(4, 1fr); }
    .gallery-main { height: 330px; }
    .gallery-main-actions .btn {
        width: 100%;
    }
    .gallery-lightbox {
        padding-left: .65rem;
        padding-right: .65rem;
    }
    .gallery-lightbox-nav {
        width: 40px;
        height: 40px;
        font-size: 1.45rem;
    }
    .gallery-lightbox-nav.prev { left: 8px; }
    .gallery-lightbox-nav.next { right: 8px; }
}
