﻿:root {
    --font-primary: "Baskerville Old Face", Baskerville, "Times New Roman", serif;
    --bg: #f5f7fa;
    --surface: #ffffff;
    --surface-strong: #101820;
    --surface-soft: #edf1f6;
    --text: #1a2430;
    --text-muted: #667280;
    --brand: #8f1217;
    --brand-dark: #680c10;
    --accent: #f4c400;
    --hero-grad-start: #101820;
    --hero-grad-mid: #1d2b3d;
    --hero-grad-end: #341015;
    --shadow-soft: 0 12px 34px rgba(15, 23, 42, 0.07);
    --radius-lg: 18px;
}

/* UX/UI global debug off
html {
    scroll-behavior: smooth;
}
*/

body.site-body {
    font-family: var(--font-primary);
    color: var(--text);
    background: linear-gradient(180deg, #f9fbfd 0%, var(--bg) 100%);
}

h1, h2, h3, h4, h5, h6, .navbar-brand {
    font-family: var(--font-primary);
    letter-spacing: -0.01em;
}

.brand-block {
    display: inline-flex;
    align-items: center;
    gap: 0;
}

.brand-logo {
    height: 70px;
    width: auto;
    max-width: 240px;
    object-fit: contain;
    border-radius: 6px;
    background: transparent;
    padding: 0;
    border: 0;
}

.top-strip {
    background: #0f1720;
}

.vitrine-navbar {
    /* --scroll-progress: 0; */
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #e4eaf1;
    /* overflow: hidden; */
}

/* UX/UI global debug off
.vitrine-navbar::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -1px;
    width: calc(var(--scroll-progress) * 100%);
    height: 3px;
    background: linear-gradient(90deg, var(--brand-dark) 0%, var(--brand) 60%, var(--accent) 100%);
    transition: width 120ms linear;
    pointer-events: none;
}
*/

.vitrine-navbar .navbar-brand {
    color: var(--brand-dark);
}

.vitrine-navbar .navbar-brand:hover {
    color: var(--brand);
}

.vitrine-navbar .nav-link {
    /* position: relative; */
    color: #2b3642;
    font-weight: 600;
    /* transition: color 220ms ease; */
}

/* UX/UI global debug off
.vitrine-navbar .nav-link::after {
    content: "";
    position: absolute;
    left: 0.25rem;
    right: 0.25rem;
    bottom: 0.2rem;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--brand-dark), var(--accent));
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 240ms ease;
}
*/

.vitrine-navbar .nav-link.active,
.vitrine-navbar .nav-link:hover {
    color: var(--brand);
}

/* .vitrine-navbar .nav-link.active::after,
.vitrine-navbar .nav-link:hover::after {
    transform: scaleX(1);
} */

.vitrine-navbar .navbar-toggler {
    border-color: #d8e0e9;
}

.page-crumbs-wrap {
    background: linear-gradient(90deg, #f8fbff 0%, #f2f7fc 100%);
    border-bottom: 1px solid #e1eaf3;
}

.page-breadcrumb {
    --bs-breadcrumb-divider-color: #92a1b3;
    --bs-breadcrumb-item-active-color: #2c3f54;
    font-size: 0.9rem;
    margin: 0;
}

.page-breadcrumb a {
    color: #4b627a;
    text-decoration: none;
}

.page-breadcrumb a:hover {
    color: var(--brand);
}

.back-nav-btn {
    min-width: 96px;
    border-color: #c8d6e5;
    color: #31465d;
    background: #fff;
}

.back-nav-btn:hover {
    border-color: #a8bed5;
    color: #1f3247;
    background: #f7fbff;
}

.periodic-event-strip {
    background: linear-gradient(90deg, #0f1f33 0%, #1d3146 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.periodic-event-card {
    color: #eaf1f8;
}

.periodic-event-thumb {
    width: 54px;
    height: 54px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.periodic-event-kicker {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #c7d8ea;
}

.periodic-event-title {
    font-size: 0.98rem;
    font-weight: 700;
    line-height: 1.35;
}

.periodic-event-link {
    border-color: rgba(255, 255, 255, 0.45);
    color: #fff;
}

.periodic-event-link:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
}

.btn-brand {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
    font-weight: 700;
}

.btn-brand:hover,
.btn-brand:focus {
    background: var(--brand-dark);
    border-color: var(--brand-dark);
    color: #fff;
}

/* UX/UI global debug off
.btn {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    transition: transform 220ms ease, box-shadow 220ms ease;
}

.btn::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    background: radial-gradient(220px circle at 50% 100%, rgba(255, 255, 255, 0.36), transparent 60%);
    opacity: 0;
    transition: opacity 260ms ease;
}

.btn:hover,
.btn:focus-visible {
    transform: translateY(-2px);
}

.btn:hover::before,
.btn:focus-visible::before {
    opacity: 1;
}
*/

.hero-carousel-section {
    background: #0d141d;
}

.hero-carousel,
.hero-fallback {
    background: linear-gradient(120deg, var(--hero-grad-start), var(--hero-grad-mid), var(--hero-grad-end));
    color: #fff;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.hero-carousel::after,
.hero-fallback::after {
    content: "";
    position: absolute;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    background: rgba(244, 196, 0, 0.14);
    right: -90px;
    top: -120px;
    pointer-events: none;
}

.hero-item {
    position: relative;
}

.hero-slide-image {
    width: 100%;
    height: auto;
    max-height: none;
    filter: saturate(0.96);
    display: block;
}

.hero-item::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(8, 14, 22, 0.78) 0%, rgba(9, 14, 20, 0.52) 45%, rgba(9, 14, 20, 0.35) 100%);
    z-index: 1;
}

.hero-caption-wrap {
    inset: 0;
    z-index: 2;
    text-align: left;
}

.hero-caption-shell {
    height: 100%;
    display: flex;
    align-items: center;
}

.hero-caption-card {
    max-width: 760px;
    background: rgba(16, 24, 32, 0.56);
    border: 1px solid rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(4px);
    border-radius: 14px;
    padding: clamp(1rem, 3vw, 2rem);
}

.hero-badge {
    display: inline-block;
    margin-bottom: 0.75rem;
    padding: 0.32rem 0.65rem;
    border-radius: 999px;
    background: rgba(244, 196, 0, 0.2);
    border: 1px solid rgba(244, 196, 0, 0.48);
    color: #fff;
    font-size: 0.85rem;
}

.hero-caption-card .lead {
    color: rgba(241, 247, 255, 0.9);
}

.hero-description {
    color: rgba(235, 243, 252, 0.86);
    font-size: 1.02rem;
    line-height: 1.55;
    max-width: 62ch;
}

.hero-indicators {
    margin-bottom: 1.2rem;
}

.hero-indicators [data-bs-target] {
    width: 30px;
    height: 4px;
    border-radius: 999px;
    border: 0;
    background: rgba(255, 255, 255, 0.4);
}

.hero-indicators .active {
    background: var(--accent);
}

.hero-carousel .carousel-control-prev,
.hero-carousel .carousel-control-next {
    width: 6%;
}

.hero-carousel .carousel-control-prev-icon,
.hero-carousel .carousel-control-next-icon {
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 999px;
    background-color: rgba(12, 20, 30, 0.45);
    background-size: 55% 55%;
}

.hero-image {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    max-height: 420px;
    width: 100%;
    object-fit: cover;
}

.hero-placeholder {
    min-height: 340px;
    border-radius: var(--radius-lg);
    border: 1px dashed rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.08);
    padding: 1.5rem;
    text-align: center;
}

.metric-card,
.content-card,
.project-card,
.gallery-card,
.intro-box,
.service-card,
.testimonial-card,
.partner-item {
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    border: 1px solid #e6ecf2;
}

.metric-card {
    padding: 1.2rem;
}

.metric-card h3 {
    font-size: clamp(1.4rem, 2.8vw, 2rem);
}

.content-card,
.intro-box {
    padding: 1.5rem;
}

.project-card,
.gallery-card,
.service-card,
.partner-item {
    overflow: hidden;
}

/* UX/UI global debug off
.service-card,
.project-card,
.gallery-card,
.testimonial-card,
.partner-item,
.team-card,
.news-card,
.content-card,
.article-content-box,
.about-intro-card,
.about-event-card {
    position: relative;
}
*/

/* UX/UI global debug off
.service-card::after,
.project-card::after,
.testimonial-card::after,
.partner-item::after,
.team-card::after,
.news-card::after,
.content-card::after,
.article-content-box::after,
.about-intro-card::after,
.about-event-card::after {
    content: "";
    position: absolute;
    top: -140%;
    left: -65%;
    width: 46%;
    height: 300%;
    transform: rotate(18deg) translateX(-220%);
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.16) 45%,
        rgba(255, 255, 255, 0) 100%
    );
    opacity: 0;
    pointer-events: none;
    transition: transform 820ms ease, opacity 320ms ease;
    z-index: 2;
}
*/

/* UX/UI global debug off
.service-card:hover::after,
.project-card:hover::after,
.testimonial-card:hover::after,
.partner-item:hover::after,
.team-card:hover::after,
.news-card:hover::after,
.content-card:hover::after,
.article-content-box:hover::after,
.about-intro-card:hover::after,
.about-event-card:hover::after {
    opacity: 0.95;
    transform: rotate(18deg) translateX(340%);
}
*/

.project-image,
.gallery-image,
.service-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.service-image-placeholder {
    width: 100%;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f4f7fb 0%, #e6edf4 100%);
    color: #6a7684;
    font-weight: 700;
}

.section-zone {
    position: relative;
    margin-top: 2.2rem;
}

.section-zone::before {
    content: "";
    display: block;
    width: min(1140px, calc(100% - 2.4rem));
    height: 1px;
    margin: 0 auto;
    background: linear-gradient(90deg, transparent 0%, #c8d4e1 50%, transparent 100%);
}

.section-block {
    padding-top: 3.6rem;
    padding-bottom: 2.2rem;
    border-radius: 28px;
    margin-top: 1.2rem;
    border: 1px solid #dfe7ef;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.05);
}

.section-services .section-block {
    background: linear-gradient(180deg, #ffffff 0%, #f3f8ff 100%);
}

.section-projects .section-block {
    background: linear-gradient(180deg, #fdfefe 0%, #f1f5fa 100%);
}

.section-testimonials .section-block {
    background: linear-gradient(180deg, #ffffff 0%, #fdf7f7 100%);
}

.section-partners .section-block {
    background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
}

.section-team .section-block {
    background: linear-gradient(180deg, #ffffff 0%, #f4f8fd 100%);
}

.section-about-event .section-block {
    background: linear-gradient(180deg, #ffffff 0%, #f7f9fc 100%);
}

.section-header {
    max-width: 900px;
    margin-inline: auto;
    text-align: center;
}

.section-title {
    font-size: clamp(2.1rem, 4.2vw, 3.7rem);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    line-height: 1.15;
    margin-bottom: 0.95rem;
    text-align: center;
    color: #0f2032;
    position: relative;
    overflow-wrap: anywhere;
}

.section-title::after {
    content: "";
    display: block;
    width: 120px;
    height: 4px;
    border-radius: 999px;
    margin: 0.75rem auto 0;
    background: linear-gradient(90deg, var(--brand-dark) 0%, var(--brand) 60%, var(--accent) 100%);
}

.section-subtitle {
    font-size: clamp(1rem, 1.8vw, 1.15rem);
    color: var(--text-muted);
    margin: 0 auto;
    max-width: 72ch;
}

.testimonial-card {
    padding: 1.25rem;
}

.testimonial-text {
    margin: 0;
    color: #334155;
    line-height: 1.7;
}

.testimonial-avatar {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #dce4ec;
}

.placeholder-avatar {
    background: #e9eff5;
    color: #223143;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.testimonial-carousel-shell {
    border-radius: 22px;
    border: 1px solid #d7e2ee;
    background: linear-gradient(180deg, #f7fafe 0%, #eef4fb 100%);
    padding: 1.6rem 0.9rem 2.4rem;
}

.testimonial-carousel {
    position: relative;
}

.testimonial-item {
    padding: 0.4rem 0 0.6rem;
}

.testimonial-stage {
    display: flex;
    justify-content: center;
    padding-inline: 4.4rem;
}

.testimonial-stage .testimonial-card {
    width: min(780px, 78%);
    max-width: 100%;
    border-left: 4px solid var(--brand);
    border-top: 0;
    background: #fff;
}

.testimonial-indicators {
    margin-bottom: -1.25rem;
}

.testimonial-indicators [data-bs-target] {
    width: 24px;
    height: 4px;
    border-radius: 999px;
    border: 0;
    background: rgba(90, 106, 125, 0.35);
}

.testimonial-indicators .active {
    background: var(--brand);
}

.testimonial-control-prev,
.testimonial-control-next {
    width: 8%;
}

.testimonial-control-prev .carousel-control-prev-icon,
.testimonial-control-next .carousel-control-next-icon {
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    background-color: rgba(18, 30, 44, 0.46);
    background-size: 55% 55%;
}

.partner-item {
    min-height: 146px;
    padding: 1rem;
}

.partner-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    width: 100%;
    height: 100%;
    text-align: center;
    text-decoration: none;
}

.partner-logo-wrap {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.partner-logo {
    max-width: 140px;
    max-height: 70px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(8%);
}

.partner-logo-fallback {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #e8eff6;
    color: #1f3348;
    font-weight: 700;
}

.partner-name {
    display: block;
    font-size: 0.96rem;
    line-height: 1.35;
    font-weight: 700;
    text-align: center;
    color: #263546;
}

.team-card {
    background: #fff;
    border: 1px solid #dce6f1;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: transform 280ms ease, box-shadow 280ms ease;
}

.team-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.12);
}

.team-photo {
    width: 100%;
    height: 290px;
    object-fit: cover;
    display: block;
}

.team-photo-placeholder {
    width: 100%;
    height: 290px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(140deg, #e8eef6 0%, #dbe6f1 100%);
    color: #2a3e56;
    font-size: 2rem;
    font-weight: 700;
}

.team-role {
    display: inline-block;
    font-size: 0.87rem;
    font-weight: 700;
    color: #2f4761;
    background: #eaf1f8;
    border: 1px solid #d3dfea;
    border-radius: 999px;
    padding: 0.3rem 0.75rem;
}

.about-event-card {
    background: #fff;
    border: 1px solid #dce6f1;
    border-radius: 20px;
    padding: clamp(1rem, 2.2vw, 1.5rem);
    box-shadow: var(--shadow-soft);
}

.about-event-media {
    position: relative;
    border-radius: 16px;
}

.about-event-image {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
    border-radius: 14px;
    border: 1px solid #dbe5f0;
    box-shadow: 0 10px 26px rgba(17, 29, 42, 0.1);
}

.about-event-image-placeholder {
    width: 100%;
    min-height: 230px;
    border-radius: 14px;
    background: linear-gradient(140deg, #e8eef6 0%, #dbe6f1 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #37506b;
    font-weight: 700;
}

.about-event-image--classic {
    border-radius: 14px;
}

.about-event-image--framed {
    padding: 6px;
    background: #fff;
    border: 1px solid #d0dbe7;
    border-radius: 18px;
    box-shadow: 0 16px 32px rgba(20, 33, 46, 0.12);
}

.about-event-image--spotlight {
    border-radius: 22px;
    border: 0;
    outline: 3px solid rgba(143, 18, 23, 0.22);
    box-shadow:
        0 16px 34px rgba(20, 33, 46, 0.13),
        0 0 0 10px rgba(143, 18, 23, 0.08);
}

.about-event-image--elevated {
    transform: translateY(-4px);
    border-radius: 16px;
    border-color: #cfdceb;
    box-shadow: 0 24px 36px rgba(15, 25, 36, 0.16);
}

.about-event-media--honor {
    padding: 8px;
    border-radius: 20px;
    background:
        linear-gradient(145deg, #5a3f16 0%, #c89a3e 26%, #fff1bc 50%, #c9983b 74%, #5a3f16 100%);
    box-shadow:
        0 18px 34px rgba(34, 26, 14, 0.28),
        inset 0 0 0 1px rgba(255, 248, 222, 0.48);
}

.about-event-media--honor::before,
.about-event-media--honor::after {
    content: "";
    position: absolute;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    z-index: 2;
    pointer-events: none;
    background:
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.94) 0 18%, transparent 20%),
        radial-gradient(circle at 22% 50%, rgba(255, 229, 162, 0.92) 0 12%, transparent 14%),
        radial-gradient(circle at 78% 50%, rgba(255, 229, 162, 0.92) 0 12%, transparent 14%),
        radial-gradient(circle at 50% 22%, rgba(255, 229, 162, 0.92) 0 12%, transparent 14%),
        radial-gradient(circle at 50% 78%, rgba(255, 229, 162, 0.92) 0 12%, transparent 14%);
    border: 1px solid rgba(255, 238, 196, 0.8);
}

.about-event-media--honor::before {
    top: -12px;
    left: -12px;
}

.about-event-media--honor::after {
    right: -12px;
    bottom: -12px;
}

.about-event-image--honor {
    border: 2px solid rgba(255, 240, 199, 0.9);
    box-shadow:
        0 16px 30px rgba(34, 26, 14, 0.2),
        inset 0 0 0 1px rgba(88, 62, 22, 0.32);
}

.service-card,
.project-card,
.gallery-card,
.testimonial-card,
.partner-item {
    transition:
        transform 320ms ease,
        box-shadow 320ms ease,
        border-color 320ms ease;
}

.service-card:hover,
.project-card:hover,
.gallery-card:hover,
.testimonial-card:hover,
.partner-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 36px rgba(15, 23, 42, 0.12);
}

.card-link-wrap {
    display: block;
    text-decoration: none;
    color: inherit;
}

.card-link-label {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--brand);
}

.card-link-wrap:hover .card-link-label {
    color: var(--brand-dark);
}

/* UX/UI global debug off
.ui-tilt {
    --pointer-x: 50%;
    --pointer-y: 50%;
}

.ui-tilt::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    opacity: 0;
    background: radial-gradient(
        320px circle at var(--pointer-x) var(--pointer-y),
        rgba(255, 255, 255, 0.24) 0%,
        rgba(255, 255, 255, 0) 66%
    );
    transition: opacity 240ms ease;
}

.ui-tilt.is-interactive::before {
    opacity: 1;
}

.ui-tilt > * {
    position: relative;
    z-index: 2;
}
*/

.project-filter-wrap {
    margin-inline: auto;
}

.project-filters {
    margin: 0;
    padding: 0;
}

.project-filter-btn {
    border: 1px solid #ccd9e7;
    background: #f8fbff;
    color: #243546;
    padding: 0.45rem 0.95rem;
    border-radius: 999px;
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.1;
    transition: all 220ms ease;
}

.project-filter-btn:hover {
    border-color: #9ab1c9;
    background: #eef5fc;
}

.project-filter-btn.is-active {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
    box-shadow: 0 10px 20px rgba(104, 12, 16, 0.24);
}

.project-category-badge {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    color: #24384f;
    background: #ecf2fa;
    border: 1px solid #d2deea;
    border-radius: 999px;
    padding: 0.25rem 0.65rem;
}

.gallery-site-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.gallery-site-item {
    background: linear-gradient(180deg, #ffffff 0%, #f6f9fd 100%);
    border: 1px solid #dce6f1;
    border-radius: 20px;
    padding: clamp(1rem, 2vw, 1.4rem);
    box-shadow: var(--shadow-soft);
}

.gallery-site-head h2 {
    color: #142536;
}

.gallery-site-head {
    border-bottom: 1px solid #e3ebf3;
    padding-bottom: 0.7rem;
}

.gallery-trigger-btn {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    text-align: left;
    cursor: pointer;
}

.gallery-trigger-btn .gallery-image {
    transition: transform 260ms ease;
}

.gallery-trigger-btn:hover .gallery-image,
.gallery-trigger-btn:focus .gallery-image {
    transform: scale(1.03);
}

.gallery-page .gallery-card {
    transition: none;
}

.gallery-page .gallery-card:hover {
    transform: none;
    box-shadow: var(--shadow-soft);
}

.gallery-page .gallery-card::after {
    content: none;
}

.gallery-page .gallery-trigger-btn .gallery-image,
.gallery-page .gallery-trigger-btn:hover .gallery-image,
.gallery-page .gallery-trigger-btn:focus .gallery-image {
    transform: none;
    transition: none;
}

.gallery-modal .modal-content {
    border-radius: 16px;
    border: 1px solid #d8e3ef;
    box-shadow: 0 22px 44px rgba(16, 24, 32, 0.2);
}

.gallery-modal-counter {
    margin-left: auto;
    margin-right: 0.6rem;
    font-size: 0.84rem;
    font-weight: 700;
    color: #38516b;
    background: #eef4fb;
    border: 1px solid #d5e1ee;
    border-radius: 999px;
    padding: 0.24rem 0.62rem;
}

.gallery-modal-stage {
    position: relative;
}

.gallery-modal-image {
    width: 100%;
    max-height: 72vh;
    object-fit: contain;
    border-radius: 12px;
    border: 1px solid #dfe8f1;
    background: #0f1822;
}

.gallery-modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 46px;
    height: 46px;
    border-radius: 999px;
    border: 1px solid rgba(236, 243, 250, 0.82);
    background: rgba(12, 21, 30, 0.68);
    color: #fff;
    font-size: 1.85rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    transition: background 220ms ease, transform 220ms ease, opacity 220ms ease;
}

.gallery-modal-prev {
    left: 0.8rem;
}

.gallery-modal-next {
    right: 0.8rem;
}

.gallery-modal-nav:hover:not(:disabled),
.gallery-modal-nav:focus-visible:not(:disabled) {
    background: rgba(9, 16, 24, 0.84);
    transform: translateY(-50%) scale(1.04);
}

.gallery-modal-nav:disabled {
    opacity: 0.42;
    cursor: not-allowed;
}

.section-services .service-card {
    border-top: 4px solid var(--brand);
}

.section-services .row > div:nth-child(2n) .service-card {
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.section-services .row > div:nth-child(3n) .service-card {
    background: linear-gradient(180deg, #ffffff 0%, #fff7f7 100%);
}

.section-projects .project-card {
    border-top: 4px solid #1f3853;
}

.section-testimonials .testimonial-card {
    border-left: 4px solid var(--brand);
}

.section-partners .partner-item {
    border-style: dashed;
    border-color: #cad7e6;
}

.service-card h3,
.project-card h3,
.testimonial-card h3 {
    text-align: center;
    font-size: 1.3rem;
    margin-bottom: 0.55rem;
}

.news-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #dde6f0;
    box-shadow: var(--shadow-soft);
    transition: transform 260ms ease, box-shadow 260ms ease;
}

.news-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.11);
}

.news-cover {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.news-cover-link {
    display: block;
}

.news-title-link {
    color: #1a2532;
    text-decoration: none;
}

.news-title-link:hover {
    color: var(--brand);
}

.news-cover-placeholder {
    width: 100%;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #f1f6fc 0%, #e5edf6 100%);
    color: #5f6f82;
    font-weight: 700;
}

.news-meta {
    font-size: 0.87rem;
    color: #667687;
}

.article-hero-image {
    width: 100%;
    max-height: 520px;
    object-fit: cover;
    border-radius: 18px;
    border: 1px solid #dfe8f1;
    box-shadow: var(--shadow-soft);
}

.article-content-box {
    background: #fff;
    border: 1px solid #dfe8f1;
    border-radius: 18px;
    padding: clamp(1rem, 2.4vw, 1.8rem);
    box-shadow: var(--shadow-soft);
}

.article-content {
    color: #243241;
    line-height: 1.8;
    font-size: 1.05rem;
}

.article-image-item {
    background: #fff;
    border: 1px solid #dfe8f1;
    border-radius: 12px;
    padding: 0.5rem;
}

.article-gallery-image {
    width: 100%;
    height: 210px;
    object-fit: cover;
    border-radius: 8px;
}

.about-showcase {
    position: relative;
}

.about-hero-frame {
    border-radius: 22px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #dbe6f0;
}

.about-hero-image {
    width: 100%;
    height: clamp(280px, 46vh, 430px);
    object-fit: cover;
    display: block;
}

.about-hero-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 0.75rem 1rem;
    background: linear-gradient(180deg, rgba(10, 20, 34, 0) 0%, rgba(10, 20, 34, 0.72) 95%);
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.03em;
}

.about-intro-card {
    border-radius: 22px;
    border: 1px solid #dbe6f0;
    background: linear-gradient(170deg, #ffffff 0%, #f6f9fd 100%);
}

.about-intro-content {
    color: #2a3a4b;
    line-height: 1.9;
    font-size: 1.03rem;
}

.office-map-wrap {
    background: #fff;
}

.office-map-frame {
    display: block;
    width: 100%;
    min-height: 390px;
    border: 0;
}

.link-brand {
    color: var(--brand);
    font-weight: 700;
    text-decoration: none;
}

.link-brand:hover {
    color: var(--brand-dark);
    text-decoration: underline;
}

.page-head {
    /* position: relative; */
    /* overflow: hidden; */
    background: linear-gradient(90deg, #ffffff 0%, #f3f6fa 100%);
    border-bottom: 1px solid #e4ebf3;
}

/* UX/UI global debug off
.page-head::before,
.page-head::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(2px);
}

.page-head::before {
    width: 260px;
    height: 260px;
    right: -90px;
    top: -120px;
    background: radial-gradient(circle, rgba(143, 18, 23, 0.16) 0%, rgba(143, 18, 23, 0) 70%);
    animation: pageHeadFloat 10s ease-in-out infinite;
}

.page-head::after {
    width: 220px;
    height: 220px;
    left: -80px;
    bottom: -120px;
    background: radial-gradient(circle, rgba(244, 196, 0, 0.18) 0%, rgba(244, 196, 0, 0) 70%);
    animation: pageHeadFloat 12s ease-in-out infinite reverse;
}
*/

/* UX/UI global debug off
.page-head .container {
    position: relative;
    z-index: 1;
}
*/

.about-page-head .container {
    text-align: center;
    max-width: 900px;
}

.site-footer {
    background: #101820;
    color: #d9dee5;
}

.site-footer a {
    color: #f0f4f8;
    text-decoration: none;
}

.site-footer a:hover {
    color: var(--accent);
}

.footer-title {
    color: #fff;
}

.footer-logo {
    height: 72px;
    width: auto;
    max-width: 240px;
    object-fit: contain;
    border-radius: 6px;
    background: transparent;
    padding: 0;
}

.footer-subtitle {
    color: var(--accent);
}

.flash-message {
    transition: opacity 320ms ease, transform 320ms ease;
    opacity: 1;
    transform: translateY(0);
}

.flash-message.is-dismissing {
    opacity: 0;
    transform: translateY(-6px);
}

.reveal-item {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
    transition: opacity 500ms ease, transform 500ms ease;
}

/* UX/UI global debug off
.site-body.ui-ready .reveal-item {
    opacity: 0;
    transform: translateY(18px) scale(0.985);
    filter: blur(2px);
}
*/

.reveal-item.in-view {
    opacity: 1;
    transform: translateY(0);
}

.is-scrolled {
    box-shadow: 0 8px 24px rgba(16, 24, 32, 0.1);
}

/* UX/UI global debug off
.site-body.ui-ready main {
    animation: mainFadeIn 540ms ease both;
}
*/

/* UX/UI global debug off
.form-control,
.form-select,
.form-check-input {
    transition: border-color 200ms ease, box-shadow 200ms ease, transform 200ms ease;
}

.form-control:focus,
.form-select:focus,
.form-check-input:focus {
    border-color: #9fb7cf;
    box-shadow: 0 0 0 0.23rem rgba(104, 12, 16, 0.14);
    transform: translateY(-1px);
}
*/

/* UX/UI global debug off
@keyframes pageHeadFloat {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(12px);
    }
    100% {
        transform: translateY(0);
    }
}

@keyframes mainFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
*/

@media (max-width: 991px) {
    .vitrine-navbar .btn-brand {
        width: 100%;
    }

    .hero-placeholder {
        min-height: 260px;
    }

    .brand-logo {
        height: 56px;
    }

    .hero-caption-card {
        max-width: 100%;
        padding: 1rem;
    }

    .hero-caption-card .display-5 {
        font-size: clamp(1.45rem, 5.4vw, 2rem);
    }

    .hero-caption-card .lead {
        font-size: 1rem;
    }

    .hero-description {
        font-size: 0.95rem;
        max-width: 100%;
    }

    .hero-caption-card .d-flex {
        gap: 0.6rem !important;
    }

    .hero-caption-card .btn {
        width: 100%;
    }

    .hero-carousel .carousel-control-prev,
    .hero-carousel .carousel-control-next {
        width: 11%;
    }

    .testimonial-stage {
        padding-inline: 2.8rem;
    }

    .testimonial-stage .testimonial-card {
        width: min(760px, 90%);
    }

    .testimonial-control-prev,
    .testimonial-control-next {
        width: 12%;
    }

    .section-title {
        letter-spacing: 0.05em;
    }

    .section-block {
        border-radius: 20px;
        padding-top: 2.8rem;
        padding-bottom: 1.8rem;
    }

    .footer-logo {
        height: 60px;
    }

    /* UX/UI global debug off
    .vitrine-navbar .nav-link::after {
        left: 0;
        right: auto;
        width: 48px;
    }

    .vitrine-navbar .nav-link.active::after,
    .vitrine-navbar .nav-link:hover::after {
        transform: scaleX(1);
        transform-origin: left;
    }
    */
}

@media (max-width: 767px) {
    .hero-item::before {
        display: none !important;
    }

    .hero-slide-image {
        height: clamp(220px, 58vw, 340px);
        object-fit: cover;
        object-position: center center;
    }

    .hero-caption-wrap,
    .hero-caption-wrap.carousel-caption {
        position: static !important;
        inset: auto;
        right: auto !important;
        left: auto !important;
        bottom: auto !important;
        width: 100%;
        margin: 0;
        padding: 0 !important;
        text-align: left;
    }

    .hero-caption-shell {
        height: auto;
        display: block;
        padding: 0;
    }

    .hero-caption-card {
        max-width: 100%;
        border-radius: 0 0 12px 12px;
        border-left: 0;
        border-right: 0;
        border-top: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.12);
        padding: 0.85rem 0.85rem 0.95rem;
        background: linear-gradient(180deg, #0f1720 0%, #162433 100%);
    }

    .hero-caption-card .display-5 {
        font-size: clamp(1.2rem, 5.2vw, 1.55rem);
        margin-bottom: 0.55rem !important;
    }

    .hero-caption-card .lead {
        font-size: 0.95rem;
        margin-bottom: 0.6rem !important;
    }

    .hero-description {
        font-size: 0.88rem;
        margin-bottom: 0.7rem !important;
    }

    .hero-badge {
        font-size: 0.72rem;
        margin-bottom: 0.45rem;
    }

    .hero-caption-card .d-flex {
        gap: 0.45rem !important;
    }

    .hero-caption-card .btn {
        width: auto;
        padding: 0.45rem 0.75rem;
        font-size: 0.86rem;
    }

    .hero-carousel .carousel-control-prev,
    .hero-carousel .carousel-control-next {
        width: 14%;
    }

    .hero-indicators {
        margin-bottom: 0.5rem;
    }

    .section-zone {
        margin-top: 1.4rem;
    }

    .page-crumbs-wrap .container {
        gap: 0.5rem;
    }

    .page-breadcrumb {
        font-size: 0.82rem;
    }

    .back-nav-btn {
        width: 100%;
    }

    .periodic-event-thumb {
        width: 46px;
        height: 46px;
    }

    .periodic-event-title {
        font-size: 0.9rem;
    }

    .periodic-event-link {
        width: 100%;
    }

    .section-zone::before {
        width: calc(100% - 1rem);
    }

    .section-block {
        margin-top: 0.9rem;
        padding-top: 2.2rem;
        padding-bottom: 1.35rem;
        border-radius: 16px;
    }

    .section-header {
        margin-bottom: 1.6rem !important;
    }

    .section-title {
        font-size: clamp(1.5rem, 7.2vw, 2.15rem);
        letter-spacing: 0.04em;
        margin-bottom: 0.65rem;
    }

    .section-title::after {
        width: 78px;
        height: 3px;
        margin-top: 0.55rem;
    }

    /* UX/UI global debug off
    .btn:hover,
    .btn:focus-visible {
        transform: none;
    }
    */

    .section-subtitle {
        font-size: 0.95rem;
        line-height: 1.55;
        max-width: 100%;
        padding-inline: 0.25rem;
    }

    .service-image,
    .project-image,
    .gallery-image,
    .service-image-placeholder,
    .news-cover,
    .news-cover-placeholder,
    .team-photo,
    .team-photo-placeholder {
        height: 186px;
    }

    .gallery-site-item {
        border-radius: 14px;
        padding: 0.85rem;
    }

    .gallery-modal-image {
        max-height: 58vh;
    }

    .gallery-modal-nav {
        width: 40px;
        height: 40px;
        font-size: 1.6rem;
    }

    .gallery-modal-prev {
        left: 0.45rem;
    }

    .gallery-modal-next {
        right: 0.45rem;
    }

    .service-card h3,
    .project-card h3,
    .testimonial-card h3 {
        font-size: 1.1rem;
    }

    .project-filter-btn {
        font-size: 0.82rem;
        padding: 0.4rem 0.75rem;
    }

    .partner-item {
        min-height: 116px;
        padding: 0.7rem;
    }

    .partner-link {
        gap: 0.45rem;
    }

    .partner-logo-wrap {
        min-height: 60px;
    }

    .partner-logo {
        max-width: 108px;
        max-height: 58px;
    }

    .partner-name {
        font-size: 0.88rem;
    }

    .testimonial-card {
        padding: 1rem;
    }

    .article-gallery-image {
        height: 165px;
    }

    .about-hero-image {
        height: 240px;
    }

    .about-intro-content {
        font-size: 0.97rem;
        line-height: 1.75;
    }

    .office-map-frame {
        min-height: 280px;
    }

    .about-event-image {
        max-height: 230px;
    }

    .about-event-media--honor {
        padding: 6px;
    }

    .about-event-media--honor::before,
    .about-event-media--honor::after {
        width: 42px;
        height: 42px;
    }

    .about-event-media--honor::before {
        top: -8px;
        left: -8px;
    }

    .about-event-media--honor::after {
        right: -8px;
        bottom: -8px;
    }

    .testimonial-carousel-shell {
        border-radius: 14px;
        padding: 1rem 0.15rem 2rem;
    }

    .testimonial-stage {
        padding-inline: 0.7rem;
    }

    .testimonial-stage .testimonial-card {
        width: 100%;
    }

    .testimonial-control-prev,
    .testimonial-control-next {
        width: 14%;
    }
}

