/* ==========================================================
   ОБЩИЕ СТИЛИ / RESET
   ========================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', Arial, sans-serif;
    background: #000;
    color: #fff;
    overflow-x: hidden;
    font-size: 16px;
    line-height: 1.6;
}

body.no-scroll {
    overflow: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    font-family: inherit;
    cursor: pointer;
}

img {
    max-width: 100%;
    display: block;
}


/* ==========================================================
   УТИЛИТЫ / ПЕРЕИСПОЛЬЗУЕМЫЕ КЛАССЫ
   ========================================================== */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 60px;
}

/* Заголовки секций — шрифт Unbounded */
.section-heading {
    font-family: 'Unbounded', sans-serif;
    font-size: clamp(36px, 5vw, 72px);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 60px;
    text-transform: uppercase;
}

/* Зелёная кнопка */
.btn {
    display: inline-block;
    border: none;
    font-weight: 600;
    font-size: 14px;
    border-radius: 30px;
    padding: 14px 36px;
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
}

.btn--green {
    background: #00ff88;
    color: #000;
}

.btn--green:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 255, 136, 0.45);
}

.btn--full {
    width: 100%;
}


/* ==========================================================
   HEADER — Шапка: логотип + навигация + бургер
   ========================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 18px 0;
    background: rgba(0, 0, 0, 0.4);          /* Полупрозрачный поверх hero-фото */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.header__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* --- Логотип --- */
.logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    position: relative;
    z-index: 1100;
}

.logo__text {
    font-family: 'Unbounded', sans-serif;
    font-size: 28px;
    font-weight: 900;
    letter-spacing: 2px;
    line-height: 1;
}

.logo__line {
    display: block;
    width: 100%;
    height: 3px;
    background: #fff;
}

/* --- Навигация (десктоп) --- */
.nav {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav__link {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: color 0.3s;
}

.nav__link:hover {
    color: #00ff88;
}

/* --- Бургер (скрыт на десктопе) --- */
.burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    z-index: 1100;
    position: relative;
}

.burger__line {
    display: block;
    width: 100%;
    height: 3px;
    background: #fff;
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}

/* Анимация крестика */
.burger--active .burger__line:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}
.burger--active .burger__line:nth-child(2) {
    opacity: 0;
}
.burger--active .burger__line:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}


/* ==========================================================
   HERO — Главный экран
   Фото на весь экран, контент прижат к низу,
   заголовок слева, описание + кнопка справа
   ========================================================== */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: flex-end;           /* Контент прижат к низу */
    overflow: hidden;
}

/* Фоновое фото на весь экран */
.hero__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
}

/* Затемняющий градиент поверх фото */
.hero__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(
            to top,
            rgba(0, 0, 0, 0.85) 0%,
            rgba(0, 0, 0, 0.4) 40%,
            rgba(0, 0, 0, 0.15) 70%,
            rgba(0, 0, 0, 0.3) 100%
        );
}

/* Контент поверх затемнения */
.hero__content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding-bottom: 80px;
}

/* Нижняя часть: заголовок слева, текст справа */
.hero__bottom {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: flex-end;
}

/* Крупный заголовок */
.hero__title {
    display: flex;
    flex-direction: column;
}

.hero__title-line {
    font-family: 'Unbounded', sans-serif;
    font-size: clamp(48px, 7vw, 110px);
    font-weight: 900;
    line-height: 0.9;
    letter-spacing: -2px;
    text-transform: uppercase;
}

.hero__title-line--accent {
    color: #00ff88;
}

/* Правая часть — описание */
.hero__right {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-bottom: 10px;
}

.hero__subtitle {
    font-family: 'Unbounded', sans-serif;
    font-size: clamp(18px, 2vw, 28px);
    font-weight: 700;
    color: #00ff88;
    line-height: 1.2;
}

.hero__text {
    font-size: 15px;
    line-height: 1.8;
    color: #ccc;
}


/* ==========================================================
   ABOUT — О нас: Интерактивные табы
   Слева — пункты-меню, справа — фото + текст описания
   ========================================================== */
.about {
    padding: 120px 0;
    background: #0a0a0a;
}

.about__inner {
    display: grid;
    grid-template-columns: 380px 1fr;    /* Фиксированная ширина табов */
    gap: 60px;
    align-items: start;
}

/* --- Табы (левая колонка) --- */
.about__tabs {
    display: flex;
    flex-direction: column;
    position: sticky;                     /* Прилипают при скролле */
    top: 120px;
}

.about__tab {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 28px 0;
    background: none;
    border: none;
    border-bottom: 1px solid #222;
    color: #555;
    text-align: left;
    transition: color 0.3s, border-color 0.3s;
    cursor: pointer;
}

.about__tab:first-child {
    border-top: 1px solid #222;
}

.about__tab:hover {
    color: #aaa;
}

/* Активный таб — зелёный + зелёная полоска снизу */
.about__tab--active {
    color: #00ff88;
    border-bottom-color: #00ff88;
}

.about__tab-number {
    font-family: 'Unbounded', sans-serif;
    font-size: 14px;
    font-weight: 700;
    min-width: 30px;
}

.about__tab-title {
    font-family: 'Unbounded', sans-serif;
    font-size: clamp(18px, 2vw, 28px);
    font-weight: 700;
}

/* --- Панели контента (правая колонка): фото + текст --- */
.about__panels {
    position: relative;
    min-height: 500px;
}

.about__panel {
    opacity: 0;
    visibility: hidden;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    transition: opacity 0.5s ease, visibility 0.5s ease, transform 0.5s ease;
    transform: translateY(25px);
}

.about__panel--active {
    opacity: 1;
    visibility: visible;
    position: relative;
    transform: translateY(0);
}

/* Фото внутри панели */
.about__panel-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 30px;
    background: #1a1a1a;
}

.about__panel-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.about__panel--active .about__panel-image img {
    transform: scale(1);
}

.about__panel-image:hover img {
    transform: scale(1.04);
}

/* Текст под фото */
.about__panel-body {
    padding: 0 5px;
}

.about__panel-title {
    font-family: 'Unbounded', sans-serif;
    font-size: clamp(22px, 2.5vw, 36px);
    font-weight: 700;
    margin-bottom: 18px;
    color: #00ff88;
}

.about__panel-text {
    font-size: 16px;
    line-height: 1.9;
    color: #bbb;
}


/* ==========================================================
   PROJECTS — Проекты: слайдер с карточками
   При наведении — оверлей с анимацией и информацией
   ========================================================== */
.projects {
    padding: 120px 0;
    background: #050505;
}

.projects__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 50px;
}

.projects__header .section-heading {
    margin-bottom: 0;
}

/* --- Кнопки слайдера --- */
.slider-controls {
    display: flex;
    gap: 12px;
}

.slider-btn {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    border: 2px solid #333;
    background: transparent;
    color: #fff;
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.3s, background 0.3s, color 0.3s;
}

.slider-btn:hover {
    border-color: #00ff88;
    background: #00ff88;
    color: #000;
}

/* --- Обёртка слайдера --- */
.projects__slider {
    overflow: hidden;
}

.projects__track {
    display: flex;
    gap: 30px;
    transition: transform 0.5s cubic-bezier(.25,.8,.25,1);
}

/* --- Карточка проекта --- */
.project-card {
    flex: 0 0 calc(33.333% - 20px);
    min-width: 280px;
}

.project-card__image {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4;
    background-size: cover;
    background-position: center;
    background-color: #1a1a1a;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
}

/* Zoom-эффект фона при наведении */
.project-card__image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: inherit;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s ease;
    z-index: 0;
}

.project-card__image:hover::before {
    transform: scale(1.08);
}

/* --- Оверлей с информацией --- */
.project-card__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.95) 0%,
        rgba(0, 0, 0, 0.5) 50%,
        rgba(0, 0, 0, 0.05) 100%
    );
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.project-card__image:hover .project-card__overlay {
    opacity: 1;
}

.project-card__title {
    font-family: 'Unbounded', sans-serif;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #00ff88;
    transform: translateY(20px);
    transition: transform 0.4s ease 0.05s;
}

.project-card__info {
    font-size: 14px;
    line-height: 1.6;
    color: #ccc;
    margin-bottom: 12px;
    transform: translateY(20px);
    transition: transform 0.4s ease 0.1s;
}

.project-card__date {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #666;
    transform: translateY(20px);
    transition: transform 0.4s ease 0.15s;
}

/* Каскадная анимация при наведении */
.project-card__image:hover .project-card__title,
.project-card__image:hover .project-card__info,
.project-card__image:hover .project-card__date {
    transform: translateY(0);
}


/* ==========================================================
   FEATURES — Возможности: сетка из 4 карточек
   ========================================================== */
.features {
    padding: 120px 0;
    background: #000;
}

.features__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.feature-card {
    text-align: center;
    padding: 40px 20px;
    border: 1px solid #1a1a1a;
    border-radius: 20px;
    transition: border-color 0.3s, transform 0.3s;
}

.feature-card:hover {
    border-color: #00ff88;
    transform: translateY(-6px);
}

.feature-card__icon {
    margin: 0 auto 25px;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-card__title {
    font-family: 'Unbounded', sans-serif;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #00ff88;
}

.feature-card__text {
    font-size: 14px;
    line-height: 1.7;
    color: #999;
}


/* ==========================================================
   CONTACT — Контакты: форма + информация
   ========================================================== */
.contact {
    padding: 120px 0;
    background: #0a0a0a;
}

.contact__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

/* --- Форма --- */
.form-group {
    margin-bottom: 20px;
}

.form-input {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 2px solid #222;
    color: #fff;
    padding: 18px 0;
    font-size: 16px;
    font-family: 'Roboto', sans-serif;
    transition: border-color 0.3s;
}

.form-input:focus {
    outline: none;
    border-color: #00ff88;
}

.form-input::placeholder {
    color: #555;
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
    border: 2px solid #222;
    border-radius: 10px;
    padding: 18px;
}

.form-textarea:focus {
    border-color: #00ff88;
}

/* --- Контактная информация --- */
.contact__info {
    display: flex;
    flex-direction: column;
    gap: 35px;
    padding-top: 10px;
}

.contact__info-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.contact__label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #555;
}

.contact__value {
    font-size: 18px;
    color: #fff;
    transition: color 0.3s;
}

a.contact__value:hover {
    color: #00ff88;
}


/* ==========================================================
   FOOTER — Подвал
   ========================================================== */
.footer {
    padding: 40px 0;
    border-top: 1px solid #1a1a1a;
}

.footer__inner {
    text-align: center;
}

.footer__copy {
    font-size: 13px;
    color: #555;
}


/* ==========================================================
   АДАПТИВ — Планшеты (≤ 1024px)
   ========================================================== */
@media (max-width: 1024px) {

    .container {
        padding: 0 40px;
    }

    /* Hero — одна колонка, контент внизу */
    .hero__bottom {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    /* About — одна колонка, табы сверху */
    .about__inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about__tabs {
        position: static;                /* Убираем sticky */
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0;
    }

    .about__tab {
        flex: 1 1 50%;
        border-top: 1px solid #222;
        padding: 20px 10px;
    }

    .about__tab:first-child {
        border-top: 1px solid #222;
    }

    .about__panels {
        min-height: auto;
    }

    /* Projects — 2 карточки видно */
    .project-card {
        flex: 0 0 calc(50% - 15px);
    }

    /* Features — 2 колонки */
    .features__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Contact — одна колонка */
    .contact__inner {
        grid-template-columns: 1fr;
        gap: 60px;
    }
}


/* ==========================================================
   АДАПТИВ — Мобильные (≤ 768px)
   ========================================================== */
@media (max-width: 768px) {

    .container {
        padding: 0 20px;
    }

    /* --- Бургер виден, навигация — полноэкранная панель --- */
    .burger {
        display: flex;
    }

    .nav {
        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.97);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 30px;
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(.25,.8,.25,1);
        z-index: 1050;
    }

    .nav--open {
        transform: translateX(0);
    }

    .nav__link {
        font-family: 'Unbounded', sans-serif;
        font-size: 24px;
        font-weight: 700;
    }

    .nav__cta {
        margin-top: 20px;
        font-size: 16px;
        padding: 16px 50px;
    }

    /* Hero — меньше отступ снизу */
    .hero__content {
        padding-bottom: 50px;
    }

    .hero__title-line {
        font-size: clamp(38px, 12vw, 60px);
    }

    /* About — табы вертикально */
    .about__tabs {
        flex-direction: column;
    }

    .about__tab {
        flex: auto;
        padding: 22px 0;
    }

    .about__tab-title {
        font-size: 18px;
    }

    /* Projects — 1 карточка */
    .project-card {
        flex: 0 0 100%;
        min-width: auto;
    }

    .projects__header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    /* Features — 1 колонка */
    .features__grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .section-heading {
        margin-bottom: 40px;
    }

    /* Карточки проектов — оверлей всегда виден на мобилке */
    .project-card__overlay {
        opacity: 1;
    }

    .project-card__title,
    .project-card__info,
    .project-card__date {
        transform: translateY(0);
    }
}


/* ==========================================================
   АДАПТИВ — Маленькие мобильные (≤ 480px)
   ========================================================== */
@media (max-width: 480px) {

    .hero__title-line {
        font-size: 36px;
        letter-spacing: -1px;
    }

    .hero__subtitle {
        font-size: 18px;
    }

    .about__panel-title {
        font-size: 20px;
    }

    .project-card__title {
        font-size: 16px;
    }
}