﻿@font-face {
    font-family: 'Flame';
    src: url('../fonts/Flame.otf');
}

:root {
    --bg: #030504;
    --panel: #07100a;
    --green: #19ff3b;
    --text: #f3f7f4;
    --muted: #8d9b91;
    --line: rgba(52,255,83,.18);
    --max: 1180px
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: Inter,Arial,sans-serif;
    overflow-x: hidden
}

.noise {
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: .035;
    z-index: 20;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.6'/%3E%3C/svg%3E")
}

.container {
    width: min(calc(100% - 80px),var(--max));
    margin: auto
}

.header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10;
    border-bottom: 1px solid rgba(255,255,255,.06)
}

.nav {
    height: 82px;
    display: flex;
    align-items: center;
    gap: 40px
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #fff;
    min-width: 215px
}

    .brand img {
        width: 48px;
        height: 48px;
        object-fit: contain;
        border-radius: 50%
    }

    .brand span {
        display: flex;
        flex-direction: column;
        line-height: 1
    }

    .brand b {
        font-family: "Flame";
        font-size: 20px;
        letter-spacing: .5px
    }

    .brand small {
        font-size: 8px;
        letter-spacing: 3px;
        color: #8f9992;
        margin-top: 5px
    }

.menu {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 38px;
    flex: 1
}

    .menu a, .footer-links a {
        color: #9aa59e;
        text-decoration: none;
        font-size: 12px;
        text-transform: uppercase;
        letter-spacing: .4px;
        transition: .2s
    }

        .menu a:hover, .footer-links a:hover {
            color: var(--green)
        }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 9px;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: 800;
    font-size: 11px;
    letter-spacing: .4px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform .2s,box-shadow .2s,background .2s;
    color: #061006
}

    .btn span {
        font-size: 19px;
        line-height: 0
    }

.btn-green {
    background: var(--green);
    box-shadow: 0 0 28px rgba(25,255,59,.16)
}

    .btn-green:hover {
        transform: translateY(-2px);
        box-shadow: 0 0 34px rgba(25,255,59,.28)
    }

.btn-outline {
    color: #e7eee9;
    border-color: #526159;
    background: rgba(0,0,0,.2)
}

    .btn-outline:hover {
        border-color: var(--green);
        color: var(--green)
    }

.menu-toggle {
    display: none;
    background: none;
    border: 0
}

.hero {
    min-height: 680px;
    padding-top: 82px;
    position: relative;
    background: radial-gradient(circle at 72% 38%,rgba(19,255,57,.13),transparent 27%),linear-gradient(180deg,#020403 0%,#041008 100%);
    overflow: hidden
}

    .hero:after {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        height: 180px;
        background: linear-gradient(transparent,#030504);
        pointer-events: none
    }

.hero-grid {
    min-height: 570px;
    display: grid;
    grid-template-columns: 48% 52%;
    align-items: center;
    position: relative;
    z-index: 1
}

.hero-copy {
    padding-top: 35px
}

.eyebrow {
    font-size: 11px;
    letter-spacing: 3px;
    color: var(--green);
    font-weight: 700;
    margin-bottom: 16px
}

.hero h1, h2 {
    font-family: Montserrat,Inter,sans-serif;
    font-weight: 900;
    line-height: .96;
    letter-spacing: -1.5px;
    margin: 0
}

.hero h1 {
    font-size: clamp(42px,4vw,64px)
}

    .hero h1 span {
        color: var(--green)
    }

.hero p {
    max-width: 530px;
    color: #a9b4ad;
    line-height: 1.65;
    font-size: 15px;
    margin: 25px 0 28px
}

.hero-actions {
    display: flex;
    gap: 16px
}

.hero-line {
    width: 150px;
    height: 1px;
    background: linear-gradient(90deg,var(--green),transparent);
    margin-top: 36px
}

.hero {
    min-height: 680px;
    padding-top: 82px;
    position: relative;
    background: radial-gradient(circle at 72% 38%, rgba(19,255,57,.13), transparent 27%), linear-gradient(180deg,#020403 0%,#041008 100%);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

    .hero-bg img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center right; /* регулируй под свою картинку */
        mix-blend-mode: screen;
        opacity: .55;
        filter: contrast(1.1) saturate(1.15);
    }

    .hero-bg:after {
        content: "";
        position: absolute;
        inset: 0;
        background: radial-gradient(circle at 30% 50%, rgba(3,5,4,.85), rgba(3,5,4,.35) 60%, transparent 100%);
    }

/* Убираем старые элементы */
.moon, .art-glow, .hero-art {
    display: none;
}

.hero-grid {
    min-height: 570px;
    display: grid;
    grid-template-columns: 48% 52%;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-bottom {
    display: flex;
    align-items: center;
    gap: 18px;
    color: #4d5c53;
    font-size: 10px;
    letter-spacing: 2px;
    position: relative;
    z-index: 2
}

    .hero-bottom div {
        height: 1px;
        background: #18301d;
        flex: 1
    }

.section {
    padding: 105px 0
}

.services {
    background: linear-gradient(180deg,#030504,#061008)
}

.section-head {
    display: flex;
    justify-content: space-between;
    gap: 50px;
    align-items: end;
    margin-bottom: 48px
}

    .section-head h2 {
        font-size: 43px
    }

    .section-head > p {
        max-width: 450px;
        color: #9ca8a0;
        line-height: 1.6;
        margin: 0
    }

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

.service-card {
    min-height: 245px;
    border: 1px solid var(--line);
    background: transparent;
    border-radius: 13px;
    padding: 25px;
    position: relative;
    overflow: hidden;
    transition: .25s;
    display: flex;
    flex-direction: column; /* иконка → заголовок → текст → стрелка */
    gap: 8px; /* единый ритм между элементами */
}

    .service-card > *:not(.service-bg) {
        position: relative;
        z-index: 1;
    }

/* Фоновый слой с картинкой */
.service-bg {
    position: absolute;
    inset: 0;
    background-image: var(--bg);
    background-size: cover; /* картинка на всю ширину и высоту блока */
    background-position: center; /* центр, так как композицию задаёшь в редакторе */
    background-repeat: no-repeat;
    z-index: 0;
    transition: transform .5s ease;
}

    /* Затемняющий градиент, чтобы текст читался */
.service-bg:after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(
        120% 100% at 0% 100%,
        rgba(3,10,5,.9) 0%,
        rgba(3,10,5,.6) 40%,
        transparent 80%
    );
}

/* Ховер: картинка чуть приближается и подсвечивается */
.service-card:hover .service-bg {
    transform: scale(1.06);
    opacity: .5;
}

/* Убираем старый зелёный блик — теперь его роль выполняет картинка.
   Если хочешь оставить — не трогай это правило. */
.service-card:before {
    opacity: .05; /* было .08 — можно приглушить, чтобы не мешало */
}

.service-icon {
    height: auto;
    display: flex;
    align-items: center;
    color: var(--green);
    margin: 0 0 12px 0; /* отступ до заголовка */
    position: relative;
    z-index: 1;
}

    .service-icon svg {
        width: 34px;
        height: 34px;
        display: block;
        filter: drop-shadow(0 0 10px rgba(25,255,59,.35));
    }

.service-card h3 {
    font-size: 16px;
    margin: 0;
    position: relative;
    z-index: 1;
    padding-top: 50px;
}

.service-card p {
    color: #7f8d84;
    font-size: 12px;
    line-height: 1.55;
    margin: 0;
    max-width: 220px;
    position: relative;
    z-index: 1;
}


.service-card > a {
    position: static;
    margin-top: auto; /* прижимает стрелку к низу */
    color: var(--green);
    font-size: 22px;
    text-decoration: none;
    display: inline-block;
    z-index: 1;
    align-self: flex-end; /* не растягивается по ширине */
}

.advantages {
    border-top: 1px solid rgba(255,255,255,.06);
    border-bottom: 1px solid rgba(255,255,255,.06);
    background: #020403;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.advantage {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 34px 26px;
    border-right: 1px solid rgba(255,255,255,.06);
}

    .advantage:first-child {
        border-left: 1px solid rgba(255,255,255,.06);
    }

.advantage-icon {
    flex-shrink: 0;
    color: var(--green);
    display: flex;
    align-items: center;
}

    .advantage-icon svg {
        width: 36px;
        height: 36px;
        display: block;
        filter: drop-shadow(0 0 10px rgba(25,255,59,.35));
    }

.advantage-text h4 {
    font-size: 14px;
    font-weight: 700;
    margin: 0 0 6px;
    color: #f3f7f4;
    font-family: Inter, sans-serif;
}

.advantage-text p {
    font-size: 11px;
    color: #89968d;
    line-height: 1.4;
    margin: 0;
}

.advantages,
.advantages-grid,
.advantage {
    max-width: 100%;
    min-width: 0;
}

.advantage-text {
    min-width: 0;
    overflow-wrap: anywhere;
}

.projects {
    background: #030504
}

.text-link {
    color: var(--green);
    text-decoration: none;
    font-size: 12px;
    font-weight: 700
}

.project-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 16px
}

.project {
    height: 310px;
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
    position: relative;
    background: #071009
}

.project-large {
    height: 390px
}

.project-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform .5s
}

.project:hover .project-bg {
    transform: scale(1.06)
}

.project-bg:after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,transparent 25%,rgba(0,0,0,.92) 100%)
}

.game {
    background: url(../img/port-game.png);
    background-size: contain;
    background-repeat: no-repeat;
}

.web {
    background: url(../img/port-site.png);
    background-size: contain;
    background-repeat: no-repeat;
}

.bot {
    background: url(../img/port-bot.png);
    background-size: contain;
    background-repeat: no-repeat;
}

.project-content {
    position: absolute;
    left: 25px;
    right: 25px;
    bottom: 23px;
    z-index: 1
}

    .project-content span {
        font-size: 9px;
        letter-spacing: 2px;
        color: var(--green)
    }

    .project-content h3 {
        font-size: 24px;
        margin: 8px 0
    }

    .project-content p {
        font-size: 12px;
        color: #9ca89f;
        margin: 0;
        max-width: 430px
    }

/* ===== Блок CTA ===== */
.cta {
    padding-top: 60px;
}

.cta-box {
    min-height: 340px;
    border: 1px solid var(--line);
    border-radius: 18px;
    overflow: hidden;
    position: relative;
    display: grid;
    grid-template-columns: 33% 27% 40%; /* три колонки */
    align-items: center;
    background: #020403;
}

.cta-spacer {
    /* пустая колонка под волка, ничего не делает */
}

/* Фоновый слой */
.cta-bg {
    position: absolute;
    inset: 0;
    background-image: var(--bg);
    background-size: cover;
    background-position: left center; /* волк — слева */
    background-repeat: no-repeat;
    z-index: 0;
}

    /* Затемнение — только справа, чтобы читалась форма */
    .cta-bg:after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient( 90deg, rgba(2,5,3,0) 0%, /* волк — видим */
        rgba(2,5,3,.55) 45%, rgba(2,5,3,.92) 60%, rgba(2,5,3,.96) 100% /* под формой — почти чёрный */
        );
    }

/* Контент поверх */
.cta-copy,
.contact-form {
    position: relative;
    z-index: 1;
}

/* ===== Левая колонка ===== */
.cta-copy {
    padding: 30px 20px 30px 0; /* правый отступ до формы */
    position: relative;
    z-index: 1;
}

    .cta-copy h2 {
        font-size: 32px;
        line-height: 1.05;
        margin: 0;
    }

    .cta-copy p {
        color: #9ca8a0;
        line-height: 1.55;
        font-size: 13px;
        margin: 14px 0 22px;
        max-width: 100%;
    }

    /* Кнопка «Начать проект» — как на макете */
    .cta-copy .btn {
        min-height: 44px;
    }

/* ===== Правая колонка: форма ===== */
.contact-form {
    padding: 26px 28px;
    margin: 20px 20px 20px 0; /* немного отступа от краёв блока */
    border: 1px solid #16241b; /* лёгкая рамка вокруг формы, как на макете */
    border-radius: 12px;
    background: rgba(2,6,3,.55);
    backdrop-filter: blur(2px);
    position: relative;
    z-index: 1;
}

    /* Вертикальная линия-разделитель */
    .contact-form:before {
        content: "";
        position: absolute;
        left: 0;
        top: 40px;
        bottom: 40px;
        width: 1px;
        background: rgba(255,255,255,.07);
    }

    .contact-form label {
        display: block;
        margin-bottom: 10px;
    }

        /* Скрываем подписи визуально, но оставляем для скринридеров */
        .contact-form label > span.visually-hidden {
            position: absolute;
            width: 1px;
            height: 1px;
            padding: 0;
            margin: -1px;
            overflow: hidden;
            clip: rect(0, 0, 0, 0);
            white-space: nowrap;
            border: 0;
        }

/* Поле с иконкой */
.field {
    position: relative;
    display: flex;
    align-items: center;
}

.field-icon {
    position: absolute;
    left: 14px;
    width: 16px;
    height: 16px;
    color: #6d7a72;
    pointer-events: none;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    border: 1px solid #1d2c22;
    background: #060b07;
    color: #e8eee9;
    border-radius: 8px;
    padding: 12px 14px 12px 40px; /* отступ слева под иконку */
    font: 13px Inter, sans-serif;
    outline: none;
    resize: vertical;
    transition: border-color .2s;
}

.contact-form textarea {
    min-height: 42px;
    max-height: 140px;
}

    .contact-form input::placeholder,
    .contact-form textarea::placeholder {
        color: #6d7a72;
    }

    .contact-form input:focus,
    .contact-form textarea:focus {
        border-color: var(--green);
    }

.contact-form .btn {
    width: 100%;
    margin-top: 4px;
    min-height: 44px;
}

.footer {
    background: #020302;
    border-top: 1px solid rgba(255,255,255,.06)
}

.footer-top {
    min-height: 150px;
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr 1.5fr;
    align-items: center;
    gap: 30px;
    justify-items: center;
}

    .footer-top p {
        font-size: 11px;
        color: #7f8b84;
        line-height: 1.5
    }

.socials {
    display: flex;
    gap: 12px;
}

    .socials a {
        width: 40px;
        height: 40px;
        border: 1px solid #1d2c22;
        border-radius: 50%;
        display: grid;
        place-items: center;
        color: #8b998f;
        background: rgba(255,255,255,.02);
        transition: color .2s, border-color .2s, box-shadow .2s, transform .2s;
    }

        .socials a svg {
            width: 18px;
            height: 18px;
            display: block;
        }

        .socials a:hover {
            color: var(--green);
            border-color: var(--green);
            box-shadow: 0 0 16px rgba(25,255,59,.25);
            transform: translateY(-2px);
        }

/* Телефон вместо меню в футере */

.footer-contacts {
    display: flex;
    align-items: center;
    gap: 20px;
}

.footer-phone {
    color: var(--text);
    text-decoration: none;
    font-family: Montserrat, Inter, sans-serif;
    font-weight: 700;
    font-size: 16px;
    letter-spacing: .3px;
    transition: color .2s;
}

    .footer-phone:hover {
        color: var(--green);
    }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.05);
    min-height: 55px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #526057;
    font-size: 9px;
    justify-items: center;
}

.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .65s ease,transform .65s ease
}

    .reveal.visible {
        opacity: 1;
        transform: none
    }

@media(max-width:1000px) {
    .container {
        width: min(calc(100% - 40px),var(--max))
    }

    .menu {
        gap: 20px
    }

    .nav {
        gap: 18px
    }

    .hero-actions {
        flex-wrap: wrap
    }

    .btn {
        min-height: 46px
    }

    .service-grid {
        grid-template-columns: repeat(2,1fr)
    }

    .advantages-grid {
        grid-template-columns: 1fr 1fr;
    }

    .advantage {
        border-left: 1px solid rgba(255,255,255,.06);
        border-right: 1px solid rgba(255,255,255,.06);
        border-bottom: 1px solid rgba(255,255,255,.06);
    }

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

        .advantage:nth-child(3),
        .advantage:nth-child(4) {
            border-bottom: none;
        }

    .project-grid {
        grid-template-columns: 1fr 1fr
    }

    .project-large {
        grid-column: 1/-1
    }

    .cta-box {
        grid-template-columns: 1fr 1fr
    }

    .cta-art {
        display: none
    }

    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }

    .footer-links {
        justify-content: flex-start
    }

    .hero-grid {
        grid-template-columns: 55% 45%
    }

    .hero-art img {
        width: 150%
    }
}

@media(max-width:720px) {
    .container {
        width: calc(100% - 28px)
    }

    .nav {
        height: 72px
    }

    .brand {
        min-width: 0
    }

        .brand img {
            width: 42px;
            height: 42px
        }

        .brand b {
            font-size: 17px
        }

        .brand small {
            font-size: 7px
        }

    .nav-btn {
        display: none
    }

    .menu-toggle {
        display: flex;
        margin-left: auto;
        flex-direction: column;
        gap: 4px
    }

        .menu-toggle i {
            display: block;
            width: 24px;
            height: 2px;
            background: var(--green)
        }

    .menu {
        position: absolute;
        top: 72px;
        left: 14px;
        right: 14px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 8px;
        background: #061008;
        border: 1px solid var(--line);
        border-radius: 10px
    }

        .menu.open {
            display: flex
        }

        .menu a {
            padding: 15px
        }

    .hero {
        padding-top: 72px
    }

    .hero-grid {
        display: block;
        min-height: 690px
    }

    .hero-copy {
        padding-top: 70px;
        position: relative;
        z-index: 3
    }

    .hero h1 {
        font-size: 42px
    }

    .hero p {
        font-size: 13px
    }

    .hero-bg img {
        object-position: 70% center;
        opacity: .4;
    }

    .hero-grid {
        display: block;
    }

    .hero-copy {
        padding-top: 70px;
        position: relative;
        z-index: 3;
    }

    .hero-bottom {
        padding-bottom: 20px
    }

    .section {
        padding: 75px 0
    }

    .section-head {
        display: block;
        margin-bottom: 30px
    }

        .section-head h2 {
            font-size: 34px
        }

        .section-head > p {
            margin-top: 20px
        }

    .service-grid {
        grid-template-columns: 1fr
    }

    .service-bg {
        opacity: .28;
    }

    .service-card {
        min-height: 210px
    }

    .service-card:hover .service-bg {
        transform: none;
        opacity: .28;
    }

    .advantages-grid {
        grid-template-columns: 1fr;
    }

    .advantage {
        padding: 20px 18px;
        border-left: 1px solid rgba(255,255,255,.06);
        border-right: 1px solid rgba(255,255,255,.06);
        border-bottom: 1px solid rgba(255,255,255,.06);
        gap: 14px;
        min-width: 0; /* ← важно: убирает «вылезание» */
    }

        .advantage:last-child {
            border-bottom: none;
        }

    .advantage-text h4 {
        font-size: 13px;
    }

    .advantage-text p {
        font-size: 11px;
    }

    .advantage-icon svg {
        width: 30px;
        height: 30px;
    }

    .project-grid {
        grid-template-columns: 1fr
    }

    .project-large {
        grid-column: auto
    }

    .project, .project-large {
        height: 280px
    }

    .cta-box {
        grid-template-columns: 1fr
    }

    .cta-copy {
        padding: 35px 25px 10px
    }

        .cta-copy h2 {
            font-size: 30px
        }

    .contact-form {
        padding: 25px
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: 22px;
        padding: 35px 0;
        text-align: center; /* центрируем текст */
        justify-items: center; /* центрируем элементы грида */
    }

    /* Бренд по центру */
    .footer .brand {
        justify-content: center;
        min-width: 0;
    }

    /* Текст «Делаем технологии…» — по центру */
    .footer-top p {
        margin: 0;
        text-align: center;
    }

    /* Соцсети — по центру */
    .socials {
        justify-content: center;
    }

    /* Телефон — по центру */
    .footer-phone {
        justify-self: center;
        text-align: center;
    }

    /* Если контакты объединены в .footer-contacts — тоже по центру */
    .footer-contacts {
        flex-direction: column;
        align-items: center;
        gap: 14px;
    }

    .footer-bottom {
        padding: 16px 0;
        text-align: center;
        line-height: 1.8;
        display: flex;
        flex-direction: column;
    }

        .footer-bottom span {
            display: flex;
            gap: 5px;
        }
}