/* ========================================
   ASIA PARTNERS — Corporate Website
   ======================================== */

:root {
    /* Primary — Red */
    --color-primary: #C8102E;
    --color-primary-dark: #9B0D23;
    --color-primary-light: #E0243D;
    --color-primary-rgb: 200, 16, 46;

    /* Dark */
    --color-dark: #1a1a1a;
    --color-dark-rgb: 26, 26, 26;

    /* Accent — Gold */
    --color-accent: #D4A843;
    --color-accent-rgb: 212, 168, 67;

    /* Neutrals */
    --color-white: #ffffff;
    --color-light: #f5f5f5;
    --color-gray-500: #777777;
    --color-text: #1a1a1a;

    /* Fonts */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-heading: 'Montserrat', 'Inter', sans-serif;

    /* Layout */
    --container-width: 1600px;
    --container-padding: 0 32px;

    /* Transition */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;

    /* Header */
    --header-top-h: 42px;
    --header-main-h: 84px;
}

/* ========== RESET ========== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-white);
    background: #0d0d0d;
    overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button { border: none; background: none; cursor: pointer; font-family: inherit; }

/* ========================================
   HEADER — TOP BAR
   ======================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.header__top {
    background: #0a0a0a;
    height: var(--header-top-h);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    transition: height var(--transition-base), opacity var(--transition-base), border var(--transition-base);
    overflow: hidden;
}

.header--scrolled .header__top {
    height: 0;
    opacity: 0;
    border-bottom: none;
    padding: 0;
    margin: 0;
    line-height: 0;
    font-size: 0;
    overflow: hidden;
}

.header__top-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: var(--container-padding);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header__top-left,
.header__top-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header__top-link,
.header__top-text {
    font-size: 13px;
    color: rgba(255,255,255,0.5);
    transition: color var(--transition-fast);
}

.header__top-link:hover { color: var(--color-white); }

.header__top-sep {
    color: rgba(255,255,255,0.15);
    font-size: 12px;
    margin: 0 4px;
}

/* ========================================
   HEADER — MAIN BAR
   ======================================== */
.header__main {
    background: rgba(13, 13, 13, 0.92);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    height: var(--header-main-h);
    transition: all var(--transition-base);
    border-top: none;
}

.header--scrolled .header__main {
    background: rgba(13, 13, 13, 1);
    box-shadow: 0 2px 30px rgba(0,0,0,0.5);
}

.header__container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: var(--container-padding);
    height: 100%;
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Logo — fixed left */
.header__logo {
    display: flex;
    align-items: center;
    gap: 14px;
    z-index: 101;
    flex-shrink: 0;
}

.header__logo-icon {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
}

.header__logo-icon svg { width: 100%; height: 100%; }

.header__logo-name {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 800;
    color: var(--color-white);
    letter-spacing: 3px;
    line-height: 1;
}

/* Nav — centered with flex:1 */
.header__nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.header__nav-list {
    display: flex;
    align-items: center;
    gap: 0;
}

.header__nav-link {
    font-size: 15px;
    font-weight: 500;
    color: rgba(255,255,255,0.7);
    padding: 10px 16px;
    border-radius: 6px;
    transition: all var(--transition-fast);
    position: relative;
    white-space: nowrap;
}

.header__nav-link:hover {
    color: #fff;
    background: rgba(255,255,255,0.06);
}

.header__nav-link.active {
    color: #fff;
}

.header__nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background: var(--color-primary);
    border-radius: 2px;
}

/* Right — fixed right */
.header__right {
    display: flex;
    align-items: center;
    gap: 16px;
    z-index: 101;
    flex-shrink: 0;
}

/* Lang */
.header__lang { position: relative; }

.header__lang-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    font-weight: 600;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 6px;
    transition: all var(--transition-fast);
}

.header__lang-btn:hover {
    color: #fff;
    border-color: rgba(255,255,255,0.25);
}

.header__lang-arrow {
    font-size: 10px;
    transition: transform var(--transition-fast);
}

.header__lang.active .header__lang-arrow {
    transform: rotate(180deg);
}

.header__lang-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 12px 48px rgba(0,0,0,0.15);
    padding: 6px;
    min-width: 160px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all var(--transition-base);
}

.header__lang.active .header__lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.header__lang-option {
    display: block;
    width: 100%;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text);
    border-radius: 6px;
    text-align: left;
    transition: all var(--transition-fast);
}

.header__lang-option:hover { background: var(--color-light); }

.header__lang-option.active {
    background: rgba(var(--color-primary-rgb), 0.08);
    color: var(--color-primary);
}

/* CTA */
.header__cta {
    padding: 11px 28px;
    background: var(--color-primary);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    border-radius: 6px;
    transition: all var(--transition-base);
    white-space: nowrap;
}

.header__cta:hover {
    background: var(--color-primary-light);
    box-shadow: 0 4px 20px rgba(var(--color-primary-rgb), 0.35);
}

/* Burger */
.header__burger {
    display: none;
    flex-direction: column;
    gap: 6px;
    width: 30px;
    padding: 4px 0;
}

.header__burger span {
    display: block;
    width: 100%;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: all var(--transition-base);
    transform-origin: center;
}

.header__burger.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.header__burger.active span:nth-child(2) { opacity: 0; }
.header__burger.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ========================================
   HERO
   ======================================== */
.hero {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero__bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 40%;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(var(--color-dark-rgb), 0.92) 0%,
        rgba(var(--color-dark-rgb), 0.85) 50%,
        rgba(var(--color-dark-rgb), 0.7) 80%,
        rgba(var(--color-dark-rgb), 0.55) 100%
    );
}

/* Content */
.hero__container {
    position: relative;
    z-index: 2;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    max-width: var(--container-width);
    width: 100%;
    margin: 0 auto;
    padding: var(--container-padding);
    padding-top: calc(var(--header-top-h) + var(--header-main-h) + 60px);
    padding-bottom: 40px;
}

.hero__content {
    max-width: 680px;
    flex-shrink: 0;
}

.hero__title {
    font-family: var(--font-heading);
    font-size: clamp(56px, 8vw, 104px);
    font-weight: 900;
    color: var(--color-white);
    line-height: 1;
    letter-spacing: 4px;
    margin-bottom: 28px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.9s ease forwards 0.3s;
}

.hero__slogan {
    font-size: clamp(20px, 2.5vw, 28px);
    font-weight: 600;
    color: var(--color-primary);
    line-height: 1.3;
    margin-bottom: 24px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s ease forwards 0.55s;
}

.hero__desc {
    font-size: clamp(20px, 1.8vw, 24px);
    font-weight: 400;
    color: rgba(255,255,255,0.68);
    line-height: 1.85;
    margin-bottom: 48px;
    max-width: 620px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s ease forwards 0.75s;
}

.hero__actions {
    display: flex;
    gap: 16px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s ease forwards 0.95s;
}

.hero__btn {
    padding: 18px 40px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 6px;
    transition: all var(--transition-base);
    text-align: center;
}

.hero__btn--primary {
    background: var(--color-primary);
    color: #fff;
}

.hero__btn--primary:hover {
    background: var(--color-primary-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(var(--color-primary-rgb), 0.4);
}

.hero__btn--outline {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,0.3);
}

.hero__btn--outline:hover {
    border-color: rgba(255,255,255,0.6);
    background: rgba(255,255,255,0.08);
    transform: translateY(-2px);
}

/* Hero news sidebar */
.hero__news {
    max-width: 480px;
    width: 100%;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    padding: 36px 40px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.8s ease forwards 1.1s;
}

.hero__news-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.hero__news-label {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--color-primary);
}

.hero__news-all {
    font-size: 15px;
    font-weight: 500;
    color: rgba(255,255,255,0.5);
    transition: color var(--transition-fast);
}

.hero__news-all:hover {
    color: #fff;
}

.hero__news-item {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 22px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: all var(--transition-fast);
}

.hero__news-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.hero__news-item:first-of-type {
    padding-top: 0;
}

.hero__news-item:hover .hero__news-title {
    color: #fff;
}

.hero__news-date {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-primary);
    opacity: 0.8;
}

.hero__news-title {
    font-size: 18px;
    font-weight: 500;
    color: rgba(255,255,255,0.72);
    line-height: 1.55;
    transition: color var(--transition-fast);
}

/* ========================================
   HERO STATS BAR
   ======================================== */
.hero__stats {
    position: relative;
    z-index: 3;
    background: rgba(13, 13, 13, 0.85);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255,255,255,0.08);
    opacity: 0;
    animation: fadeUp 0.8s ease forwards 1.2s;
}

.hero__stats-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: var(--container-padding);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.hero__stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
    position: relative;
}

.hero__stat:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 25%;
    height: 50%;
    width: 1px;
    background: rgba(255,255,255,0.1);
}

.hero__stat-num {
    font-family: var(--font-heading);
    font-size: clamp(36px, 4vw, 56px);
    font-weight: 900;
    color: var(--color-white);
    line-height: 1;
    margin-bottom: 8px;
}

.hero__stat-label {
    font-size: 14px;
    font-weight: 400;
    color: rgba(255,255,255,0.5);
    letter-spacing: 0.5px;
}

/* Animation */
@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   ABOUT SECTION — full dark theme
   ======================================== */

/* --- Dark hero part with photo --- */
.about__hero {
    position: relative;
    min-height: 620px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.about__hero-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 60%;
}

.about__hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(13, 13, 13, 1) 0%,
        rgba(13, 13, 13, 0.92) 25%,
        rgba(13, 13, 13, 0.65) 60%,
        rgba(13, 13, 13, 0.45) 100%
    );
}

.about__hero-content {
    position: relative;
    z-index: 2;
    max-width: var(--container-width);
    width: 100%;
    margin: 0 auto;
    padding: 100px 48px;
}

.about__label {
    display: inline-block;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 5px;
    margin-bottom: 32px;
    background: var(--color-primary);
    padding: 10px 24px;
    border-radius: 4px;
}

.about__title {
    font-family: var(--font-heading);
    font-size: clamp(36px, 4.5vw, 60px);
    font-weight: 800;
    color: #ffffff;
    line-height: 1.15;
    max-width: 100%;
    margin-bottom: 32px;
    text-shadow: 0 2px 20px rgba(0,0,0,0.5);
}

.about__lead {
    font-size: clamp(21px, 1.8vw, 26px);
    font-weight: 400;
    color: rgba(255,255,255,0.82);
    line-height: 1.75;
    max-width: 100%;
    text-shadow: 0 1px 10px rgba(0,0,0,0.4);
}

/* --- Dark body part --- */
.about__body {
    background: #131313;
    padding: 100px 0 120px;
}

.about__body-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: var(--container-padding);
}

/* Grid: text + sidebar */
.about__grid {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 80px;
    align-items: start;
    margin-bottom: 100px;
}

.about__text {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.about__paragraph {
    font-size: 21px;
    color: rgba(255,255,255,0.78);
    line-height: 1.9;
}

/* Sidebar numbers */
.about__sidebar {
    display: flex;
    flex-direction: column;
    gap: 0;
    border-left: 3px solid var(--color-primary);
}

.about__sidebar-item {
    padding: 32px 36px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.about__sidebar-item:last-child {
    border-bottom: none;
}

.about__sidebar-num {
    display: block;
    font-family: var(--font-heading);
    font-size: 48px;
    font-weight: 900;
    color: var(--color-primary);
    line-height: 1;
    margin-bottom: 10px;
}

.about__sidebar-label {
    font-size: 16px;
    color: rgba(255,255,255,0.6);
}

/* Values header */
.about__values-header {
    padding-top: 80px;
    margin-bottom: 48px;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.about__values-label {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--color-primary);
    margin-bottom: 16px;
}

.about__values-heading {
    font-family: var(--font-heading);
    font-size: clamp(28px, 3vw, 42px);
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
}

/* Values — premium cards */
.about__values {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.about__value {
    position: relative;
    background: linear-gradient(165deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.015) 100%);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 16px;
    padding: 48px 36px 40px;
    display: flex;
    flex-direction: column;
    gap: 0;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.about__value:hover {
    background: linear-gradient(165deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.03) 100%);
    border-color: rgba(200, 16, 46, 0.25);
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.3), 0 0 40px rgba(200,16,46,0.05);
}

/* Top red accent line */
.about__value-accent {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-primary-dark) 60%, transparent 100%);
    opacity: 0.8;
    transition: opacity 0.4s ease;
}

.about__value:hover .about__value-accent {
    opacity: 1;
    height: 5px;
}

.about__value-num {
    font-family: var(--font-heading);
    font-size: 72px;
    font-weight: 900;
    color: var(--color-primary);
    line-height: 1;
    opacity: 0.12;
    margin-bottom: 20px;
    letter-spacing: -2px;
}

.about__value-title {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.35;
    margin-bottom: 16px;
}

.about__value-text {
    font-size: 17px;
    color: rgba(255,255,255,0.55);
    line-height: 1.8;
    margin-bottom: 28px;
    flex: 1;
}

/* Value stat — concrete number at the bottom */
.about__value-stat {
    display: flex;
    align-items: baseline;
    gap: 12px;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.about__value-stat-num {
    font-family: var(--font-heading);
    font-size: 36px;
    font-weight: 900;
    color: var(--color-primary);
    line-height: 1;
}

.about__value-stat-label {
    font-size: 15px;
    color: rgba(255,255,255,0.45);
    font-weight: 400;
}

/* Scroll reveal */
.about__hero-content,
.about__text,
.about__sidebar,
.about__values-header,
.about__value {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.about__value:nth-child(2) { transition-delay: 0.15s; }
.about__value:nth-child(3) { transition-delay: 0.3s; }

.about__hero-content.revealed,
.about__text.revealed,
.about__sidebar.revealed,
.about__values-header.revealed,
.about__value.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   DIRECTIONS SECTION
   ======================================== */
.directions {
    background: #0d0d0d;
    padding: 120px 0 140px;
    border-top: 1px solid rgba(255,255,255,0.04);
}

.directions__container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: var(--container-padding);
}

/* Header */
.directions__header {
    margin-bottom: 64px;
    max-width: 900px;
}

.directions__label {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--color-primary);
    margin-bottom: 20px;
}

.directions__title {
    font-family: var(--font-heading);
    font-size: clamp(32px, 4vw, 52px);
    font-weight: 800;
    color: #fff;
    line-height: 1.15;
    margin-bottom: 24px;
}

.directions__subtitle {
    font-size: clamp(18px, 1.5vw, 21px);
    color: rgba(255,255,255,0.55);
    line-height: 1.8;
}

/* Cards grid — 3 columns, top row taller */
.directions__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* Card */
.directions__card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 420px;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    text-decoration: none;
}

/* Background photo */
.directions__card-bg {
    position: absolute;
    inset: 0;
}

.directions__card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94), filter 0.7s ease;
    filter: brightness(0.45) saturate(0.7);
}

.directions__card:hover .directions__card-img {
    transform: scale(1.08);
    filter: brightness(0.55) saturate(0.9);
}

.directions__card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0,0,0,0.92) 0%,
        rgba(0,0,0,0.5) 40%,
        rgba(0,0,0,0.15) 100%
    );
    transition: background 0.5s ease;
}

.directions__card:hover .directions__card-overlay {
    background: linear-gradient(
        to top,
        rgba(0,0,0,0.95) 0%,
        rgba(0,0,0,0.4) 50%,
        rgba(0,0,0,0.1) 100%
    );
}

/* Content inside card */
.directions__card-content {
    position: relative;
    z-index: 2;
    padding: 40px 36px;
    display: flex;
    flex-direction: column;
}

.directions__card-num {
    font-family: var(--font-heading);
    font-size: 48px;
    font-weight: 900;
    color: var(--color-primary);
    line-height: 1;
    opacity: 0.25;
    margin-bottom: 16px;
    transition: opacity 0.4s ease;
}

.directions__card:hover .directions__card-num {
    opacity: 0.5;
}

.directions__card-title {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
    margin-bottom: 14px;
    transition: color 0.3s ease;
}

.directions__card-desc {
    font-size: 16px;
    color: rgba(255,255,255,0.5);
    line-height: 1.75;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.5s ease, opacity 0.4s ease, margin 0.4s ease;
}

.directions__card:hover .directions__card-desc {
    max-height: 200px;
    opacity: 1;
    margin-bottom: 0;
}

/* Top accent line on hover */
.directions__card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--color-primary);
    z-index: 3;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.directions__card:hover::before {
    transform: scaleX(1);
}

/* Scroll reveal for directions */
.directions__header,
.directions__card {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.directions__card:nth-child(2) { transition-delay: 0.1s; }
.directions__card:nth-child(3) { transition-delay: 0.2s; }
.directions__card:nth-child(4) { transition-delay: 0.15s; }
.directions__card:nth-child(5) { transition-delay: 0.25s; }
.directions__card:nth-child(6) { transition-delay: 0.35s; }

.directions__header.revealed,
.directions__card.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   CONTACTS SECTION
   ======================================== */
.contacts {
    background: #111111;
    padding: 120px 0 140px;
    border-top: 1px solid rgba(255,255,255,0.04);
}

.contacts__container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: var(--container-padding);
}

/* Header */
.contacts__header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 64px;
}

.contacts__label {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--color-primary);
    margin-bottom: 20px;
}

.contacts__title {
    font-family: var(--font-heading);
    font-size: clamp(32px, 4vw, 52px);
    font-weight: 800;
    color: #fff;
    line-height: 1.15;
    margin-bottom: 20px;
}

.contacts__subtitle {
    font-size: 18px;
    color: rgba(255,255,255,0.55);
    line-height: 1.8;
}

/* Contact cards — 4 in a row */
.contacts__cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 64px;
}

.contacts__card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 16px;
    padding: 36px 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
    transition: all 0.4s ease;
}

.contacts__card:hover {
    border-color: rgba(var(--color-primary-rgb), 0.25);
    background: rgba(255,255,255,0.05);
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(0,0,0,0.25);
}

.contacts__card-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: rgba(var(--color-primary-rgb), 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--color-primary);
    margin-bottom: 4px;
    transition: all 0.3s ease;
}

.contacts__card:hover .contacts__card-icon {
    background: var(--color-primary);
    color: #fff;
    transform: scale(1.08);
}

.contacts__card-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255,255,255,0.35);
}

.contacts__card-value {
    font-size: 16px;
    font-weight: 600;
    color: rgba(255,255,255,0.85);
    line-height: 1.5;
}

.contacts__card-link {
    transition: color var(--transition-fast);
}

.contacts__card-link:hover {
    color: var(--color-primary);
}

/* Form block — 2 columns */
.contacts__form-block {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 32px;
    align-items: start;
}

.contacts__form-left {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 20px;
    padding: 48px 44px;
}

.contacts__form-title {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 12px;
}

.contacts__form-desc {
    font-size: 16px;
    color: rgba(255,255,255,0.45);
    line-height: 1.8;
    margin-bottom: 36px;
}

.contacts__form {
    display: flex;
    flex-direction: column;
}

.contacts__form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.contacts__input,
.contacts__textarea {
    width: 100%;
    padding: 16px 20px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    color: #fff;
    font-family: var(--font-primary);
    font-size: 15px;
    transition: all var(--transition-fast);
    outline: none;
}

.contacts__input--full {
    margin-bottom: 16px;
}

.contacts__input::placeholder,
.contacts__textarea::placeholder {
    color: rgba(255,255,255,0.3);
}

.contacts__input:focus,
.contacts__textarea:focus {
    border-color: var(--color-primary);
    background: rgba(var(--color-primary-rgb), 0.05);
}

.contacts__textarea {
    resize: vertical;
    min-height: 120px;
    margin-bottom: 24px;
}

.contacts__submit {
    padding: 18px 40px;
    background: var(--color-primary);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: all var(--transition-base);
    width: 100%;
}

.contacts__submit:hover {
    background: var(--color-primary-light);
    box-shadow: 0 8px 32px rgba(var(--color-primary-rgb), 0.35);
    transform: translateY(-2px);
}

/* Right side — CTA + stats */
.contacts__form-right {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contacts__cta-card {
    background: linear-gradient(165deg, rgba(var(--color-primary-rgb), 0.12) 0%, rgba(var(--color-primary-rgb), 0.04) 100%);
    border: 1px solid rgba(var(--color-primary-rgb), 0.15);
    border-radius: 20px;
    padding: 40px 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.contacts__cta-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #fff;
    margin-bottom: 20px;
}

.contacts__cta-title {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
}

.contacts__cta-text {
    font-size: 15px;
    color: rgba(255,255,255,0.5);
    line-height: 1.75;
    margin-bottom: 24px;
}

.contacts__cta-phone {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 800;
    color: var(--color-primary);
    letter-spacing: 0.5px;
    transition: opacity var(--transition-fast);
}

.contacts__cta-phone:hover {
    opacity: 0.8;
}

.contacts__cta-divider {
    width: 100%;
    height: 1px;
    background: rgba(255,255,255,0.08);
    margin: 24px 0;
}

.contacts__cta-messengers {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.contacts__cta-msg-label {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255,255,255,0.35);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.contacts__cta-msg-icons {
    display: flex;
    gap: 12px;
}

.contacts__cta-msg {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: rgba(255,255,255,0.6);
    transition: all var(--transition-fast);
}

.contacts__cta-msg:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
    transform: translateY(-2px);
}

/* Stats card */
.contacts__stats-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 20px;
    padding: 32px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.contacts__stat-row {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 4px;
}

.contacts__stat-num {
    font-family: var(--font-heading);
    font-size: 36px;
    font-weight: 900;
    color: var(--color-primary);
    line-height: 1;
}

.contacts__stat-text {
    font-size: 13px;
    color: rgba(255,255,255,0.45);
    line-height: 1.4;
}

.contacts__stat-divider {
    width: 1px;
    height: 48px;
    background: rgba(255,255,255,0.08);
    flex-shrink: 0;
}

/* Scroll reveal */
.contacts__header,
.contacts__card,
.contacts__form-left,
.contacts__form-right {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.contacts__card:nth-child(2) { transition-delay: 0.08s; }
.contacts__card:nth-child(3) { transition-delay: 0.16s; }
.contacts__card:nth-child(4) { transition-delay: 0.24s; }
.contacts__form-left { transition-delay: 0.1s; }
.contacts__form-right { transition-delay: 0.2s; }

.contacts__header.revealed,
.contacts__card.revealed,
.contacts__form-left.revealed,
.contacts__form-right.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    background: #0a0a0a;
    border-top: 1px solid rgba(255,255,255,0.06);
    padding: 80px 0 0;
}

.footer__container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: var(--container-padding);
}

.footer__grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 64px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

/* Brand */
.footer__logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.footer__logo-icon {
    width: 40px;
    height: 40px;
}

.footer__logo-icon svg {
    width: 100%;
    height: 100%;
}

.footer__logo-name {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 800;
    color: #fff;
    letter-spacing: 3px;
}

.footer__desc {
    font-size: 15px;
    color: rgba(255,255,255,0.45);
    line-height: 1.8;
    max-width: 360px;
}

/* Navigation columns */
.footer__heading {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 24px;
}

.footer__nav-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer__link {
    font-size: 15px;
    color: rgba(255,255,255,0.45);
    transition: color var(--transition-fast);
}

.footer__link:hover {
    color: var(--color-primary);
}

/* Contacts in footer */
.footer__contacts-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 28px;
}

.footer__contacts-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14px;
    color: rgba(255,255,255,0.45);
}

.footer__contacts-list li i {
    color: var(--color-primary);
    font-size: 14px;
    margin-top: 3px;
    flex-shrink: 0;
}

.footer__contacts-list li a {
    color: rgba(255,255,255,0.45);
    transition: color var(--transition-fast);
}

.footer__contacts-list li a:hover {
    color: var(--color-primary);
}

/* Socials */
.footer__socials {
    display: flex;
    gap: 12px;
}

.footer__social {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.5);
    font-size: 16px;
    transition: all var(--transition-fast);
}

.footer__social:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
    transform: translateY(-2px);
}

/* Bottom */
.footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 28px 0;
}

.footer__copyright {
    font-size: 14px;
    color: rgba(255,255,255,0.35);
}

.footer__legal {
    font-size: 13px;
    color: rgba(255,255,255,0.25);
}

/* ========================================
   RESPONSIVE — Large Desktop
   ======================================== */
@media (max-width: 1280px) {
    :root {
        --container-padding: 0 28px;
    }

    .header__nav-link {
        padding: 10px 12px;
        font-size: 14px;
    }
}

/* ========================================
   PROJECTS SECTION
   ======================================== */
.projects {
    background: #111111;
    padding: 120px 0 140px;
    border-top: 1px solid rgba(255,255,255,0.04);
}

.projects__container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: var(--container-padding);
}

.projects__header {
    margin-bottom: 48px;
    max-width: 900px;
}

.projects__label {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--color-primary);
    margin-bottom: 20px;
}

.projects__title {
    font-family: var(--font-heading);
    font-size: clamp(32px, 4vw, 52px);
    font-weight: 800;
    color: #fff;
    line-height: 1.15;
    margin-bottom: 24px;
}

.projects__subtitle {
    font-size: clamp(18px, 1.5vw, 21px);
    color: rgba(255,255,255,0.55);
    line-height: 1.8;
}

/* Filters */
.projects__filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 48px;
}

.projects__filter {
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 600;
    color: rgba(255,255,255,0.5);
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.projects__filter:hover {
    color: rgba(255,255,255,0.8);
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.15);
}

.projects__filter.active {
    color: #fff;
    background: var(--color-primary);
    border-color: var(--color-primary);
}

/* Grid */
.projects__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 340px;
    gap: 20px;
}

/* Featured — spans 2 cols and 2 rows */
.projects__item--featured {
    grid-column: span 2;
    grid-row: span 2;
}

/* Item */
.projects__item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    cursor: default;
}

.projects__item-bg {
    position: absolute;
    inset: 0;
}

.projects__item-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94), filter 0.7s ease;
    filter: brightness(0.5) saturate(0.7);
}

.projects__item:hover .projects__item-img {
    transform: scale(1.06);
    filter: brightness(0.6) saturate(0.9);
}

.projects__item-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0,0,0,0.9) 0%,
        rgba(0,0,0,0.3) 50%,
        rgba(0,0,0,0.05) 100%
    );
}

/* Content */
.projects__item-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 36px 32px;
}

.projects__item-year {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 700;
    color: var(--color-primary);
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.projects__item-title {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
    margin-bottom: 10px;
}

.projects__item--featured .projects__item-title {
    font-size: clamp(28px, 3vw, 36px);
}

.projects__item-desc {
    font-size: 15px;
    color: rgba(255,255,255,0.5);
    line-height: 1.7;
    margin-bottom: 16px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.5s ease, opacity 0.4s ease;
}

.projects__item:hover .projects__item-desc {
    max-height: 100px;
    opacity: 1;
}

.projects__item--featured .projects__item-desc {
    max-height: none;
    opacity: 1;
    font-size: 17px;
}

.projects__item-tag {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255,255,255,0.35);
    padding: 6px 14px;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 4px;
    align-self: flex-start;
}

/* Filter hide/show animation */
.projects__item.hidden {
    display: none;
}

/* Scroll reveal for projects */
.projects__header,
.projects__filters,
.projects__item {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.projects__item:nth-child(2) { transition-delay: 0.1s; }
.projects__item:nth-child(3) { transition-delay: 0.15s; }
.projects__item:nth-child(4) { transition-delay: 0.2s; }
.projects__item:nth-child(5) { transition-delay: 0.25s; }
.projects__item:nth-child(6) { transition-delay: 0.3s; }

.projects__header.revealed,
.projects__filters.revealed,
.projects__item.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   PARTNERS SECTION — Infinite Marquee
   ======================================== */
.partners {
    background: #0a0a0a;
    padding: 100px 0 120px;
    border-top: 1px solid rgba(255,255,255,0.04);
    overflow: hidden;
}

.partners__container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: var(--container-padding);
}

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

.partners__label {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--color-primary);
    margin-bottom: 20px;
}

.partners__title {
    font-family: var(--font-heading);
    font-size: clamp(28px, 3.5vw, 44px);
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
}

.partners__marquee {
    position: relative;
    width: 100%;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
}

.partners__track {
    display: flex;
    align-items: center;
    gap: 48px;
    width: max-content;
    animation: marqueeScroll 40s linear infinite;
}

.partners__track:hover {
    animation-play-state: paused;
}

.partners__item {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 240px;
    height: 160px;
    padding: 24px 32px 18px;
    background: rgba(255,255,255,0.92);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 20px;
    transition: all 0.4s ease;
    gap: 12px;
}

.partners__item:hover {
    background: #fff;
    border-color: rgba(255,255,255,0.4);
    transform: scale(1.06);
    box-shadow: 0 12px 40px rgba(0,0,0,0.3), 0 0 60px rgba(255,255,255,0.08);
}

.partners__item img {
    max-height: 90px;
    max-width: 180px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: none;
    opacity: 0.88;
    transition: all 0.4s ease;
    flex-shrink: 0;
}

.partners__item:hover img {
    filter: none;
    opacity: 1;
}

.partners__item-name {
    font-size: 11px;
    font-weight: 700;
    color: rgba(0,0,0,0.45);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    white-space: nowrap;
    transition: color 0.4s ease;
}

.partners__item:hover .partners__item-name {
    color: rgba(0,0,0,0.7);
}

@keyframes marqueeScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Scroll reveal */
.partners__header,
.partners__marquee {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.partners__marquee { transition-delay: 0.15s; }

.partners__header.revealed,
.partners__marquee.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   NEWS SECTION
   ======================================== */
.news {
    background: #0d0d0d;
    padding: 120px 0 140px;
    border-top: 1px solid rgba(255,255,255,0.04);
}

.news__container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: var(--container-padding);
}

.news__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 56px;
}

.news__all-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 600;
    color: var(--color-primary);
    text-decoration: none;
    padding: 12px 28px;
    border: 1px solid var(--color-primary);
    border-radius: 8px;
    transition: all 0.3s;
    white-space: nowrap;
    flex-shrink: 0;
}
.news__all-btn:hover {
    background: var(--color-primary);
    color: #fff;
}

.news__label {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--color-primary);
    margin-bottom: 20px;
}

.news__title {
    font-family: var(--font-heading);
    font-size: clamp(32px, 4vw, 52px);
    font-weight: 800;
    color: #fff;
    line-height: 1.15;
}

/* News grid — 3 columns, first card spans 2 cols */
.news__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* All news cards share same base */
.news__card {
    display: flex;
    flex-direction: column;
    border-radius: 16px;
    overflow: hidden;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    transition: all 0.4s ease;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.news__card:hover {
    border-color: rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.05);
}

/* Hero card — spans 2 columns */
.news__card--hero {
    grid-column: span 2;
    flex-direction: row;
}

.news__card-img-wrap {
    height: 200px;
    overflow: hidden;
    flex-shrink: 0;
}

.news__card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
    filter: brightness(0.7);
}

.news__card:hover .news__card-img {
    transform: scale(1.05);
    filter: brightness(0.85);
}

/* Hero card image: side, not top */
.news__card--hero .news__card-img-wrap {
    width: 45%;
    height: auto;
    min-height: 280px;
}

.news__card-content {
    padding: 28px 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news__card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.news__card-date {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-primary);
}

.news__card-tag {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255,255,255,0.35);
    padding: 3px 10px;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 4px;
}

.news__card-title {
    font-family: var(--font-heading);
    font-size: 19px;
    font-weight: 700;
    color: #fff;
    line-height: 1.4;
    margin-bottom: 10px;
}

.news__card-desc {
    font-size: 16px;
    color: rgba(255,255,255,0.55);
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news__card-link {
    font-size: 15px;
    font-weight: 600;
    color: var(--color-primary);
    margin-top: auto;
    padding-top: 14px;
    transition: opacity 0.3s;
}
.news__card:hover .news__card-link { opacity: 0.8; }

/* Hero card bigger text */
.news__card--hero .news__card-title {
    font-size: clamp(22px, 2.2vw, 28px);
    margin-bottom: 12px;
}
.news__card--hero .news__card-desc {
    font-size: 17px;
    -webkit-line-clamp: 3;
}
.news__card--hero .news__card-content {
    padding: 32px 28px;
    justify-content: center;
}

/* Scroll reveal for news */
.news__header,
.news__card {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.news__card:nth-child(2) { transition-delay: 0.08s; }
.news__card:nth-child(3) { transition-delay: 0.12s; }
.news__card:nth-child(4) { transition-delay: 0.16s; }
.news__card:nth-child(5) { transition-delay: 0.2s; }

.news__header.revealed,
.news__card.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   RESPONSIVE — Tablet
   ======================================== */
@media (max-width: 1024px) {
    .header__top { display: none; }
    .header__nav { display: none; }
    .header__burger { display: flex; }
    .header__cta { display: none; }

    .header__container {
        justify-content: space-between;
    }

    /* Mobile menu overlay */
    .header__nav.active {
        display: flex;
        position: fixed;
        inset: 0;
        background: rgba(20, 20, 20, 0.98);
        backdrop-filter: blur(24px);
        align-items: center;
        justify-content: center;
        z-index: 100;
    }

    .header__nav.active .header__nav-list {
        flex-direction: column;
        gap: 4px;
        text-align: center;
    }

    .header__nav.active .header__nav-link {
        font-size: 26px;
        font-weight: 700;
        padding: 14px 32px;
        color: rgba(255,255,255,0.7);
    }

    .header__nav.active .header__nav-link:hover,
    .header__nav.active .header__nav-link.active {
        color: #fff;
    }

    .header__nav.active .header__nav-link.active::after { display: none; }

    .hero__container {
        padding-top: calc(var(--header-main-h) + 60px);
        flex-direction: column;
        gap: 40px;
    }

    .hero__content { max-width: 100%; }
    .hero__news { max-width: 100%; }

    .hero__stats-container {
        grid-template-columns: repeat(2, 1fr);
        padding: 0 24px;
    }

    .hero__stat { padding: 32px 16px; }

    .hero__stat:nth-child(2)::after { display: none; }

    .hero__stat:nth-child(1),
    .hero__stat:nth-child(2) {
        border-bottom: 1px solid rgba(255,255,255,0.08);
    }

    /* About */
    .about__hero { min-height: 480px; }
    .about__hero-content { padding: 72px 24px; }
    .about__body { padding: 72px 0 80px; }
    .about__grid { grid-template-columns: 1fr; gap: 48px; margin-bottom: 72px; }
    .about__paragraph { font-size: 19px; }
    .about__sidebar { flex-direction: row; border-left: none; border-top: 3px solid var(--color-primary); }
    .about__sidebar-item { border-bottom: none; border-right: 1px solid rgba(255,255,255,0.08); flex: 1; padding: 28px 24px; }
    .about__sidebar-item:last-child { border-right: none; }
    .about__sidebar-num { font-size: 40px; }
    .about__sidebar-label { font-size: 15px; }
    .about__value { gap: 0; padding: 40px 28px 36px; }
    .about__value-num { font-size: 56px; }
    .about__value-title { font-size: 20px; }
    .about__value-text { font-size: 16px; }
    .about__value-stat-num { font-size: 32px; }
    .about__values { gap: 20px; }
    .about__values-header { padding-top: 60px; margin-bottom: 36px; }

    /* Directions */
    .directions { padding: 80px 0 100px; }
    .directions__grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .directions__card { min-height: 360px; }
    .directions__card-content { padding: 32px 28px; }
    .directions__card-num { font-size: 40px; }
    .directions__card-title { font-size: 21px; }
    .directions__card-desc { font-size: 15px; max-height: none; opacity: 1; }
    .directions__header { margin-bottom: 48px; }

    /* Projects */
    .projects { padding: 80px 0 100px; }
    .projects__grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 300px; gap: 16px; }
    .projects__item--featured { grid-column: span 2; grid-row: span 1; }
    .projects__item--featured .projects__item-title { font-size: 28px; }
    .projects__item--featured .projects__item-desc { font-size: 16px; }
    .projects__item-title { font-size: 20px; }
    .projects__item-desc { max-height: none; opacity: 1; font-size: 14px; }
    .projects__filter { padding: 10px 20px; font-size: 14px; }

    /* Partners */
    .partners { padding: 80px 0 100px; }
    .partners__header { margin-bottom: 44px; }
    .partners__track { gap: 36px; }
    .partners__item { min-width: 210px; height: 140px; padding: 20px 26px 16px; border-radius: 18px; gap: 10px; }
    .partners__item img { max-height: 76px; max-width: 160px; }
    .partners__item-name { font-size: 11px; }

    /* News */
    .news { padding: 80px 0 100px; }
    .news__header { flex-direction: column; align-items: flex-start; gap: 24px; }
    .news__grid { grid-template-columns: repeat(2, 1fr); }
    .news__card--hero { grid-column: span 2; }
    .news__card--hero .news__card-img-wrap { width: 40%; min-height: 240px; }
    .news__card-img-wrap { height: 160px; }
    .news__card-title { font-size: 18px; }

    /* Contacts */
    .contacts { padding: 80px 0 100px; }
    .contacts__cards { grid-template-columns: repeat(2, 1fr); }
    .contacts__form-block { grid-template-columns: 1fr; gap: 32px; }
    .contacts__form-left { padding: 40px 36px; }

    /* Footer */
    .footer__grid { grid-template-columns: 1fr 1fr; gap: 40px; }
    .footer__brand { grid-column: span 2; }
}

/* ========================================
   RESPONSIVE — Mobile
   ======================================== */
@media (max-width: 640px) {
    :root {
        --header-main-h: 72px;
        --container-padding: 0 16px;
    }

    .header__logo-icon { width: 40px; height: 40px; }
    .header__logo-name { font-size: 18px; letter-spacing: 2px; }

    .hero__title { letter-spacing: 2px; margin-bottom: 20px; }
    .hero__slogan { margin-bottom: 20px; }
    .hero__desc { font-size: 18px; line-height: 1.8; margin-bottom: 36px; }

    .hero__actions { flex-direction: column; gap: 12px; }
    .hero__btn { padding: 16px 32px; font-size: 15px; text-align: center; }

    .hero__stats-container { grid-template-columns: repeat(2, 1fr); padding: 0 16px; }
    .hero__stat { padding: 28px 12px; }
    .hero__stat-num { font-size: 32px; }
    .hero__stat-label { font-size: 12px; }

    .header__nav.active .header__nav-link { font-size: 22px; padding: 12px 24px; }

    /* About */
    .about__hero { min-height: 380px; }
    .about__hero-content { padding: 56px 20px; }
    .about__body { padding: 56px 0 64px; }
    .about__grid { gap: 40px; margin-bottom: 56px; }
    .about__paragraph { font-size: 18px; line-height: 1.85; }
    .about__sidebar { flex-direction: column; border-top: none; border-left: 3px solid var(--color-primary); }
    .about__sidebar-item { padding: 24px 28px; border-right: none; border-bottom: 1px solid rgba(255,255,255,0.08); }
    .about__sidebar-num { font-size: 36px; }
    .about__sidebar-label { font-size: 15px; }
    .about__values { grid-template-columns: 1fr; gap: 16px; }
    .about__value { padding: 36px 24px 32px; }
    .about__value-num { font-size: 48px; margin-bottom: 16px; }
    .about__value-title { font-size: 20px; }
    .about__value-text { font-size: 16px; margin-bottom: 24px; }
    .about__value-stat-num { font-size: 28px; }
    .about__value-stat-label { font-size: 14px; }
    .about__values-header { padding-top: 48px; margin-bottom: 28px; }

    /* Directions */
    .directions { padding: 64px 0 80px; }
    .directions__header { margin-bottom: 36px; }
    .directions__grid { grid-template-columns: 1fr; gap: 14px; }
    .directions__card { min-height: 300px; }
    .directions__card-content { padding: 28px 24px; }
    .directions__card-num { font-size: 36px; margin-bottom: 12px; }
    .directions__card-title { font-size: 20px; margin-bottom: 10px; }
    .directions__card-desc { font-size: 15px; max-height: none; opacity: 1; margin-bottom: 0; }

    /* Projects */
    .projects { padding: 64px 0 80px; }
    .projects__header { margin-bottom: 36px; }
    .projects__filters { gap: 8px; margin-bottom: 32px; }
    .projects__filter { padding: 10px 18px; font-size: 13px; }
    .projects__grid { grid-template-columns: 1fr; grid-auto-rows: 280px; gap: 14px; }
    .projects__item--featured { grid-column: span 1; }
    .projects__item--featured .projects__item-title { font-size: 24px; }
    .projects__item-content { padding: 28px 24px; }
    .projects__item-title { font-size: 19px; }
    .projects__item-desc { max-height: none; opacity: 1; font-size: 14px; }

    /* Partners */
    .partners { padding: 56px 0 72px; }
    .partners__header { margin-bottom: 32px; }
    .partners__track { gap: 24px; animation-duration: 30s; }
    .partners__item { min-width: 170px; height: 120px; padding: 16px 20px 12px; border-radius: 14px; gap: 8px; }
    .partners__item img { max-height: 64px; max-width: 140px; }
    .partners__item-name { font-size: 10px; letter-spacing: 1px; }

    /* News */
    .news { padding: 64px 0 80px; }
    .news__header { margin-bottom: 36px; gap: 16px; }
    .news__all-btn { padding: 10px 22px; font-size: 14px; width: 100%; justify-content: center; }
    .news__grid { grid-template-columns: 1fr; gap: 16px; }
    .news__card--hero { grid-column: span 1; flex-direction: column; }
    .news__card--hero .news__card-img-wrap { width: 100%; height: 200px; min-height: 0; }
    .news__card--hero .news__card-content { padding: 24px 20px; }
    .news__card--hero .news__card-title { font-size: 20px; }
    .news__card--hero .news__card-desc { font-size: 15px; -webkit-line-clamp: 2; }
    .news__card-img-wrap { height: 160px; }
    .news__card-content { padding: 20px; }
    .news__card-title { font-size: 18px; }
    .news__card-desc { font-size: 15px; }

    /* Contacts */
    .contacts { padding: 64px 0 80px; }
    .contacts__header { margin-bottom: 40px; }
    .contacts__cards { grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 40px; }
    .contacts__card { padding: 28px 20px; }
    .contacts__card-icon { width: 48px; height: 48px; font-size: 18px; }
    .contacts__card-value { font-size: 15px; }
    .contacts__form-block { grid-template-columns: 1fr; gap: 24px; }
    .contacts__form-left { padding: 32px 24px; }
    .contacts__form-title { font-size: 22px; }
    .contacts__form-row { grid-template-columns: 1fr; }
    .contacts__cta-card { padding: 32px 24px; }
    .contacts__cta-phone { font-size: 20px; }
    .contacts__stats-card { padding: 24px; }
    .contacts__stat-num { font-size: 28px; }

    /* Footer */
    .footer { padding: 56px 0 0; }
    .footer__grid { grid-template-columns: 1fr; gap: 32px; padding-bottom: 40px; }
    .footer__brand { grid-column: auto; }
    .footer__bottom { flex-direction: column; gap: 8px; text-align: center; padding: 20px 0; }
}

/* ========================================
   RESPONSIVE — Small Mobile
   ======================================== */
@media (max-width: 380px) {
    .header__lang-btn { padding: 6px 10px; font-size: 13px; }
    .header__logo-name { font-size: 16px; letter-spacing: 1px; }
    .hero__title { font-size: 42px; }
}
