/* ============================================= */
/* DESIGN SYSTEM — Евгений Вдовин Expert Site     */
/* ============================================= */

:root {
    /* Brand Colors */
    --color-white: #FFFFFF;
    --color-dark: #1A2B4C;
    --color-dark-deep: #0F1A2E;
    --color-bg-light: #F5F7FA;
    --color-bg-warm: #FFF5E6;
    --color-accent-red: #E05D5D;
    --color-accent-orange: #FF9700;

    /* Ocean Gradient Colors */
    --color-primary: #0082FF;
    --color-primary-dark: #00274D;
    --color-primary-light: #80C0FF;
    --color-primary-pale: #E6F2FF;
    --color-cyan: #00E0FF;
    --color-cyan-dark: #00434D;
    --color-cyan-light: #80EFFF;
    --color-secondary-blue: #0040FF;

    /* Gradients */
    --gradient-ocean: linear-gradient(135deg, #00E0FF 0%, #0082FF 50%, #0040FF 100%);
    --gradient-dark: linear-gradient(135deg, #1A2B4C 0%, #0F1A2E 100%);
    --gradient-card: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(245, 247, 250, 0.9));
    --gradient-cta: linear-gradient(135deg, #FF9700, #FF7700);

    /* Typography */
    --font-heading: 'Montserrat', Arial, sans-serif;
    --font-body: 'Open Sans', Arial, sans-serif;

    /* Spacing */
    --section-padding: 100px;
    --container-max: 1200px;

    /* Effects */
    --glass-bg: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.15);
    --glass-blur: blur(20px);
    --shadow-card: 0 8px 32px rgba(26, 43, 76, 0.08);
    --shadow-hover: 0 16px 48px rgba(26, 43, 76, 0.14);
    --shadow-glow: 0 0 40px rgba(0, 130, 255, 0.15);
    --radius: 16px;
    --radius-sm: 10px;
    --radius-xs: 6px;
    --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;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--color-dark);
    background: var(--color-bg-light);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

img {
    max-width: 100%;
    display: block;
}

ul,
ol {
    list-style: none;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 800;
    text-align: center;
    margin-bottom: 60px;
    color: var(--color-dark);
    letter-spacing: -0.02em;
}

.section-title--light {
    color: var(--color-white);
}

/* ============================================= */
/* BUTTONS                                        */
/* ============================================= */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    padding: 14px 32px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    white-space: nowrap;
}

.btn--primary {
    background: var(--gradient-ocean);
    color: white;
    box-shadow: 0 4px 20px rgba(0, 130, 255, 0.3);
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 130, 255, 0.45);
}

.btn--outline {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
}

.btn--outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.7);
    transform: translateY(-2px);
}

.btn--cta {
    background: var(--gradient-cta);
    color: white;
    font-size: 1.05rem;
    padding: 16px 40px;
    box-shadow: 0 4px 20px rgba(255, 151, 0, 0.3);
}

.btn--cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255, 151, 0, 0.45);
}

.btn--small {
    padding: 10px 24px;
    font-size: 0.85rem;
}

/* ============================================= */
/* ANIMATIONS                                     */
/* ============================================= */

.animate-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.animate-in.visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(2deg);
    }
}

@keyframes slideInfinite {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 0.6;
    }

    50% {
        opacity: 1;
    }
}

/* ============================================= */
/* HEADER                                         */
/* ============================================= */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: var(--transition);
    background: transparent;
}

.header--scrolled {
    background: rgba(26, 43, 76, 0.95);
    backdrop-filter: var(--glass-blur);
    padding: 10px 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header__logo {
    display: flex;
    flex-direction: column;
}

.header__logo-name {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.2rem;
    color: white;
    letter-spacing: -0.01em;
}

.header__logo-title {
    font-size: 1.15rem;
    color: var(--color-cyan-light);
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.header__nav {
    display: flex;
    gap: 32px;
}

.header__nav-link {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    position: relative;
    padding: 4px 0;
}

.header__nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-ocean);
    transition: var(--transition);
    border-radius: 1px;
}

.header__nav-link:hover {
    color: white;
}

.header__nav-link:hover::after {
    width: 100%;
}

.header__burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 1001;
}

.header__burger span {
    width: 28px;
    height: 2px;
    background: white;
    border-radius: 2px;
    transition: var(--transition);
}

.header__burger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.header__burger.active span:nth-child(2) {
    opacity: 0;
}

.header__burger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================= */
/* HERO SECTION                                   */
/* ============================================= */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--gradient-dark);
    overflow: hidden;
    padding-top: 80px;
}

.hero__bg-shapes {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.hero__shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
}

.hero__shape--1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 224, 255, 0.3), transparent 70%);
    top: -200px;
    right: -100px;
    animation: float 15s ease-in-out infinite;
}

.hero__shape--2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 130, 255, 0.25), transparent 70%);
    bottom: -100px;
    left: -50px;
    animation: float 20s ease-in-out infinite reverse;
}

.hero__shape--3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(0, 64, 255, 0.2), transparent 70%);
    top: 40%;
    left: 40%;
    animation: float 18s ease-in-out infinite 5s;
}

.hero__inner {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
    padding: 40px 0;
}

.hero__title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    color: white;
    letter-spacing: 0.02em;
    line-height: 1.1;
    margin-bottom: 16px;
}

.hero__subtitle {
    font-family: var(--font-heading);
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    font-weight: 600;
    color: var(--color-cyan-light);
    line-height: 1.4;
    margin-bottom: 16px;
}

.hero__description {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
    margin-bottom: 32px;
    max-width: 560px;
}

.hero__cta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero__photo {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero__photo-frame {
    width: 320px;
    height: 400px;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: var(--glass-blur);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero__photo-frame::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: var(--radius);
    padding: 2px;
    background: var(--gradient-ocean);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.4;
}

.hero__photo-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.85rem;
}

.hero__photo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    position: relative;
    z-index: 1;
}

/* ============================================= */
/* STATISTICS                                     */
/* ============================================= */

.stats {
    padding: var(--section-padding) 0;
    background: var(--color-white);
    position: relative;
}

.stats::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-primary-light), transparent);
}

.stats__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.stats__card {
    text-align: center;
    padding: 40px 24px;
    border-radius: var(--radius);
    background: var(--color-bg-light);
    border: 1px solid rgba(0, 130, 255, 0.08);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.stats__card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--gradient-ocean);
    border-radius: 0 0 3px 3px;
}

.stats__card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(0, 130, 255, 0.15);
}

.stats__number {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 900;
    background: var(--gradient-ocean);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
    margin-bottom: 8px;
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 2px;
}

.stats__prefix,
.stats__suffix {
    font-size: 1.4rem;
    font-weight: 700;
}

.stats__label {
    font-size: 0.95rem;
    color: rgba(26, 43, 76, 0.65);
    font-weight: 500;
}

/* ============================================= */
/* KEY COMPETENCIES                               */
/* ============================================= */

.competencies {
    padding: var(--section-padding) 0;
    background: var(--color-bg-light);
}

.competencies__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.competencies__card {
    padding: 36px 28px;
    border-radius: var(--radius);
    background: var(--color-white);
    border: 1px solid rgba(0, 130, 255, 0.06);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.competencies__card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(0, 130, 255, 0.12);
}

.competencies__icon {
    width: 64px;
    height: 64px;
    border-radius: 14px;
    background: var(--color-primary-pale);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--color-primary);
    transition: var(--transition);
}

.competencies__card:hover .competencies__icon {
    background: var(--gradient-ocean);
    color: white;
}

.competencies__title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 10px;
}

.competencies__text {
    font-size: 0.9rem;
    color: rgba(26, 43, 76, 0.6);
    line-height: 1.6;
    flex-grow: 1;
    margin-bottom: 16px;
}

.competencies__link {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--color-primary);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.competencies__link:hover {
    color: var(--color-secondary-blue);
    gap: 8px;
}

/* ============================================= */
/* EXPERIENCE & TIMELINE                          */
/* ============================================= */

.experience {
    padding: var(--section-padding) 0;
    background: var(--gradient-dark);
    position: relative;
    overflow: hidden;
}

.experience::before {
    content: '';
    position: absolute;
    top: 0;
    right: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 224, 255, 0.08), transparent 70%);
    pointer-events: none;
}

.experience__bio {
    max-width: 800px;
    margin: 0 auto 60px;
    text-align: center;
}

.experience__bio p {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
}

.experience__timeline-title,
.experience__clients-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    text-align: center;
    margin-bottom: 48px;
}

.experience__clients-title {
    margin-top: 80px;
}

/* Timeline */
.timeline {
    position: relative;
    padding: 60px 0;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.timeline::-webkit-scrollbar {
    display: none;
}

.timeline__line {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--color-primary), var(--color-cyan), var(--color-primary), transparent);
    transform: translateY(-50%);
}

.timeline__items {
    display: flex;
    gap: 0;
    justify-content: space-between;
    position: relative;
    min-width: 100%;
}

.timeline__item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    padding: 0 12px;
    min-height: 320px;
}

.timeline__dot {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--gradient-ocean);
    border: 3px solid var(--color-dark);
    z-index: 2;
    box-shadow: 0 0 20px rgba(0, 130, 255, 0.4);
}

.timeline__text {
    position: absolute;
    left: 4px;
    right: 4px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.timeline__item:nth-child(odd) .timeline__text {
    bottom: calc(50% + 32px);
}

.timeline__item:nth-child(even) .timeline__text {
    top: calc(50% + 32px);
}

.timeline__year {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--color-accent-orange);
    margin: 0 0 8px 0;
}

.timeline__content {
    text-align: center;
    max-width: 180px;
}

.timeline__content h4 {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 700;
    color: white;
    margin-bottom: 4px;
}

.timeline__content p {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.5;
}

/* Clients Carousel */
.clients-carousel {
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
}

.clients-carousel__track {
    display: flex;
    gap: 24px;
    animation: slideInfinite 30s linear infinite;
    width: fit-content;
}

.clients-carousel__item {
    flex-shrink: 0;
    padding: 16px 32px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    backdrop-filter: blur(10px);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    white-space: nowrap;
    transition: var(--transition);
}

.clients-carousel__item:hover {
    background: rgba(255, 255, 255, 0.12);
    color: white;
    border-color: rgba(0, 224, 255, 0.3);
}

/* ============================================= */
/* SERVICES (TABS)                                */
/* ============================================= */

.services {
    padding: var(--section-padding) 0;
    background: var(--color-white);
}

.services__tabs {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.services__tab {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    padding: 14px 30px;
    border-radius: 50px;
    border: none;
    box-shadow: inset 0 0 0 2px rgba(0, 130, 255, 0.15);
    background: transparent;
    color: var(--color-dark);
    cursor: pointer;
    transition: var(--transition);
    outline: none;
}

.services__tab:hover {
    box-shadow: inset 0 0 0 2px var(--color-primary);
    color: var(--color-primary);
}

.services__tab--active {
    background: var(--gradient-ocean);
    color: white;
    box-shadow: none;
}

.services__panel {
    display: none;
}

.services__panel--active {
    display: block;
}

.services__cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.services__card {
    padding: 32px 28px;
    border-radius: var(--radius);
    background: var(--color-bg-light);
    border: 1px solid rgba(0, 130, 255, 0.06);
    transition: var(--transition);
    position: relative;
}

.services__card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.services__card-badge {
    display: inline-block;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.8rem;
    padding: 6px 14px;
    border-radius: 50px;
    background: var(--color-primary-pale);
    color: var(--color-primary);
    margin-bottom: 16px;
}

.services__card-badge--accent {
    background: rgba(255, 151, 0, 0.1);
    color: var(--color-accent-orange);
}

.services__card h3 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 6px;
}

.services__card-duration {
    font-size: 0.85rem;
    color: var(--color-primary);
    font-weight: 600;
    margin-bottom: 12px;
}

.services__card p {
    font-size: 0.9rem;
    color: rgba(26, 43, 76, 0.6);
    line-height: 1.6;
    margin-bottom: 16px;
}

.services__card-list {
    margin-bottom: 20px;
}

.services__card-list li {
    font-size: 0.85rem;
    color: rgba(26, 43, 76, 0.7);
    padding: 4px 0 4px 20px;
    position: relative;
}

.services__card-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 12px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gradient-ocean);
}

/* ============================================= */
/* KNOWLEDGE BASE                                 */
/* ============================================= */

.knowledge {
    padding: var(--section-padding) 0;
    background: var(--gradient-dark);
    position: relative;
}

.knowledge::before {
    content: '';
    position: absolute;
    bottom: -200px;
    left: -200px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 130, 255, 0.1), transparent 70%);
    pointer-events: none;
}

.knowledge__merged-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
    margin-bottom: 48px;
}

.knowledge__quotes-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 48px;
}

@media (max-width: 768px) {
    .knowledge__quotes-grid {
        grid-template-columns: 1fr;
    }
}

.knowledge__more-wrap {
    text-align: center;
    margin-bottom: 24px;
}

.knowledge__custom-card {
    padding: 32px;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
}

.knowledge__custom-card h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: white;
    margin-bottom: 12px;
}

.knowledge__custom-card p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 24px;
    flex-grow: 1;
}

.ai-assistant-sec {
    padding: var(--section-padding) 0;
    background: var(--color-white);
}

.knowledge__video-block h3,
.knowledge__book-block h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: white;
    margin-bottom: 20px;
}

.knowledge__videos {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.knowledge__video-card {
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
}

.knowledge__video-card:hover {
    transform: translateY(-2px);
}

.knowledge__video-thumb {
    height: 140px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: var(--transition);
}

.knowledge__video-thumb span {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
    padding: 0 20px;
}

.knowledge__video-card:hover .knowledge__video-thumb {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(0, 224, 255, 0.3);
}

.knowledge__book-card {
    display: flex;
    gap: 24px;
    padding: 24px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    backdrop-filter: blur(10px);
}

.knowledge__book-cover {
    flex-shrink: 0;
}

.knowledge__book-placeholder {
    width: 120px;
    height: 160px;
    border-radius: var(--radius-xs);
    background: linear-gradient(135deg, rgba(0, 130, 255, 0.2), rgba(0, 224, 255, 0.1));
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
}

.knowledge__book-info h4 {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: white;
    margin-bottom: 8px;
    line-height: 1.4;
}

.knowledge__book-info p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 16px;
}

/* AI Block */
.knowledge__ai-block {
    position: relative;
}

.knowledge__ai-inner {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 32px 40px;
    border-radius: var(--radius);
    background: rgba(0, 224, 255, 0.06);
    border: 1px solid rgba(0, 224, 255, 0.15);
    backdrop-filter: blur(10px);
}

.knowledge__ai-icon {
    flex-shrink: 0;
    width: 72px;
    height: 72px;
    border-radius: 16px;
    background: var(--gradient-ocean);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.knowledge__ai-text {
    flex-grow: 1;
}

.knowledge__ai-text h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: white;
    margin-bottom: 4px;
}

.knowledge__ai-text p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

/* ============================================= */
/* PUBLICATIONS                                   */
/* ============================================= */

.publications {
    padding: var(--section-padding) 0;
    background: var(--color-bg-light);
}

.publications__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.publications__quote-card {
    padding: 36px 32px;
    border-radius: var(--radius);
    background: rgba(0, 130, 255, 0.05);
    border: 1px solid rgba(0, 130, 255, 0.15);
    backdrop-filter: blur(10px);
    position: relative;
    transition: var(--transition);
}

.publications__quote-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 130, 255, 0.1);
}

.publications__quote-card::before {
    content: '"';
    position: absolute;
    top: 16px;
    left: 24px;
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 900;
    background: var(--gradient-ocean);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    opacity: 0.3;
}

.publications__quote-card blockquote p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
    font-style: italic;
    margin-bottom: 0px;
}

.publications__quote-card cite {
    font-size: 0.85rem;
    color: var(--color-primary);
    font-weight: 600;
    font-style: normal;
}

.publications__book-card {
    padding: 32px;
    border-radius: var(--radius);
    background: var(--gradient-dark);
    display: flex;
    align-items: center;
    gap: 24px;
    grid-row: span 1;
    transition: var(--transition);
}

.publications__book-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.publications__book-visual {
    flex-shrink: 0;
}

.publications__book-img {
    width: 140px;
    height: auto;
    display: block;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    border-radius: 4px;
    transition: var(--transition);
}

.publications__book-card:hover .publications__book-img {
    transform: perspective(500px) rotateY(-5deg) translateY(-5px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

.publications__book-3d {
    width: 100px;
    height: 140px;
    position: relative;
    transform: perspective(500px) rotateY(-10deg);
    transition: var(--transition);
}

.publications__book-card:hover .publications__book-3d {
    transform: perspective(500px) rotateY(-5deg);
}

.publications__book-front {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary-blue));
    border-radius: 4px 8px 8px 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    box-shadow: 8px 4px 20px rgba(0, 0, 0, 0.3);
}

.publications__book-title-text {
    font-family: var(--font-heading);
    font-size: 0.7rem;
    font-weight: 700;
    color: white;
    text-align: center;
    line-height: 1.3;
}

.publications__book-author-text {
    font-size: 0.6rem;
    color: rgba(255, 255, 255, 0.6);
}

.publications__book-spine {
    position: absolute;
    left: -6px;
    top: 0;
    width: 6px;
    height: 100%;
    background: linear-gradient(180deg, var(--color-primary-dark), var(--color-primary));
    border-radius: 4px 0 0 4px;
    transform: rotateY(90deg);
    transform-origin: right;
}

.publications__book-meta h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
    margin-bottom: 8px;
}

.publications__book-meta p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
    margin-bottom: 16px;
}

.publications__events-card {
    padding: 32px;
    border-radius: var(--radius);
    background: var(--color-white);
    border: 1px solid rgba(0, 130, 255, 0.06);
    transition: var(--transition);
}

.publications__events-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.publications__events-card h3 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 20px;
}

.publications__events-list li {
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 130, 255, 0.06);
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.publications__events-list li:last-child {
    border-bottom: none;
}

.publications__event-name {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--color-dark);
}

.publications__event-desc {
    font-size: 0.8rem;
    color: rgba(26, 43, 76, 0.5);
}

/* ============================================= */
/* CONTACTS                                       */
/* ============================================= */

.contacts {
    padding: var(--section-padding) 0;
    background: var(--gradient-dark);
    position: relative;
    overflow: hidden;
}

.contacts::before {
    content: '';
    position: absolute;
    bottom: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 151, 0, 0.08), transparent 70%);
    pointer-events: none;
}

.contacts__grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 48px;
    align-items: start;
}

.contacts__person {
    margin-bottom: 32px;
}

.contacts__name {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    color: white;
    margin-bottom: 4px;
}

.contacts__role {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
}

.contacts__details {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contacts__detail {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    transition: var(--transition);
}

.contacts__detail svg {
    flex-shrink: 0;
    color: var(--color-cyan-light);
}

.contacts__detail:hover {
    color: white;
}

/* Contact Form */
.contacts__form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contacts__form-row {
    display: flex;
    gap: 16px;
}

.contacts__form input,
.contacts__form select,
.contacts__form textarea {
    width: 100%;
    padding: 14px 20px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.06);
    color: white;
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition);
    outline: none;
    backdrop-filter: blur(10px);
}

.contacts__form input::placeholder,
.contacts__form textarea::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.contacts__form select {
    appearance: none;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.35);
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l5 5 5-5' stroke='rgba(255,255,255,0.4)' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
}

.contacts__form select:has(option:checked:not([disabled])) {
    color: white;
}

.contacts__form input:focus,
.contacts__form select:focus,
.contacts__form textarea:focus {
    border-color: var(--color-cyan);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 0 3px rgba(0, 224, 255, 0.1);
}

.contacts__form textarea {
    resize: vertical;
    min-height: 100px;
}

.contacts__form select option {
    background: var(--color-dark);
    color: white;
}

/* ============================================= */
/* FOOTER                                         */
/* ============================================= */

.footer {
    padding: 32px 0;
    background: var(--color-dark-deep);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer__left {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.footer__brand {
    font-family: var(--font-heading);
    font-weight: 700;
    color: white;
    font-size: 1rem;
}

.footer__copy {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.3);
}

.footer__links {
    display: flex;
    gap: 24px;
}

.footer__links a {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
    transition: var(--transition);
}

.footer__links a:hover {
    color: var(--color-cyan-light);
}

/* ============================================= */
/* AI CHAT WIDGET                                 */
/* ============================================= */

.chat-widget {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 999;
}

.chat-widget__toggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gradient-ocean);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 30px rgba(0, 130, 255, 0.35);
    transition: var(--transition);
    position: relative;
    z-index: 2;
}

.chat-widget__toggle:hover {
    transform: scale(1.08);
    box-shadow: 0 12px 40px rgba(0, 130, 255, 0.5);
}

.chat-widget__icon-close {
    display: none;
}

.chat-widget.active .chat-widget__icon-open {
    display: none;
}

.chat-widget.active .chat-widget__icon-close {
    display: block;
}

.chat-widget__panel {
    position: absolute;
    bottom: 76px;
    right: 0;
    width: 380px;
    height: 500px;
    border-radius: var(--radius);
    background: var(--color-dark);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    display: none;
    flex-direction: column;
    overflow: hidden;
}

.chat-widget.active .chat-widget__panel {
    display: flex;
    animation: chatSlideIn 0.3s ease;
}

@keyframes chatSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.chat-widget__header {
    padding: 16px 20px;
    background: rgba(0, 130, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.chat-widget__header-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chat-widget__avatar {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--gradient-ocean);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.chat-widget__header-name {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    color: white;
}

.chat-widget__header-status {
    font-size: 0.75rem;
    color: var(--color-cyan-light);
}

.chat-widget__messages {
    flex-grow: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.chat-widget__message {
    max-width: 85%;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 0.88rem;
    line-height: 1.5;
}

.chat-widget__message--bot {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.85);
    border-bottom-left-radius: 4px;
    align-self: flex-start;
}

.chat-widget__message--user {
    background: var(--gradient-ocean);
    color: white;
    border-bottom-right-radius: 4px;
    align-self: flex-end;
}

.chat-widget__suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
}

.chat-widget__suggestion {
    font-size: 0.78rem;
    padding: 8px 14px;
    border-radius: 50px;
    border: 1px solid rgba(0, 224, 255, 0.25);
    background: rgba(0, 224, 255, 0.06);
    color: var(--color-cyan-light);
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-body);
}

.chat-widget__suggestion:hover {
    background: rgba(0, 224, 255, 0.15);
    border-color: rgba(0, 224, 255, 0.5);
}

.chat-widget__input-wrap {
    padding: 12px 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    gap: 8px;
    align-items: center;
}

.chat-widget__input {
    flex-grow: 1;
    padding: 10px 16px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.05);
    color: white;
    font-family: var(--font-body);
    font-size: 0.88rem;
    outline: none;
    transition: var(--transition);
}

.chat-widget__input:focus {
    border-color: var(--color-cyan);
    background: rgba(255, 255, 255, 0.08);
}

.chat-widget__input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.chat-widget__send {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gradient-ocean);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
    transition: var(--transition);
}

.chat-widget__send:hover {
    transform: scale(1.08);
}

/* ============================================= */
/* MOBILE OVERLAY                                 */
/* ============================================= */

.mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 26, 46, 0.95);
    backdrop-filter: var(--glass-blur);
    z-index: 998;
    align-items: center;
    justify-content: center;
}

.mobile-overlay.active {
    display: flex;
}

/* ============================================= */
/* RESPONSIVE DESIGN                              */
/* ============================================= */

@media (max-width: 1024px) {
    .hero__inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero__photo {
        order: -1;
    }

    .hero__photo-frame {
        width: 240px;
        height: 300px;
    }

    .hero__description {
        max-width: 100%;
    }

    .hero__cta {
        justify-content: center;
    }

    .stats__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .competencies__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .knowledge__grid {
        grid-template-columns: 1fr;
    }

    .contacts__grid {
        grid-template-columns: 1fr;
    }

    .publications__grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 64px;
    }

    .header__nav {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(15, 26, 46, 0.98);
        backdrop-filter: var(--glass-blur);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 32px;
        z-index: 999;
    }

    .header__nav.active {
        display: flex;
    }

    .header__nav-link {
        font-size: 1.3rem;
    }

    .header__burger {
        display: flex;
    }

    .hero {
        padding-top: 100px;
        min-height: auto;
        padding-bottom: 60px;
    }

    .hero__title {
        font-size: 2rem;
    }

    .hero__cta {
        flex-direction: column;
        align-items: center;
    }

    .hero__cta .btn {
        width: 100%;
        max-width: 320px;
    }

    .stats__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .stats__card {
        padding: 28px 16px;
    }

    .stats__number {
        font-size: 2rem;
    }

    .competencies__grid {
        grid-template-columns: 1fr;
    }

    .timeline__items {
        flex-direction: column;
        gap: 32px;
    }

    .timeline__item {
        min-height: auto;
        padding: 0 0 0 40px;
    }

    .timeline__text {
        position: static;
        text-align: left;
        align-items: flex-start;
    }

    .timeline__item:nth-child(odd) .timeline__text,
    .timeline__item:nth-child(even) .timeline__text {
        top: auto;
        bottom: auto;
    }

    .timeline__dot {
        left: 8px;
        top: 16px;
        transform: translate(-50%, -50%);
    }

    .timeline__line {
        top: 0;
        bottom: 0;
        left: 8px;
        right: auto;
        width: 2px;
        height: 100%;
        transform: none;
        background: linear-gradient(180deg, transparent, var(--color-primary), var(--color-cyan), var(--color-primary), transparent);
    }

    .timeline__content {
        text-align: left;
        max-width: none;
    }

    .timeline__year {
        margin-bottom: 4px;
    }

    .services__tabs {
        flex-direction: column;
        align-items: stretch;
    }

    .services__cards {
        grid-template-columns: 1fr;
    }

    .contacts__form-row {
        flex-direction: column;
    }

    .knowledge__ai-inner {
        flex-direction: column;
        text-align: center;
        padding: 28px 24px;
    }

    .chat-widget__panel {
        width: calc(100vw - 32px);
        right: -8px;
        height: 70vh;
    }

    .footer__inner {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .footer__links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .stats__grid {
        grid-template-columns: 1fr;
    }

    .hero__photo-frame {
        width: 200px;
        height: 250px;
    }

    .section-title {
        margin-bottom: 40px;
    }
}

/* ============================================= */
/* FORM SUCCESS STATE                             */
/* ============================================= */

.form-success {
    text-align: center;
    padding: 40px 20px;
    color: white;
}

.form-success__icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.form-success__title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.form-success__text {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}