/* ============================================
   Prolrey Biotech — Homepage Stylesheet
   Design: Clean, professional corporate
   ============================================ */

/* ---------- Web Fonts ----------
   方案B：一级常用字集子集（含拉丁/西里尔/希腊/常用符号），
   6 个文件合计约 2MB（原 TTF/OTF 为 30MB）。
   全量字体（含全部 2 万汉字）备用在 ASSETS/FONTS/FULL/，
   若日后需要生僻字，把下面的 url 改成 FULL/MiSans-*.woff2 即可。
   ?v=2 为版本号，配合强缓存使用（换字体时改版本号即可让用户重新下载）。
   --------------------------------- */
@font-face {
    font-family: 'MiSans';
    src: url('ASSETS/FONTS/MiSans-Regular.woff2?v=2') format('woff2');
    font-weight: 400;
    font-display: swap;
}
@font-face {
    font-family: 'MiSans';
    src: url('ASSETS/FONTS/MiSans-Medium.woff2?v=2') format('woff2');
    font-weight: 500;
    font-display: swap;
}
@font-face {
    font-family: 'MiSans';
    src: url('ASSETS/FONTS/MiSans-Demibold.woff2?v=2') format('woff2');
    font-weight: 600;
    font-display: swap;
}
@font-face {
    font-family: 'MiSans';
    src: url('ASSETS/FONTS/MiSans-Bold.woff2?v=2') format('woff2');
    font-weight: 700;
    font-display: swap;
}
@font-face {
    font-family: 'DINPro';
    src: url('ASSETS/FONTS/DINPro-Medium.woff2?v=2') format('woff2');
    font-weight: 500;
    font-display: swap;
}
@font-face {
    font-family: 'DINPro';
    src: url('ASSETS/FONTS/DINPro-Bold.woff2?v=2') format('woff2');
    font-weight: 700;
    font-display: swap;
}

/* ---------- CSS Variables ---------- */
:root {
    --red: #E53935;
    --red-dark: #C62828;
    --red-light: #FFEBEE;
    --black: #1A1A1A;
    --dark: #333333;
    --gray: #666666;
    --gray-light: #999999;
    --bg-light: #F7F8FA;
    --bg-white: #FFFFFF;
    --footer-bg: #1E1E1E;
    --shadow-card: 0 4px 24px rgba(0,0,0,0.06);
    --shadow-card-hover: 0 8px 40px rgba(0,0,0,0.10);
    --radius: 12px;
    --radius-sm: 8px;
    --max-w: 1280px;
    --nav-h: 72px;
    --font-main: 'MiSans', 'Roboto', 'Noto Sans', -apple-system, 'Segoe UI', sans-serif;
    --font-num: 'DINPro', 'MiSans', 'Roboto', 'Noto Sans', sans-serif;
    --transition: 0.3s cubic-bezier(0.4,0,0.2,1);
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 多语言防闪屏：非默认语言(EN)时先隐藏带 LID 的元素，lang.js 渲染完成后再显示 */
html.lang-loading [LID] { visibility: hidden; }

body {
    font-family: var(--font-main);
    color: var(--dark);
    background: var(--bg-white);
    line-height: 1.7;
    font-size: 16px;
    overflow-x: hidden;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition);
}

ul { list-style: none; }

/* ---------- Utility ---------- */
.container {
    width: 100%;
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 40px;
}

.section-title {
    text-align: center;
    margin-bottom: 56px;
}

.section-title h2 {
    font-size: 36px;
    font-weight: 700;
    color: var(--black);
    letter-spacing: -0.5px;
    position: relative;
    display: inline-block;
    padding-bottom: 16px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 48px;
    height: 3px;
    background: var(--red);
    border-radius: 2px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 36px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    font-family: var(--font-main);
    cursor: pointer;
    transition: all var(--transition);
    border: 2px solid transparent;
    letter-spacing: 0.3px;
}

.btn-primary {
    background: var(--red);
    color: #fff;
    border-color: var(--red);
}

.btn-primary:hover {
    background: var(--red-dark);
    border-color: var(--red-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(229,57,53,0.3);
}

.btn-outline {
    background: transparent;
    color: var(--red);
    border-color: var(--red);
}

.btn-outline:hover {
    background: var(--red);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(229,57,53,0.3);
}

.btn-outline-white {
    background: transparent;
    color: #fff;
    border-color: rgba(255,255,255,0.5);
}

.btn-outline-white:hover {
    background: #fff;
    color: var(--dark);
    border-color: #fff;
}

/* ---------- Navigation ---------- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-h);
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    transition: box-shadow var(--transition);
}

.nav.scrolled {
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 14px;
    font-weight: 700;
    font-size: 20px;
    color: var(--black);
    letter-spacing: 1px;
    flex-shrink: 0;
}

.nav-logo .logo-icon {
    height: 40px;
    width: auto;
}

.nav-logo .logo-text {
    height: 24px;
    width: auto;
    display: block;
    margin-top: 4px;
}

/* Desktop: nav-menu is a horizontal row */
.nav-menu {
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 36px;
}

.nav-links a {
    font-size: 15px;
    font-weight: 500;
    color: var(--dark);
    position: relative;
    padding: 4px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--red);
    border-radius: 1px;
    transition: width var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--red);
}

/* Desktop: hide the mobile menu footer */
.nav-menu-footer {
    display: none;
}

/* Desktop nav-right */
.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
}

.lang-switch {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--gray);
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 6px;
    transition: background var(--transition);
}

.lang-switch:hover {
    background: var(--bg-light);
}

.lang-switch .lang-globe {
    width: 18px;
    height: 18px;
    opacity: 0.6;
    flex-shrink: 0;
}

.lang-switch .lang-arrow {
    width: 10px;
    height: 6px;
    opacity: 0.5;
    flex-shrink: 0;
    transition: transform var(--transition);
}

.lang-switch.is-open .lang-arrow {
    transform: rotate(180deg);
}

/* 语言下拉选择（自定义面板，匹配站点风格） */
.lang-switch {
    position: relative;
}

.lang-current {
    font-weight: 500;
    color: var(--gray);
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: 110px;
    background: #fff;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-card-hover);
    padding: 6px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
    z-index: 1000;
}

.lang-switch.is-open .lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    display: block;
    width: 100%;
    padding: 8px 12px;
    border: none;
    background: transparent;
    border-radius: 6px;
    font-size: 14px;
    font-family: var(--font-main);
    font-weight: 500;
    color: var(--dark);
    text-align: left;
    cursor: pointer;
    transition: background var(--transition), color var(--transition);
}

.lang-option:hover {
    background: var(--bg-light);
}

.lang-option.is-active {
    color: var(--red);
    background: var(--red-light);
}

.nav-cta {
    padding: 10px 24px;
    font-size: 14px;
}

/* Mobile toggle — hamburger */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    padding: 6px;
    border: none;
    background: none;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    transition: background var(--transition);
}

.nav-toggle:hover {
    background: var(--bg-light);
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--dark);
    border-radius: 2px;
    transition: all 0.35s cubic-bezier(0.4,0,0.2,1);
    transform-origin: center;
}

/* Hamburger → X animation */
.nav-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.nav-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Carousel ---------- */
.carousel {
    margin-top: var(--nav-h);
    position: relative;
    width: 100%;
    height: calc(100vh - var(--nav-h));
    min-height: 520px;
    max-height: 800px;
    overflow: hidden;
    background: #111;
}

.carousel-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s cubic-bezier(0.4,0,0.2,1), visibility 0s 1s;
}

.carousel-slide.active {
    opacity: 1;
    visibility: visible;
    transition: opacity 1s cubic-bezier(0.4,0,0.2,1), visibility 0s;
    z-index: 2;
}

/* Background image with Ken Burns */
.carousel-bg {
    position: absolute;
    inset: -40px;
    background-size: cover;
    background-position: center;
    transition: transform 8s linear;
    will-change: transform;
}

.carousel-slide.active .carousel-bg {
    transform: scale(1.08);
}

/* Dark overlay gradient */
.carousel-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(105deg, rgba(10,10,15,0.82) 0%, rgba(10,10,15,0.55) 45%, rgba(10,10,15,0.15) 100%),
        linear-gradient(to top, rgba(10,10,15,0.4) 0%, transparent 40%);
    z-index: 1;
}

/* Content */
.carousel-content {
    position: relative;
    z-index: 3;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 60px;
    color: #fff;
}

.carousel-tag {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--red);
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease 0.3s, transform 0.6s ease 0.3s;
}

.carousel-slide.active .carousel-tag {
    opacity: 1;
    transform: translateY(0);
}

.carousel-content h1 {
    font-size: 56px;
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -1px;
    margin-bottom: 20px;
    max-width: 640px;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease 0.4s, transform 0.7s ease 0.4s;
}

.carousel-slide.active .carousel-content h1 {
    opacity: 1;
    transform: translateY(0);
}

.carousel-content h1 .accent {
    color: var(--red);
}

.carousel-content p {
    font-size: 16px;
    line-height: 1.75;
    color: rgba(255,255,255,0.72);
    max-width: 520px;
    margin-bottom: 36px;
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease 0.55s, transform 0.7s ease 0.55s;
}

.carousel-slide.active .carousel-content p {
    opacity: 1;
    transform: translateY(0);
}

.carousel-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease 0.7s, transform 0.6s ease 0.7s;
}

.carousel-slide.active .carousel-buttons {
    opacity: 1;
    transform: translateY(0);
}

/* Arrows */
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.06);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: rgba(255,255,255,0.7);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
    opacity: 0;
}

.carousel:hover .carousel-arrow {
    opacity: 1;
}

.carousel-arrow:hover {
    background: var(--red);
    border-color: var(--red);
    color: #fff;
    transform: translateY(-50%) scale(1.08);
}

.carousel-arrow svg {
    width: 22px;
    height: 22px;
}

.carousel-prev { left: 28px; }
.carousel-next { right: 28px; }

/* Dots */
.carousel-dots {
    position: absolute;
    bottom: 36px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 10px;
    align-items: center;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.5);
    background: transparent;
    cursor: pointer;
    transition: all var(--transition);
    padding: 0;
}

.carousel-dot.active {
    background: var(--red);
    border-color: var(--red);
    width: 32px;
    border-radius: 5px;
}

.carousel-dot:hover:not(.active) {
    border-color: #fff;
    background: rgba(255,255,255,0.3);
}

/* Progress bar */
.carousel-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(255,255,255,0.1);
    z-index: 10;
}

.carousel-progress-bar {
    height: 100%;
    width: 0;
    background: var(--red);
    transition: width 0.1s linear;
}

.carousel-progress-bar.running {
    width: 100%;
    transition: width var(--autoplay-duration, 6s) linear;
}

/* Slide counter */
.carousel-counter {
    position: absolute;
    bottom: 36px;
    right: 40px;
    z-index: 10;
    font-family: var(--font-num);
    font-size: 14px;
    color: rgba(255,255,255,0.4);
    letter-spacing: 1px;
}

.carousel-counter .current {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
}

/* ---------- Hot Products ---------- */
.products {
    padding: 100px 0;
    background: var(--bg-white);
}

.products-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 24px;
}

.product-card-large {
    grid-row: 1 / 3;
    aspect-ratio: 1;
}

/* Product image = 底图 (background layer) */
.product-card .product-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    aspect-ratio: unset;
    padding: 0;
    display: block;
    background: linear-gradient(145deg, #F5F7FA 0%, #EBEEF3 100%);
    background-image: url('ASSETS/PRODUCT/HotProductsBG.png');
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

/* Product device photo — floating above 底图 */
.product-card .product-img img {
    position: absolute;
    top: 8%;
    left: 50%;
    transform: translateX(-50%);
    max-width: 82%;
    max-height: 62%;
    width: auto;
    height: auto;
    object-fit: contain;
    z-index: 1;
    filter: drop-shadow(0 8px 24px rgba(0,0,0,0.08));
}

/* Large card device photo — bigger display */
.product-card-large .product-img img {
    max-width: 88%;
    max-height: 68%;
    top: 6%;
}

/* Right-side cards: 底图 fills entire card, product img left + info right */
.product-card:not(.product-card-large) .product-img img {
    left: 22%;
    max-width: 42%;
    max-height: 75%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.product-card:not(.product-card-large) .product-info {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 55%;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 20px 24px;
    margin-top: 0;
    background: none;
}

/* Product info = floating text layer */
.product-card .product-info {
    position: relative;
    z-index: 2;
    padding: 24px;
    margin-top: auto;
    background: linear-gradient(to top, rgba(255,255,255,0.96) 55%, rgba(255,255,255,0.7) 78%, transparent 100%);
}

.product-card {
    display: flex;
    flex-direction: column;
    background: var(--bg-white);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.06);
    transition: all var(--transition);
    position: relative;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-card-hover);
    border-color: transparent;
}

.product-info h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--red);
    margin-bottom: 6px;
}

.product-info p {
    font-size: 14px;
    color: var(--gray-light);
    line-height: 1.5;
}

.product-info p.product-desc {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-card-large .product-info p.product-desc {
    -webkit-line-clamp: 2;
}

@media (max-width: 768px) {
    .product-info p.product-desc,
    .product-card-large .product-info p.product-desc {
        -webkit-line-clamp: 2;
    }
}

.product-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}

.product-info .product-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    color: var(--red);
    background: rgba(229, 57, 53, 0.12);
    padding: 3px 10px;
    border-radius: 20px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* ---------- Ecosystem ---------- */
.ecosystem {
    padding: 100px 0;
    background: var(--bg-light);
}

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

.eco-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all var(--transition);
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
}

.eco-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-card-hover);
}

.eco-card-img {
    width: 100%;
    aspect-ratio: 16/10;
    overflow: hidden;
    position: relative;
}

.eco-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.eco-card:hover .eco-card-img img {
    transform: scale(1.05);
}

.eco-card-body {
    padding: 28px 28px 32px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.eco-card-icon {
    width: 70px;
    height: 70px;
    border-radius: 14px;
    background: var(--red-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    margin-top: -64px;
    position: relative;
    z-index: 2;
    box-shadow: 0 4px 16px rgba(229,57,53,0.12);
    border: 3px solid var(--bg-white);
}

.eco-card-icon svg {
    width: 35px;
    height: 35px;
    color: var(--red);
}

.eco-card-body h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 10px;
}

.eco-card-body p {
    font-size: 14px;
    color: var(--gray);
    line-height: 1.7;
    flex: 1;
}

.eco-card-body .btn {
    margin-top: 20px;
    align-self: flex-start;
    padding: 10px 28px;
    font-size: 13px;
}

/* ---------- Why Partner ---------- */
.why-partner {
    padding: 100px 0;
    background: var(--bg-white);
}

.why-intro {
    text-align: center;
    max-width: 760px;
    margin: -20px auto 56px;
    font-size: 15px;
    color: var(--gray);
    line-height: 1.8;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.why-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 32px 28px;
    border: 1px solid rgba(0,0,0,0.06);
    transition: all var(--transition);
    position: relative;
}

.why-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card-hover);
    border-color: transparent;
}

.why-card-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--red);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.why-card-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.why-card-icon svg {
    width: 20px;
    height: 20px;
    color: #fff;
}

.why-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--red);
    margin: 0;
    line-height: 1;
}

.why-card ul li {
    font-size: 14px;
    color: var(--dark);
    padding: 5px 0;
    padding-left: 18px;
    position: relative;
    line-height: 1.6;
}

.why-card ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 12px;
    width: 5px;
    height: 5px;
    background: var(--dark);
    border-radius: 50%;
}

/* ---------- Information Center ---------- */
.info-center {
    padding: 100px 0;
    background: var(--bg-light);
}

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

.news-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all var(--transition);
    box-shadow: var(--shadow-card);
}

.news-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-card-hover);
}

.news-card-img {
    width: 100%;
    aspect-ratio: 16/10;
    overflow: hidden;
}

.news-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.news-card:hover .news-card-img img {
    transform: scale(1.05);
}

.news-card-body {
    padding: 24px;
}

.news-card-date {
    font-size: 13px;
    font-family: var(--font-num);
    color: var(--gray-light);
    margin-bottom: 8px;
    font-weight: 500;
}

.news-card-body h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--black);
    line-height: 1.5;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-body p {
    font-size: 14px;
    color: var(--gray-light);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.info-more {
    text-align: center;
    margin-top: 48px;
}

/* ---------- Footer ---------- */
.footer {
    background: var(--footer-bg);
    padding: 56px 0 0;
    color: rgba(255,255,255,0.6);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 60px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-links {
    display: flex;
    gap: 48px;
}

.footer-links a {
    font-size: 15px;
    color: rgba(255,255,255,0.7);
    transition: color var(--transition);
    position: relative;
}

.footer-links a:hover {
    color: #fff;
}

.footer-links a::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--red);
    transition: width var(--transition);
}

.footer-links a:hover::after {
    width: 100%;
}

.footer-brand {
    margin-top: 28px;
}

.footer-brand .footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.footer-brand .footer-logo .logo-icon {
    height: 32px;
    width: auto;
}

.footer-brand p {
    font-size: 13px;
    color: rgba(255,255,255,0.35);
}

.footer-contact {
    text-align: right;
}

.footer-contact .phone {
    display: flex;
    align-items: center;
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    font-family: var(--font-num);
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}
.footer-contact .phone svg {
    margin-right: 14px;
}

.footer-social {
    display: flex;
    gap: 16px;
    justify-content: flex-end;
}

.footer-social a {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
    position: relative;
}

.footer-social a:hover {
    background: var(--red);
    transform: translateY(-2px);
}

.footer-social a svg {
    width: 22px;
    height: 22px;
    color: rgba(255,255,255,0.7);
}

.footer-social a:hover svg {
    color: #fff;
}

.footer-social a .social-label {
    position: absolute;
    bottom: -22px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 11px;
    color: rgba(255,255,255,0.4);
    white-space: nowrap;
    opacity: 0;
    transition: opacity var(--transition);
}

.footer-social a:hover .social-label {
    opacity: 1;
}

.footer-bottom {
    padding: 20px 0;
    text-align: center;
    font-size: 13px;
    color: rgba(255,255,255,0.25);
}

/* ---------- Scroll Animations ---------- */
.fade-up {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .carousel-content h1 { font-size: 46px; }
}

@media (max-width: 900px) {
    .container { padding: 0 24px; }

    /* --- Mobile Nav --- */
    .lang-desktop,
    .nav-cta-desktop {
        display: none !important;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: absolute;
        top: var(--nav-h);
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        align-items: stretch;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.45s cubic-bezier(0.4,0,0.2,1),
                    box-shadow 0.3s ease;
        box-shadow: none;
        border-bottom: 1px solid transparent;
    }

    .nav-menu.open {
        max-height: calc(100vh - var(--nav-h));
        box-shadow: 0 16px 48px rgba(0,0,0,0.1);
        border-bottom: 1px solid rgba(0,0,0,0.06);
    }

    .nav-links {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 8px 24px;
    }

    .nav-links a {
        padding: 14px 0;
        font-size: 16px;
        border-bottom: 1px solid rgba(0,0,0,0.04);
    }

    .nav-links a::after { display: none; }

    .nav-links a:last-child {
        border-bottom: none;
    }

    /* Mobile menu footer — lang + Contact Us at bottom */
    .nav-menu-footer {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
        padding: 16px 24px 24px;
        border-top: 1px solid rgba(0,0,0,0.06);
        background: var(--bg-light);
    }

    .nav-menu-footer .lang-switch {
        padding: 10px 14px;
        background: #fff;
        border-radius: 10px;
        font-size: 14px;
        border: 1px solid rgba(0,0,0,0.06);
        position: static;
        flex-wrap: wrap;
    }

    .nav-menu-footer .lang-dropdown {
        position: static;
        width: 100%;
        margin-top: 10px;
        box-shadow: none;
        border: 1px solid rgba(0,0,0,0.06);
        opacity: 1;
        visibility: hidden;
        transform: none;
        transition: none;
        display: none;
    }

    .nav-menu-footer .lang-switch.is-open .lang-dropdown {
        display: block;
        visibility: visible;
    }

    .nav-menu-footer .nav-cta {
        width: 100%;
        padding: 14px;
        font-size: 15px;
        border-radius: 12px;
        text-align: center;
    }

    /* Carousel tablet */
    .carousel { min-height: 440px; max-height: 600px; }
    .carousel-content { padding: 0 32px; }
    .carousel-content h1 { font-size: 36px; }
    .carousel-content p { font-size: 14px; max-width: 400px; }
    .carousel-arrow { width: 44px; height: 44px; }
    .carousel-arrow svg { width: 18px; height: 18px; }
    .carousel-prev { left: 16px; }
    .carousel-next { right: 16px; }
    .carousel-counter { display: none; }

    .eco-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
    .news-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
    .products-grid { grid-template-columns: 1fr; grid-template-rows: auto; }
    .product-card-large { grid-row: auto; aspect-ratio: unset; min-height: 500px; }
    .product-card-large .product-img img { max-height: 58%; }
    .product-card-large .product-info { position: absolute; right: 0; left: 0; bottom: 0; top: auto; width: 100%; padding: 16px 24px 28px; background: linear-gradient(to top, rgba(255,255,255,0.96) 55%, rgba(255,255,255,0.7) 78%, transparent 100%); }
    .product-card:not(.product-card-large) { min-height: 420px; }
    .product-card:not(.product-card-large) .product-img img { left: 50%; top: 8%; max-width: 65%; max-height: 45%; transform: translate(-50%, 0); }
    .product-card:not(.product-card-large) .product-info { position: absolute; right: 0; left: 0; bottom: 0; top: auto; width: 100%; padding: 16px 24px 28px; background: linear-gradient(to top, rgba(255,255,255,0.96) 55%, rgba(255,255,255,0.7) 78%, transparent 100%); }
    .product-card:not(.product-card-large) .product-info::before { display: none; }
    .product-tag:not(:first-child) { display: none; }

    .section-title h2 { font-size: 28px; }
    
    .footer-inner {
        flex-direction: column;
        align-items: center;
        gap: 32px;
    }
    .footer-links { justify-content: center; flex-wrap: wrap; }
    .footer-brand { text-align: center; }
    .footer-brand .footer-logo { justify-content: center; }
    .footer-contact { text-align: center; }
    .footer-social { justify-content: center; }
}

@media (max-width: 640px) {
    /* Carousel mobile */
    .carousel { min-height: 400px; max-height: 520px; }
    .carousel-content { padding: 0 24px; }
    .carousel-content h1 { font-size: 28px; letter-spacing: -0.5px; }
    .carousel-content p { font-size: 13px; margin-bottom: 24px; }
    .carousel-tag { font-size: 10px; margin-bottom: 14px; }
    .carousel-buttons { flex-direction: column; gap: 10px; }
    .carousel-buttons .btn { width: 100%; max-width: 260px; text-align: center; }
    .carousel-arrow { display: none; }
    .carousel-dots { bottom: 24px; }
    .carousel-dot { width: 8px; height: 8px; }
    .carousel-dot.active { width: 24px; }

    .products, .ecosystem, .why-partner, .info-center { padding: 64px 0; }
    .products-grid { grid-template-columns: 1fr; max-width: 360px; margin: 0 auto; }
    .why-grid { grid-template-columns: 1fr; }
}

/* ============ SCROLL TO TOP ============ */
.scroll-top {
    position: fixed;
    right: 28px;
    bottom: 32px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--red);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 900;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, background 0.2s ease;
    box-shadow: 0 4px 14px rgba(229, 57, 53, 0.35);
}
.scroll-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.scroll-top:hover {
    background: #c62828;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(229, 57, 53, 0.45);
}
.scroll-top svg {
    width: 20px;
    height: 20px;
    stroke: #fff;
    stroke-width: 2.5;
    fill: none;
}

@media (max-width: 640px) {
    .scroll-top {
        right: 16px;
        bottom: 20px;
        width: 40px;
        height: 40px;
    }
    .scroll-top svg {
        width: 18px;
        height: 18px;
    }
}
