/* ============================================================
   ОБЩИЕ СТИЛИ САЙТА (main-styles.css)
   ============================================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ============================================================
   DESIGN TOKENS — единый источник цветов, шрифтов и форм сайта.
   Переменные используются всеми CSS-файлами и inline-стилями.
   ============================================================ */
:root {
    /* Палитра акцента и нейтралей */
    --blue: #ff7a22;          /* основной акцент (оранжевый) */
    --blue-l: #ff6600;        /* акцент при наведении */
    --ink: #0a0603;           /* тёмный фон / тёмный текст */
    --mist: #eef3f9;          /* светлый фон секций */
    --link: #1a5bbf;          /* ссылки / источники (синий) */
    --success: #5dd47e;       /* подтверждение (зелёный) */

    /* RGB-каналы акцента для прозрачности: rgba(var(--r), var(--g), var(--b), a) */
    --r: 255;
    --g: 122;
    --b: 34;
    --r-l: 255;
    --g-l: 102;
    --b-l: 0;

    /* Типографика */
    --font-display: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
}

/* ============================================================
   ФОН И ОСНОВНЫЕ СТИЛИ
   ============================================================ */

#bg-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    z-index: -1;
    display: none;
}

body {
    font-family: var(--font-body);
    color: #fff;
    background: var(--ink);
    -webkit-font-smoothing: antialiased;
}

html {
    scroll-behavior: smooth !important;
}

/* ============================================================
   HERO
   ============================================================ */

.hero {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
}

/* Split diagonal background */
.bg-split {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.bg-left,
.bg-right {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 60%;
    background-size: cover;
    background-position: center;
}

.bg-left {
    left: 0;
    background-image:
        linear-gradient(120deg, rgba(30,32,36,.55), rgba(30,32,36,.15)),
        url('../05.jpg'),
        linear-gradient(180deg, #8b8f95, #4a4d52);
    background-size: contain;
    background-position: center;
    background-blend-mode: multiply, normal, normal;
    clip-path: polygon(0 0, 100% 0, 62% 100%, 0% 100%);
}

.bg-right {
    right: 0;
    background-image:
        linear-gradient(200deg, rgba(14,15,17,.78), rgba(14,15,17,.42)),
        linear-gradient(160deg, #2b2d30, #101113);
    background-size: cover;
    background-position: center;
    background-blend-mode: multiply, normal;
    clip-path: polygon(40% 0, 100% 0, 100% 100%, 0% 100%);
}

/* Sun rays / dust overlay */
.rays {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        linear-gradient(115deg, transparent 40%, rgba(235,240,248,.14) 47%, transparent 55%),
        radial-gradient(ellipse at 80% 10%, rgba(225,232,242,.22), transparent 45%);
    mix-blend-mode: screen;
    clip-path: polygon(40% 0, 100% 0, 100% 100%, 0% 100%);
}

.grain {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    opacity: .06;
    background-image: radial-gradient(#fff 1px, transparent 1px);
    background-size: 4px 4px;
    clip-path: polygon(60% 0, 100% 0, 100% 100%, 37% 100%);
}

/* Decorative facade glass lines on left */
.facade {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 50%;
    z-index: 1;
    opacity: .15;
    pointer-events: none;
    clip-path: polygon(0 0, 100% 0, 62% 100%, 0% 100%);
    background-image:
        linear-gradient(90deg, rgba(255,255,255,.4) 1px, transparent 1px),
        linear-gradient(0deg, rgba(255,255,255,.25) 1px, transparent 1px);
    background-size: 70px 70px;
}

/* ============================================================
   НАВИГАЦИЯ
   ============================================================ */

nav {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 60px 6vw;
	margin-top: 30px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand .mark {
    width: 100px;
    height: 53px;
    display: grid;
    place-items: center;
}

/* Стили для нового логотипа вынесены в отдельный файл fenix.css */
/* Здесь оставлены только базовые стили для контейнера */
.mark .logo-container {
    position: relative;
    display: inline-block;
    width: 100px;
    height: 53px;
    cursor: pointer;
}

.brand .name {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 22px;
    letter-spacing: .5px;
}

.brand .name span {
    color: var(--blue);
    text-shadow: 0 1px 8px rgba(0,0,0,.8);
}

.nav-links {
    display: flex;
    gap: 34px;
	margin: 16px;
}

.nav-links a {
    color: rgba(255,255,255,.85);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: color .25s;
}

.nav-links a:hover {
    color: #fff;
}

.nav-cta {
    background: #fff;
    color: var(--blue);
    padding: 11px 22px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: transform .25s, box-shadow .25s;
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0,0,0,.3);
}

/* ============================================================
   HERO CONTENT
   ============================================================ */

.hero-inner {
    position: relative;
    z-index: 3;
    max-width: 1200px;
    margin: 0 auto;
    padding: 5vh 6vw 8vh;
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 50px;
    align-items: center;
    min-height: 78vh;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.2);
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: .4px;
    backdrop-filter: blur(6px);
    text-shadow: 0 1px 6px rgba(0,0,0,.5);
}

.badge i {
    color: var(--blue);
}

h1 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(40px, 5.5vw, 76px);
    line-height: 1.04;
    margin: 26px 0 22px;
    letter-spacing: -1px;
    text-shadow: 0 2px 18px rgba(0,0,0,.55), 0 1px 3px rgba(0,0,0,.7);
}

h1 .hl {
    color: var(--blue);
}

.lede {
    font-size: 18px;
    line-height: 1.6;
    color: rgba(255,255,255,.88);
    max-width: 480px;
    text-shadow: 0 1px 8px rgba(0,0,0,.6);
}

.actions {
    display: flex;
    gap: 16px;
    margin-top: 36px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 30px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    transition: transform .25s, box-shadow .25s, background .25s;
}

.btn-primary {
    background: var(--blue);
    color: #fff;
}

.btn-primary:hover {
    background: var(--blue-l);
    transform: translateY(-3px);
    box-shadow: 0 16px 40px rgba(169, 90, 49,.45);
}

.btn-ghost {
    border: 1px solid rgba(255,255,255,.3);
    color: #fff;
}

.btn-ghost:hover {
    background: rgba(255,255,255,.1);
    transform: translateY(-3px);
}

.stats {
    display: flex;
    gap: 20px;
    margin-top: 56px;
    border-top: 1px solid rgba(255,255,255,.15);
    padding-top: 28px;
}

.stat .num {
    font-family: var(--font-display);
    font-size: 30px;
    font-weight: 700;
    text-shadow: 0 2px 12px rgba(0,0,0,.55);
}

.stat .lbl {
    font-size: 13px;
    color: rgba(255,255,255,.72);
    margin-top: 4px;
    text-shadow: 0 1px 6px rgba(0,0,0,.5);
}

.num sup {
    vertical-align: baseline;
    font-size: 0.7em;
    position: relative;
    top: -0.4em;
}

/* ============================================================
   SERVICE CARDS (HERO RIGHT)
   ============================================================ */

.cards {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.card {
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 16px;
    padding: 0;
    overflow: hidden;
    backdrop-filter: blur(8px);
    transition: transform .3s, background .3s, border-color .3s;
    cursor: pointer;
}

.card:hover {
    transform: translateY(-8px);
    background: rgba(169, 90, 49,.12);
    border-color: rgba(169, 90, 49,.45);
}

.card .illus {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.card .illus img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.card .body {
    padding: 26px 26px 28px;
}

.card h3 {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.card h3 .chev {
    font-size: 15px;
    color: var(--blue);
    transition: transform .3s;
}

.card.open h3 .chev {
    transform: rotate(180deg);
}

.card p {
    font-size: 14px;
    line-height: 1.55;
    color: rgba(255,255,255,.7);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height .4s ease, opacity .3s ease, margin-top .3s ease;
}

.card.open p {
    max-height: 200px;
    opacity: 1;
    margin-top: 4px;
}

/* ============================================================
   ОБЩИЕ СТИЛИ СЕКЦИЙ
   ============================================================ */

.section {
    padding: 110px 6vw;
    position: relative;
}

.section .wrap {
    max-width: 1200px;
    margin: 50px auto 0px;
}

.section.light {
    color: var(--ink);
}

.section.dark {
    color: #fff;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--blue);
}

.section.dark .eyebrow {
    color: var(--blue);
}

.sec-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(30px, 4vw, 50px);
    line-height: 1.08;
    letter-spacing: -1px;
    margin: 18px 0 20px;
}

.sec-lede {
    font-size: 18px;
    line-height: 1.65;
    max-width: 640px;
    opacity: .82;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
    margin-top: 56px;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.feature {
    background: #fff;
    border: 1px solid rgba(10,6,3,.08);
    border-radius: 18px;
    padding: 34px 30px;
    transition: transform .3s, box-shadow .3s;
}

.section.dark .feature {
    background: rgba(255,255,255,.05);
    border-color: rgba(255,255,255,.12);
}

.feature:hover {
    cursor: pointer;
    transform: translateY(-6px);
    box-shadow: 0 24px 50px rgba(10,6,3,.1);
}

.feature .ic {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    background: rgba(11,92,213,.1);
    color: var(--blue);
    display: grid;
    place-items: center;
    font-size: 22px;
    margin-bottom: 20px;
}

.section.dark .feature .ic {
    background: rgba(143,192,255,.14);
    color: var(--blue-l);
}

.feature h3 {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
}

.feature p {
    font-size: 15px;
    line-height: 1.6;
    opacity: .78;
}

.check-list {
    list-style: none;
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.check-list li {
    display: flex;
    gap: 14px;
    font-size: 16px;
    line-height: 1.5;
    align-items: flex-start;
}

.check-list li i {
    color: var(--blue);
    margin-top: 3px;
}

.section.dark .check-list li i {
    color: var(--blue);
}

.visual-panel {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.15);
    position: relative;
    background: #1a1a2e;
    aspect-ratio: 4/3;
    width: 100%;
}

/* ============================================================
   ПРОЕКТЫ
   ============================================================ */

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin-top: 54px;
}

.project {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
}

.project svg {
    width: 100%;
    height: 100%;
    display: block;
}

.project .meta {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 22px;
    background: linear-gradient(180deg, transparent, rgba(6,4,2,.9));
}

.project .meta .tag {
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--blue-l);
    font-weight: 600;
}

.project .meta h4 {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 600;
    margin-top: 6px;
    color: #fff;
}

/* ============================================================
   КОНТАКТЫ
   ============================================================ */

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 54px;
    align-items: start;
}

.contact-item {
    display: flex;
    gap: 18px;
    margin-bottom: 30px;
}

.contact-item .ic {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    flex-shrink: 0;
    background: rgba(143,192,255,.14);
    color: var(--blue);
    display: grid;
    place-items: center;
    font-size: 20px;
}

.contact-item .lbl {
    font-size: 13px;
    letter-spacing: 1px;
    text-transform: uppercase;
    opacity: .6;
    margin-bottom: 4px;
}

.contact-item .val {
    font-size: 18px;
    font-weight: 500;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px 16px;
    border-radius: 12px;
    background: rgba(0,0,0,.6);
    border: 1px solid rgba(255,255,255,.16);
    color: #fff;
    font-size: 16px;
    font-family: var(--font-body);
    transition: border-color .25s;
    margin-bottom: 16px;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--blue-l);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: rgba(255,255,255,.4);
}

.contact-form textarea {
    resize: vertical;
    min-height: 110px;
}

.contact-form .submit {
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 12px;
    background: var(--blue);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background .25s, transform .25s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.contact-form .submit:hover {
    background: var(--blue-l);
    transform: translateY(-2px);
}

.contact-done {
    color: var(--success);
    font-size: 15px;
    margin-top: 14px;
    display: none;
}

.contact-done.show {
    display: block;
}

/* ============================================================
   НАША КОМАНДА
   ============================================================ */

.h3-with-icon {
    padding-left: 45px;
    position: relative;
    line-height: 1.3;
}

.h3-with-icon::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 20px;
    background-image: url('../lks_transparent.svg');
    background-size: contain;
    background-repeat: no-repeat;
}

/* ============================================================
   АДАПТИВНОСТЬ
   ============================================================ */

@media (max-width: 920px) {
    .grid-3,
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .grid-2,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .section {
        padding: 80px 6vw;
    }
    
    .callbacktxt {
        display: none;
    }
    
    .grain {
        display: none;
    }
    
    nav {
        justify-content: flex-end;
        gap: 8px;
        flex-wrap: nowrap;
    }

    nav > .brand {
        margin-right: auto;
    }

    .nav-actions {
        flex-wrap: nowrap;
        flex-shrink: 0;
        z-index: 20;
        margin-left: 0;
        position: relative;
        order: 2;
    }

    nav > .info-mobile-menu {
        order: 3;
        z-index: 20;
        position: relative;
    }

    .nav-links {
        display: none;
    }
    
    .hero-inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .bg-left {
        clip-path: polygon(0 0, 100% 0, 100% 50%, 0 70%);
        width: 100%;
        background-attachment: scroll;
    }
    
    .bg-right {
        clip-path: polygon(0 70%, 100% 50%, 100% 100%, 0 100%);
        width: 100%;
        background-attachment: scroll;
    }
    
    .facade {
        width: 100%;
        clip-path: polygon(0 0, 100% 0, 100% 50%, 0 70%);
    }
    
    .stats {
        flex-wrap: wrap;
        gap: 28px;
    }
    
    #foamCanvas {
        display: none !important;
    }
    
    #custom-cursor {
        display: none !important;
    }
}

@media (min-width: 920px) {
    .bg-left {
        background-image: none;
        background-color: transparent;
    }
    
    #bg-video {
        display: block;
    }
}

@media (max-width: 1251px) {
	.nav-links {
		gap: 16px;
	}
}

