
:root {
    --primary: #2f66f3;
    --primary-hover: #2457dc;
    --primary-soft: #eaf1ff;
    --primary-dark: #102a68;
    --text-dark: #0f172a;
    --text-light: #475569;
    --text-muted: #64748b;
    --surface: #ffffff;
    --surface-soft: #f6f8fc;
    --surface-dark: linear-gradient(135deg, #0f1d49 0%, #1d367a 100%);
    --bg-light: #eaf2ff;
    --bg-hero: linear-gradient(135deg, #eef5ff 0%, #dcecff 100%);
    --white: #ffffff;
    --border: #dbe5f4;
    --shadow-soft: 0 16px 40px rgba(28, 57, 124, 0.08);
    --shadow-strong: 0 20px 50px rgba(30, 64, 175, 0.22);
    --shadow-card: 0 18px 40px rgba(15, 23, 42, 0.08);
    --radius-md: 12px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --container-width: 1200px;
}

/* =========================================================
   BASE
   ========================================================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    position: relative;
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--text-dark);
    background: linear-gradient(180deg, #dfe8f8 0%, #d6e2f6 36%, #e3ecf9 100%);
    line-height: 1.6;
    overflow-x: clip;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image: url("/img/logo-mex.svg");
    background-repeat: no-repeat;
    background-position: center 57%;
    background-size: min(760px, 92vw);
    opacity: 0.07;
    pointer-events: none;
    user-select: none;
    z-index: 0;
    filter: saturate(1.35) brightness(1.08);
}

a,
.main-nav a,
.btn,
.tile,
.tile-link,
.homepage-news__link,
.news-card__link,
.homepage-reference-card__title-link,
.reference-card__title-link,
.anchor-nav a {
    text-decoration: none;
}

.site-header,
main,
section,
.site-footer {
    position: relative;
    z-index: 1;
}

.container {
    width: min(var(--container-width), calc(100% - 40px));
    margin: 0 auto;
}

.section-eyebrow {
    display: inline-block;
    margin-bottom: 12px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
}

.section-heading h2 {
    margin: 0 0 10px;
    color: var(--text-dark);
    font-size: clamp(1.9rem, 2.2vw, 2.5rem);
    line-height: 1.12;
    letter-spacing: -0.022em;
}

.section-heading p {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.72;
}

/* =========================================================
   SHARED CARD MOTION
   ========================================================= */

.tile,
.homepage-news__card,
.homepage-reference-card,
.news-card,
.reference-card,
.about-card,
.category-intro__text,
.category-intro__box,
.about-intro__text,
.about-intro__box,
.about-segments__content,
.about-segments__list,
.about-history__wrap,
.news-intro__text,
.news-intro__box,
.news-detail-article,
.news-detail-sidebar__box,
.references-intro__text,
.references-intro__stats,
.contact-main-card,
.contact-side-card,
.contact-form-wrap {
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

#kontaktni-formular {
    scroll-margin-top: 90px;
}

.tile:hover,
.homepage-news__card:hover,
.homepage-reference-card:hover,
.news-card:hover,
.reference-card:hover,
.about-card:hover {
    transform: translateY(-4px);
}

/* =========================================================
   BUTTONS
   ========================================================= */

.btn,
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 56px;
    padding: 0 30px;
    background: linear-gradient(135deg, #14265f 0%, #2447a8 55%, #2f66f3 100%);
    color: var(--white);
    border: 1px solid transparent;
    border-radius: 999px;
    position: relative;
    overflow: hidden;
    background-clip: padding-box;
    isolation: isolate;
    font-weight: 800;
    letter-spacing: 0.01em;
    box-shadow: 0 14px 30px rgba(20, 38, 95, 0.34);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn:hover,
.btn-primary:hover {
    background: linear-gradient(135deg, #0f1d49 0%, #1f3f99 58%, #2b5de0 100%);
    border-color: rgba(47, 102, 243, 0.35);
    transform: translateY(-2px);
    box-shadow: 0 18px 34px rgba(20, 38, 95, 0.42);
    opacity: 1;
}

.btn-outline {
    background: var(--surface);
    color: var(--text-dark);
    border: 1px solid var(--border);
    box-shadow: none;
}

.btn-outline:hover {
    background: var(--primary-soft);
    border-color: #bfd0f7;
    box-shadow: 0 10px 22px rgba(28, 57, 124, 0.09);
}

.hero .btn,
.projects-showcase__content .btn {
    background: #ffffff;
    color: #14265f;
    border-color: rgba(255, 255, 255, 0.65);
    box-shadow: 0 14px 30px rgba(7, 21, 58, 0.3);
}

.hero .btn:hover,
.projects-showcase__content .btn:hover {
    background: #edf3ff;
    color: #0f1d49;
    border-color: #d4e2ff;
    box-shadow: 0 18px 34px rgba(7, 21, 58, 0.38);
}

.hero .btn-outline,
.projects-showcase__content .btn-outline {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.38);
    box-shadow: none;
}

.hero .btn-outline:hover,
.projects-showcase__content .btn-outline:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.58);
}

/* =========================================================
   HEADER / NAVIGATION
   ========================================================= */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: linear-gradient(180deg, #16244a 0%, #111a33 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(14px);
    box-shadow: 0 10px 30px rgba(7, 15, 35, 0.28);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 88px;
    gap: 24px;
}

.topcat {
    max-height: 20px;
}

.logo {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.logo img {
    height: 55px;
    width: auto;
}

.menu-toggle {
    display: none;
    font-size: 1.8rem;
    background: none;
    border: none;
    cursor: pointer;
    color: #ffffff;
}

.main-nav .menu {
    display: flex;
    align-items: center;
    gap: 28px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-nav .menu > li,
.has-dropdown,
.has-subdropdown {
    position: relative;
}

.main-nav a {
    display: block;
    padding: 10px 14px;
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.92);
    font-weight: 700;
    transition: color 0.2s ease, background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.main-nav a:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
    transform: translateY(-1px);
}

.has-dropdown > a,
.has-subdropdown > a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.has-dropdown > a::after,
.has-subdropdown > a::after {
    content: "";
    width: 8px;
    height: 8px;
    border-right: 2px solid rgba(255, 255, 255, 0.72);
    border-bottom: 2px solid rgba(255, 255, 255, 0.72);
    transform: rotate(45deg) translateY(-1px);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.has-dropdown:hover > a::after,
.has-subdropdown:hover > a::after {
    border-color: #ffffff;
}

.has-dropdown:hover > a::after {
    transform: rotate(225deg) translateY(-1px);
}

.has-subdropdown > a::after {
    transform: rotate(-45deg);
}

.dropdown .has-subdropdown > a {
    justify-content: space-between;
}

.dropdown .has-subdropdown > a::after {
    width: 7px;
    height: 7px;
    margin-left: 10px;
    border-right: 2px solid rgba(255, 255, 255, 0.86);
    border-bottom: 2px solid rgba(255, 255, 255, 0.86);
    transform: rotate(-45deg);
    flex-shrink: 0;
}

.dropdown .has-subdropdown:hover > a::after {
    border-right-color: #ffffff;
    border-bottom-color: #ffffff;
}

.has-dropdown:hover .dropdown {
    display: block;
}

.has-subdropdown:hover > .subdropdown {
    display: block;
}

.dropdown,
.subdropdown {
    display: none;
    position: absolute;
    min-width: 260px;
    background: linear-gradient(170deg, rgba(13, 28, 74, 0.98) 0%, rgba(24, 47, 112, 0.97) 100%);
    border: 1px solid rgba(173, 196, 248, 0.3);
    box-shadow: 0 20px 42px rgba(8, 17, 45, 0.4);
    list-style: none;
    margin: 0;
    padding: 10px 0;
    border-radius: 16px;
}

.dropdown {
    top: 100%;
    left: 0;
    z-index: 1000;
}

.subdropdown {
    top: 0;
    left: 100%;
    z-index: 1001;
}

.dropdown li a,
.subdropdown li a {
    display: block;
    padding: 10px 18px;
    color: rgba(255, 255, 255, 0.92);
    white-space: nowrap;
}

.dropdown li a:hover,
.subdropdown li a:hover {
    background: rgba(255, 255, 255, 0.13);
}

.header-admin {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.header-lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    font-weight: 700;
    white-space: nowrap;
}

.header-lang-switch a {
    color: rgba(255, 255, 255, 0.75);
}

.header-lang-switch a:hover {
    color: #ffffff;
}

.header-lang-switch a.is-active {
    color: #ffffff;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.header-lang-switch span {
    color: rgba(255, 255, 255, 0.5);
}

.btn-admin-link {
    min-height: 42px;
    padding: 0 16px;
    font-size: 0.95rem;
}

/* =========================================================
   HERO
   ========================================================= */

.hero {
    position: relative;
    padding: 86px 0 68px;
    background:
        radial-gradient(circle at 18% 22%, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0) 32%),
        radial-gradient(circle at 82% 18%, rgba(126, 167, 255, 0.2) 0%, rgba(125, 176, 255, 0) 34%),
        linear-gradient(180deg, #172c6f 0%, #0f1d49 58%, #13265f 100%);
    overflow: hidden;
}

.hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.12fr 0.88fr;
    gap: 56px;
    align-items: center;
}

.hero-content {
    max-width: 740px;
}

.hero-bg-shape {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}


/* Původní pozdější přepis ponechán úmyslně kvůli bezpečnosti */
.hero-bg-shape-2 {
    width: 280px;
    height: 280px;
    left: -90px;
    bottom: -110px;
    background: radial-gradient(circle, rgba(96, 165, 250, 0.14) 0%, rgba(96, 165, 250, 0) 74%);
}

.hero h1 {
    margin: 0 0 20px;
    font-size: 3.45rem;
    line-height: 1.02;
    color: #ffffff;
    letter-spacing: -0.03em;
    max-width: 11ch;
}

.hero p {
    margin: 0;
    max-width: 640px;
    font-size: 1.12rem;
    line-height: 1.78;
    color: rgba(255, 255, 255, 0.82);
}

.hero-actions {
    display: flex;
    gap: 14px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.hero-actions .btn:first-child,
.about-preview .btn,
.projects-showcase__content .btn {
    box-shadow: 0 12px 26px rgba(29, 78, 216, 0.16);
}

.hero-actions .btn:first-child:hover,
.about-preview .btn:hover,
.projects-showcase__content .btn:hover {
    box-shadow: 0 18px 34px rgba(29, 78, 216, 0.22);
}

.hero-side {
    position: relative;
}

.hero-product-slider {
    position: relative;
    min-height: 460px;
    border-radius: 30px;
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0) 40%),
        linear-gradient(155deg, rgba(255, 255, 255, 0.96) 0%, rgba(236, 243, 255, 0.92) 100%);
    border: 1px solid rgba(163, 189, 243, 0.65);
    box-shadow: 0 26px 56px rgba(7, 21, 58, 0.45);
    backdrop-filter: blur(8px);
    overflow: hidden;
}

.hero-product-slide {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 32px 32px 82px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.45s ease, visibility 0.45s ease;
    color: inherit;
    text-decoration: none;
}

.hero-product-slide.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.hero-product-image {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 255px;
    margin-top: 8px;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.88) 0%, rgba(234, 241, 255, 0.92) 100%);
    border: 1px solid rgba(185, 206, 248, 0.55);
    padding: 14px;
}

.hero-product-image img {
    max-width: 100%;
    max-height: 245px;
    object-fit: contain;
    filter: drop-shadow(0 22px 30px rgba(16, 31, 75, 0.22));
    transition: transform 0.3s ease;
}

.hero-product-slide:hover .hero-product-image img {
    transform: translateY(-4px) scale(1.015);
}

.hero-product-text h3 {
    margin: 12px 0 10px;
    font-size: 1.9rem;
    line-height: 1.15;
    color: #11265d;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.hero-product-text p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.7;
    color: #3f5377;
    max-width: 92%;
}

.hero-product-controls {
    position: absolute;
    right: 16px;
    bottom: 16px;
    display: flex;
    gap: 10px;
    z-index: 5;
}

.hero-product-controls button {
    width: 44px;
    height: 44px;
    border: 1px solid rgba(177, 200, 247, 0.9);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    color: #14265f;
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 24px rgba(11, 27, 69, 0.22);
    transition: background 0.2s ease, transform 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.hero-product-controls button:hover {
    background: linear-gradient(135deg, #14265f 0%, #2f66f3 100%);
    color: #ffffff;
    transform: translateY(-1px) scale(1.04);
    box-shadow: 0 14px 28px rgba(20, 38, 95, 0.35);
}

/* =========================================================
   HOMEPAGE – COMMON SPACING
   ========================================================= */

.product-tiles,
.projects-showcase,
.homepage-news,
.homepage-references,
.about-preview {
    position: relative;
}

.product-tiles {
    padding: 56px 0 76px;
    background: linear-gradient(180deg, rgba(15, 29, 73, 0.08) 0%, rgba(15, 29, 73, 0.03) 100%);
}

.homepage-news {
    padding: 76px 0;
    background: linear-gradient(180deg, rgba(19, 38, 95, 0.12) 0%, rgba(19, 38, 95, 0.08) 100%);
}

.homepage-references {
    padding: 76px 0;
    background: linear-gradient(180deg, rgba(15, 29, 73, 0.11) 0%, rgba(15, 29, 73, 0.07) 100%);
}

.projects-showcase {
    padding: 72px 0;
}

.about-preview {
    padding: 76px 0 82px;
}

.product-tiles h2,
.homepage-news__head h2,
.homepage-references__head h2,
.about-preview h2,
.projects-showcase__content h2,
.category-intro__text h2,
.about-intro__text h2,
.news-intro__text h2,
.references-intro__text h2,
.contact-main-card h2 {
    letter-spacing: -0.02em;
}

.product-tiles h2,
.homepage-news__head h2,
.homepage-references__head h2,
.about-preview h2,
.projects-showcase__content h2 {
    margin-top: 0;
    margin-bottom: 14px;
}

.homepage-news__head,
.homepage-references__head {
    margin-bottom: 30px;
}

.homepage-news__head p,
.homepage-references__head p,
.about-preview p,
.projects-showcase__content p {
    margin-top: 0;
}

.homepage-news__head p,
.homepage-references__head p {
    max-width: 720px;
    line-height: 1.75;
}

.about-preview p {
    margin-bottom: 22px;
}

/* =========================================================
   HOMEPAGE – PRODUCT TILES
   ========================================================= */

.product-tiles h2,
.about-preview h2 {
    margin: 0 0 26px;
    font-size: 2rem;
    line-height: 1.2;
    color: var(--text-dark);
}

.tiles-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.tile {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 248px;
    padding: 32px 28px 26px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(10px);
    transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.tile::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(37, 99, 235, 0.045) 0%, rgba(37, 99, 235, 0) 72%);
    opacity: 0;
    transition: opacity 0.24s ease;
}

.tile:hover {
    transform: translateY(-5px);
    border-color: #c8d8f4;
    box-shadow: 0 20px 46px rgba(28, 57, 124, 0.16);
}

.tile:hover::before {
    opacity: 1;
}

.tile-icon {
    position: absolute;
    right: 18px;
    bottom: 12px;
    font-size: 3.35rem;
    font-weight: 800;
    line-height: 1;
    color: rgba(37, 99, 235, 0.10);
    pointer-events: none;
    transition: transform 0.24s ease, color 0.24s ease;
}

.tile:hover .tile-icon {
    transform: scale(1.06);
    color: rgba(37, 99, 235, 0.16);
}

.tile h3 {
    position: relative;
    z-index: 1;
    margin: 0 0 14px;
    font-size: 1.38rem;
    line-height: 1.22;
    color: var(--text-dark);
    font-weight: 800;
    letter-spacing: -0.01em;
    transition: color 0.24s ease, transform 0.24s ease;
}

.tile:hover h3 {
    color: #1d4ed8;
    transform: translateY(-1px);
}

.tile p {
    position: relative;
    z-index: 1;
    margin: 0;
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.72;
    max-width: 92%;
}

.tile-link {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
    margin-bottom: 6px;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary);
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.24s ease, transform 0.24s ease;
}

.tile:hover .tile-link {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================================
   HOMEPAGE – PROJECTS SHOWCASE
   ========================================================= */

.projects-showcase {
    background:
        linear-gradient(180deg, #ffffff 0 24%, #132a68 24% 100%);
    overflow: hidden;
}

.projects-showcase__shape {
    position: absolute;
    top: 0;
    left: 0;
    width: 340px;
    height: 340px;
    background: linear-gradient(150deg, rgba(102, 157, 255, 0.38) 0%, rgba(102, 157, 255, 0.08) 100%);
    clip-path: polygon(0 0, 38% 0, 100% 62%, 0 100%);
    opacity: 0.62;
}

.projects-showcase__inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.projects-showcase__content {
    color: #fff;
    max-width: 520px;
    padding-top: 112px;
}

.projects-showcase__content .section-eyebrow {
    color: rgba(255, 255, 255, 0.78);
}

.projects-showcase__content h2 {
    font-size: 2.5rem;
    line-height: 1.15;
    color: #fff;
}

.projects-showcase__content p {
    margin: 0 0 28px;
    font-size: 1.06rem;
    line-height: 1.8;
    color: rgba(230, 238, 255, 0.9);
}

.projects-showcase__logos {
    position: relative;
    min-height: 430px;
}

.project-badge {
    position: absolute;
    width: 190px;
    height: 190px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    box-shadow: none;
    transition: transform 0.25s ease, filter 0.25s ease;
}

.project-badge:hover {
    transform: translateY(-6px) scale(1.03);
    filter: brightness(1.04);
}

.project-badge img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.project-badge:first-child {
    top: 0;
    left: 80px;
}

.project-badge--middle {
    top: 140px;
    left: 240px;
}

.project-badge--bottom {
    top: 270px;
    left: 380px;
}

/* =========================================================
   HOMEPAGE – NEWS
   ========================================================= */

.homepage-news__head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.homepage-news__head h2 {
    margin: 0 0 10px;
    font-size: 2.2rem;
    line-height: 1.15;
    color: var(--text-dark);
    letter-spacing: -0.025em;
}

.homepage-news__head p {
    margin: 0;
    color: var(--text-light);
}

.homepage-news__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.homepage-news__card {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 28px;
    border-radius: var(--radius-lg);
    background:
        radial-gradient(circle at top right, rgba(47, 102, 243, 0.12) 0%, rgba(47, 102, 243, 0) 44%),
        linear-gradient(165deg, rgba(243, 248, 255, 0.95) 0%, rgba(233, 242, 255, 0.9) 100%);
    border: 1px solid rgba(176, 198, 240, 0.72);
    box-shadow: 0 18px 36px rgba(13, 31, 76, 0.14);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.homepage-news__card:hover {
    transform: translateY(-5px);
    border-color: rgba(129, 166, 236, 0.95);
    box-shadow: 0 24px 46px rgba(13, 31, 76, 0.2);
}

.homepage-news__card:hover .homepage-news__image img {
    transform: scale(1.03);
}

.homepage-news__meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.homepage-news__category {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(18, 40, 98, 0.1);
    border: 1px solid rgba(78, 120, 201, 0.28);
    font-size: 12px;
    font-weight: 700;
    color: #1b397f;
}

.homepage-news__date {
    font-size: 14px;
    color: #6b7280;
    font-weight: 500;
}

.homepage-news__card h3 {
    margin: 0 0 14px;
    font-size: 1.45rem;
    line-height: 1.28;
    color: #111f45;
    font-weight: 800;
    letter-spacing: -0.015em;
}

.homepage-news__card p {
    margin: 0 0 20px;
    color: #455a7f;
    line-height: 1.76;
}

.homepage-news__link {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    font-weight: 700;
    color: #183b88;
    padding-bottom: 2px;
    border-bottom: 1px solid rgba(24, 59, 136, 0.3);
    transition: color 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.homepage-news__link::after {
    content: "→";
    font-size: 0.9em;
    transition: transform 0.2s ease;
}

.homepage-news__link:hover {
    color: #0f2f78;
    border-color: rgba(15, 47, 120, 0.55);
    transform: translateX(2px);
}

.homepage-news__link:hover::after {
    transform: translateX(2px);
}

.homepage-news__image {
    margin: -28px -28px 20px;
    overflow: hidden;
    border-radius: 22px 22px 0 0;
}

.homepage-news__image img {
    width: 100%;
    height: 224px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

/* =========================================================
   HOMEPAGE – REFERENCES
   ========================================================= */

.homepage-references__head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.homepage-references__head h2 {
    margin: 0 0 10px;
    font-size: 2.2rem;
    line-height: 1.15;
    color: var(--text-dark);
    letter-spacing: -0.025em;
}

.homepage-references__head p {
    margin: 0;
    color: var(--text-light);
}

.homepage-references__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.homepage-reference-card {
    padding: 30px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(132, 164, 228, 0.74);
    background:
        radial-gradient(circle at top right, rgba(52, 109, 248, 0.2) 0%, rgba(52, 109, 248, 0) 44%),
        linear-gradient(162deg, rgba(233, 241, 255, 0.98) 0%, rgba(217, 230, 251, 0.94) 100%);
    box-shadow: 0 20px 40px rgba(10, 28, 74, 0.2);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.homepage-reference-card:hover {
    transform: translateY(-5px);
    border-color: rgba(97, 140, 226, 0.96);
    box-shadow: 0 26px 48px rgba(10, 28, 74, 0.28);
}

.homepage-reference-card__category {
    display: inline-block;
    margin-bottom: 14px;
    padding: 5px 10px;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(19, 42, 102, 0.16) 0%, rgba(19, 42, 102, 0.1) 100%);
    border: 1px solid rgba(66, 114, 209, 0.34);
    font-size: 12px;
    font-weight: 700;
    color: #1b397f;
}

.homepage-reference-card h3 {
    margin: 0 0 8px;
    font-size: 1.52rem;
    line-height: 1.2;
    color: #0f234f;
    letter-spacing: -0.015em;
}

.homepage-reference-card__location {
    margin: 0 0 18px;
    color: #3f557d;
    font-weight: 500;
}

.homepage-reference-card__meta {
    margin-bottom: 16px;
    padding: 15px 16px;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(22, 46, 110, 0.15) 0%, rgba(22, 46, 110, 0.09) 100%);
    border: 1px solid rgba(119, 156, 230, 0.55);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.48), 0 8px 18px rgba(14, 35, 86, 0.1);
}

.homepage-reference-card__meta span {
    display: block;
    margin-bottom: 4px;
    font-size: 13px;
    color: #4d6187;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.homepage-reference-card__meta strong {
    font-size: 16px;
    color: #0f2458;
    letter-spacing: -0.01em;
}

.homepage-reference-card__meta--link {
    display: block;
    color: inherit;
    transition: all 0.2s ease;
}

.homepage-reference-card__meta--link:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
    border-color: #d1d5db;
}

.homepage-reference-card__meta--link strong::after {
    content: " →";
    opacity: 0;
    transition: 0.2s;
}

.homepage-reference-card__meta--link:hover strong::after {
    opacity: 1;
}

.homepage-reference-card__description {
    margin: 0;
    line-height: 1.75;
    color: #3b527a;
}

.homepage-reference-card__title-link {
    color: inherit;
    transition: color 0.2s ease, opacity 0.2s ease;
}

.homepage-reference-card__title-link:hover {
    color: #183b88;
}

.homepage-reference-card__title-link::after {
    content: " ↗";
    font-size: 0.9em;
    opacity: 0.7;
}

.homepage-news__head .btn,
.homepage-references__head .btn {
    background: linear-gradient(135deg, #14265f 0%, #2447a8 55%, #2f66f3 100%);
    color: #fff;
    border: 1px solid rgba(94, 132, 214, 0.48);
    box-shadow: 0 14px 30px rgba(20, 38, 95, 0.3);
}

.homepage-news__head .btn:hover,
.homepage-references__head .btn:hover {
    border-color: rgba(115, 154, 236, 0.8);
    box-shadow: 0 18px 36px rgba(20, 38, 95, 0.38);
}
.homepage-reference-card__image {
    display: block;
    width: calc(100% + 28px);
    margin: -14px -14px 22px;
    padding: 0;
    border: 0;
    border-radius: 22px;
    overflow: hidden;
    background: #eaf2ff;
    aspect-ratio: 4 / 3;
    box-shadow: 0 16px 30px rgba(10, 28, 74, 0.18);
    cursor: zoom-in;
}

.homepage-reference-card__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.25s ease;
}

.homepage-reference-card:hover .homepage-reference-card__image img {
    transform: scale(1.04);
}

.homepage-reference-card__models {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.homepage-reference-card__models a,
.homepage-reference-card__models strong {
    display: inline-flex;
    align-items: center;
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.62);
    border: 1px solid rgba(119, 156, 230, 0.55);
    color: #0f2458;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.homepage-reference-card__models a:hover {
    transform: translateY(-1px);
    background: #ffffff;
    border-color: rgba(47, 102, 243, 0.65);
}

.homepage-reference-card__models a::after {
    content: " →";
    margin-left: 3px;
}

.reference-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 28px;
    background: rgba(6, 18, 45, 0.82);
    backdrop-filter: blur(8px);
}

.reference-lightbox.is-open {
    display: flex;
}

.reference-lightbox__image {
    display: block;
    max-width: min(1100px, 92vw);
    max-height: 88vh;
    border-radius: 24px;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
    object-fit: contain;
}

.reference-lightbox__close {
    position: fixed;
    top: 22px;
    right: 28px;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 50%;
    background: #ffffff;
    color: #0f172a;
    font-size: 34px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
}

/* =========================================================
   HOMEPAGE – ABOUT PREVIEW
   ========================================================= */

.about-preview p {
    max-width: 800px;
    color: var(--text-light);
    margin: 0 0 24px;
    font-size: 1rem;
}

/* =========================================================
   SLIDER SECTION
   ========================================================= */

.slider-section {
    padding: 0 0 70px;
}

.slider-wrapper {
    position: relative;
}

.simple-slider {
    position: relative;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    min-height: 420px;
}

.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.45s ease, visibility 0.45s ease;
    color: inherit;
    text-decoration: none;
}

.slide.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.slide-inner {
    display: grid;
    grid-template-columns: 48% 52%;
    align-items: center;
    min-height: 420px;
}

.slide img {
    width: 100%;
    height: 420px;
    object-fit: contain;
    object-position: center;
    background: var(--white);
    padding: 24px;
}

.slide-text {
    padding: 48px;
}

.slide-text h3 {
    margin: 0 0 16px;
    font-size: 2.2rem;
    line-height: 1.15;
    color: var(--text-dark);
}

.slide-text p {
    margin: 0;
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 460px;
}

.slider-controls {
    position: absolute;
    top: 50%;
    left: -26px;
    right: -26px;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    pointer-events: none;
}

.slider-controls button {
    pointer-events: auto;
    width: 52px;
    height: 52px;
    border: none;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.88);
    color: var(--white);
    font-size: 1.7rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.16);
    transition: background 0.2s ease, transform 0.2s ease;
}

.slider-controls button:hover {
    background: var(--primary);
    transform: scale(1.05);
}

/* =========================================================
   GENERIC PAGE HELPERS
   ========================================================= */

.page-hero {
    padding: 70px 0 40px;
    background: var(--bg-light);
}

.page-hero h1 {
    margin: 0;
    font-size: 2.4rem;
    line-height: 1.2;
}

.page-intro {
    max-width: 760px;
    margin: 0 0 32px;
    font-size: 1.05rem;
    color: var(--text-light);
}

.page-content {
    padding: 50px 0 80px;
}

.product-category-grid {
    grid-template-columns: repeat(3, 1fr);
}

/* =========================================================
   FOOTER
   ========================================================= */

.site-footer {
    background: #0f172a;
    color: #ffffff;
    padding: 56px 0 0;
    margin-top: 20px;
}
.footer-bottom__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.footer-admin-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    color: rgba(255, 255, 255, 0.28);
    font-size: 0.95rem;
    text-decoration: none;
    opacity: 0.45;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.footer-admin-link:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

@media (max-width: 640px) {
    .footer-bottom__inner {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }
}
.footer-main {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr 1fr;
    gap: 36px;
    padding-bottom: 36px;
}

.footer-column h4 {
    margin: 0 0 16px;
    font-size: 1.05rem;
    color: #ffffff;
}

.footer-logo {
    display: inline-flex;
    margin-bottom: 18px;
}

.footer-logo img {
    height: 42px;
    width: auto;
}

.footer-company__text {
    margin: 0 0 20px;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.75;
    max-width: 420px;
}

.footer-company__details p {
    margin: 0 0 8px;
    color: rgba(255, 255, 255, 0.82);
}

.footer-company__details a,
.footer-links a {
    color: rgba(255, 255, 255, 0.82);
    transition: color 0.2s ease;
}

.footer-company__details a:hover,
.footer-links a:hover {
    color: #ffffff;
}

.footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.footer-links li {
    margin: 0;
}

.footer-cta {
    margin-top: 24px;
    padding: 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-cta p {
    margin: 0 0 14px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
}

.footer-bottom {
    padding: 18px 0 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-bottom p {
    margin: 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

.back-to-top {
    position: fixed;
    right: 22px;
    bottom: 22px;
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.92);
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 700;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.18);
    z-index: 1200;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(10px);
    transition: opacity 0.22s ease, visibility 0.22s ease, transform 0.22s ease, background-color 0.2s ease;
}

.back-to-top:hover {
    background: #2563eb;
    transform: translateY(-2px);
}

.back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}
