/* ═══════════════════════════════════════════
   COMMON.CSS — Глобальные стили, шапка, hero,
   stats, footer, кнопки, модалки, user-menu
   ═══════════════════════════════════════════ */

:root {
    --bg: #ebebee;
    --white: #ffffff;
    --text: #121212;
    --muted: #5f5f71;
    --purple: #5d58f5;
    --purple-dark: #4c44e8;
    --purple-soft: #cfd0ff;
    --orange: #ff8747;
    --orange-dark: #ff6f2f;
    --card: #d9dbff;
    --shadow: 0 12px 30px rgba(68, 58, 180, 0.14);
    --radius-xl: 32px;
    --radius-lg: 24px;
    --radius-md: 18px;
    --radius-sm: 14px;
    --container: 1240px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scrollbar-gutter: stable;
}

body {
    font-family: "Montserrat", sans-serif;
    background: var(--bg);
    color: var(--text);
}

body.modal-open {
    overflow: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
    border: none;
    background: none;
    cursor: pointer;
}

img {
    max-width: 100%;
    display: block;
}

.page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

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

.content-area {
    flex: 1;
    padding-bottom: 72px;
}

/* ── HERO ────────────────────────────────── */
.hero {
    padding: 28px 18px 0;
    background: linear-gradient(135deg, #5c57f5 0%, #6259f7 55%, #5d52f6 100%);
    border-radius: 0 0 32px 32px;
    color: #fff;
    box-shadow: var(--shadow);
    overflow: hidden;
}

/* ── HEADER (sticky) ─────────────────────── */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: linear-gradient(135deg, #5c57f5 0%, #6259f7 55%, #5d52f6 100%);
    color: #fff;
    box-shadow: 0 4px 20px rgba(60, 50, 180, 0.15);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 8px 0;
}

.header__brand {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 265px;
}

.logo {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    font-weight: 800;
}

.logo--round {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(145deg, #e8fff1, #b8ffd8);
    color: #216b48;
    border: 2px solid rgba(255, 255, 255, 0.6);
    font-size: 16px;
}

.logo--ghost {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.45);
    color: rgba(255, 255, 255, 0.9);
    font-size: 11px;
    background: rgba(255, 255, 255, 0.05);
}

.brand-text span,
.footer-brand span {
    display: block;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
}

.brand-text p,
.footer-brand p {
    margin-top: 2px;
    font-size: 10px;
    font-weight: 500;
    line-height: 1.2;
    opacity: 0.95;
    max-width: 180px;
}

/* ── NAV ─────────────────────────────────── */
.nav {
    display: flex;
    align-items: center;
    gap: 26px;
    flex-wrap: wrap;
    justify-content: center;
    font-size: 13px;
    font-weight: 500;
}

.nav a {
    opacity: 0.95;
    transition: .2s ease;
    position: relative;
}

.nav .btn--small {
    min-height: 34px;
    padding: 0 18px;
    font-size: 12px;
    box-shadow: 0 6px 16px rgba(255, 122, 54, 0.2);
}

.nav .btn--small:hover {
    transform: translateY(-1px);
}

.nav a:hover,
.nav a.active {
    opacity: 1;
    color: #ffd9c7;
}

.nav a.active::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 100%;
    height: 2px;
    border-radius: 2px;
    background: #ffd9c7;
}

/* ── HERO CONTENT ────────────────────────── */
.hero__content {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 18px;
    align-items: stretch;
}

.hero__left {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 22px 12px 34px 10px;
    min-height: 520px;
}

.hero__left h1 {
    font-size: clamp(42px, 5vw, 72px);
    line-height: 0.98;
    font-weight: 800;
    letter-spacing: -0.03em;
    max-width: 590px;
}

.hero__left p {
    margin-top: 24px;
    max-width: 490px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
    font-size: 15px;
}

.hero__actions {
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
}

.hero__right {
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 520px;
}

.hero-illustration {
    min-height: 380px;
    border-radius: 28px;
    position: relative;
    overflow: hidden;
}

.hero-illustration img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-illustration__person {
    position: absolute;
    right: 90px;
    bottom: 8px;
    width: 250px;
    height: 330px;
    border-radius: 120px 120px 50px 50px;
    background:
        radial-gradient(circle at 55% 18%, #ffd7b8 0 18%, transparent 18.5%),
        radial-gradient(circle at 52% 12%, #6b3b24 0 15%, transparent 15.5%),
        radial-gradient(circle at 48% 20%, #2f2f44 0 3.5%, transparent 4%),
        radial-gradient(circle at 60% 20%, #2f2f44 0 3.5%, transparent 4%),
        linear-gradient(180deg, #d7d8e4 42%, #b8bac9 42% 100%);
    box-shadow: inset 0 -18px 40px rgba(0, 0, 0, 0.08);
}

.hero-illustration__robot {
    position: absolute;
    bottom: 18px;
    width: 110px;
    height: 160px;
    border-radius: 60px;
    background:
        radial-gradient(circle at 50% 22%, #dbe2f0 0 27%, transparent 27.5%),
        linear-gradient(180deg, #eff3fb, #c7d0de);
    box-shadow: inset 0 -12px 24px rgba(0, 0, 0, 0.08);
}

.robot-left {
    left: 72px;
}

.robot-right {
    right: 14px;
    transform: scale(0.82);
    bottom: 14px;
}

/* ── HERO CARDS ──────────────────────────── */
.hero-cards-wrap {
    margin-top: -18px;
    margin-left: 16px;
    margin-right: 16px;
    padding: 12px;
    border-radius: 26px;
    background: rgba(214, 214, 255, 0.8);
    backdrop-filter: blur(6px);
    box-shadow: 0 10px 24px rgba(60, 54, 170, 0.12);
    position: relative;
    z-index: 2;
}

.mini-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.mini-card {
    background: #746df9;
    border-radius: 18px;
    overflow: hidden;
    min-height: 156px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 10px 20px rgba(56, 46, 170, 0.16);
}

.mini-card--accent {
    background: linear-gradient(180deg, var(--orange) 0%, #ff9a63 58%, #7b68fa 58%, #7b68fa 100%);
}

.mini-card__img {
    height: 92px;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.04));
}

.mini-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mini-card p {
    min-height: 64px;
    padding: 10px 12px 14px;
    font-size: 11px;
    line-height: 1.35;
    font-weight: 600;
    color: #fff;
}

/* ── STATS (устарело, заменено на stats-strip в index.css) ── */

/* ── BUTTONS ─────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 26px;
    background: linear-gradient(180deg, var(--orange), var(--orange-dark));
    color: #fff;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 10px 24px rgba(255, 122, 54, 0.25);
    transition: transform .2s ease, box-shadow .2s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(255, 122, 54, 0.32);
}

.btn--small {
    min-height: 38px;
    padding: 0 20px;
    font-size: 13px;
}

.btn--tiny {
    min-height: 34px;
    padding: 0 18px;
    font-size: 12px;
}

.btn--logout {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: none;
}

.btn--logout:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-1px);
}

/* ── SOCIALS ─────────────────────────────── */
.socials {
    display: flex;
    flex-direction: row;
    gap: 15px;
}

.socials a,
.footer__right a {
    width: 50px;
    height: 50px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #fff;
    font-size: 12px;
    transition: .2s ease;
}

.socials a:hover,
.footer__right a:hover {
    background: rgba(255, 255, 255, 0.12);
}

/* ── REUSABLE UI: controls, circle-btn, tags ── */
.controls {
    display: flex;
    gap: 10px;
    transition: opacity 0.3s ease;
}

.controls--mobile {
    display: none;
    justify-content: flex-end;
    margin-top: 14px;
}

.circle-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--purple);
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.circle-btn--accent {
    background: var(--orange);
}

.circle-btn:disabled {
    opacity: 0.15;
    cursor: not-allowed;
    filter: grayscale(1);
    pointer-events: none;
}

.tags {
    margin-top: 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
}

.tag {
    min-width: 180px;
    min-height: 38px;
    padding: 10px 20px;
    border-radius: 999px;
    background: #6e67f7;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    justify-content: center;
    box-shadow: 0 8px 18px rgba(97, 87, 235, 0.16);
    transition: all 0.3s ease;
}

.tag.active {
    background: var(--orange);
    box-shadow: 0 8px 20px rgba(255, 122, 54, 0.3);
    transform: translateY(-2px);
}

/* ── FOOTER ──────────────────────────────── */
.footer {
    background: linear-gradient(135deg, var(--purple-dark), #5d58f5);
    color: #fff;
    padding: 24px 0;
}

.footer__inner {
    display: grid;
    grid-template-columns: 1fr 1.2fr auto;
    gap: 24px;
    align-items: center;
}

.footer__left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.footer-logos {
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer__center {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.footer__center a {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.88);
}

.footer__right {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ── SCROLL-TOP ──────────────────────────── */
.scroll-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: none;
    display: grid;
    place-items: center;
    background: linear-gradient(180deg, var(--orange), var(--orange-dark));
    color: #fff;
    font-size: 24px;
    font-weight: 800;
    box-shadow: 0 10px 24px rgba(255, 122, 54, 0.28);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity .25s ease, transform .25s ease, visibility .25s ease;
    z-index: 1000;
}

.scroll-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(255, 122, 54, 0.34);
}

/* ── GENERIC MODAL (news + portfolio) ────── */
.content-modal {
    border: none;
    background: transparent;
    padding: 0;
    max-width: 1000px;
    width: 90%;
    max-height: 85vh;
    position: fixed;
    inset: 0;
    margin: auto;
    outline: none;
}

.content-modal::backdrop {
    background: rgba(10, 10, 20, 0.7);
    backdrop-filter: blur(6px);
}

.content-modal__container {
    background: var(--white);
    border-radius: 32px;
    overflow: hidden;
    position: relative;
    height: 100%;
}

.content-modal__close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #f1f2fb;
    font-size: 30px;
    line-height: 1;
    z-index: 10;
    display: grid;
    place-items: center;
    transition: all 0.2s ease;
}

.content-modal__close:hover { background: #e6e8f8; color: var(--orange); }

.content-modal__grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    height: 85vh;
}

.content-modal__image-side {
    background: #f0f2ff;
}

.content-modal__image-side img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.content-modal__content-side {
    padding: 60px 50px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.content-modal__content-side h2 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 24px;
}

.content-modal__text {
    font-size: 16px;
    line-height: 1.8;
    color: var(--muted);
    flex-grow: 1;
}

/* ── PAGINATION (shared) ─────────────────── */
.pagination-numbers {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 32px;
}

.page-num {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: var(--white);
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid #d8dbef;
}

.page-num:hover { background: #f0f2ff; }

.page-num.active {
    background: var(--purple);
    color: #fff;
    border-color: var(--purple);
}

@media (max-width: 900px) {
    .content-modal__grid { grid-template-columns: 1fr; }
    .content-modal__image-side { height: 300px; }
    .content-modal__content-side { padding: 30px; }
}

@media (max-width: 480px) {
    .content-modal {
        width: 96%;
        max-height: 92vh;
    }

    .content-modal__container {
        border-radius: 20px;
    }

    .content-modal__content-side {
        padding: 24px 20px;
    }

    .content-modal__content-side h2 {
        font-size: 22px;
        margin-bottom: 16px;
    }

    .content-modal__text {
        font-size: 14px;
    }

    .content-modal__close {
        top: 12px;
        right: 12px;
        width: 36px;
        height: 36px;
        font-size: 24px;
    }

    .page-num {
        width: 38px;
        height: 38px;
        font-size: 13px;
    }
}

/* ── LOGIN / AUTH MODAL ──────────────────── */
.login-modal {
    position: fixed;
    inset: 0;
    margin: auto;
    width: min(460px, calc(100% - 32px));
    max-width: 460px;
    max-height: calc(100dvh - 32px);
    border: none;
    padding: 0;
    background: transparent;
    overflow: visible;
}

.login-modal::backdrop {
    background: rgba(10, 10, 20, 0.55);
    backdrop-filter: blur(4px);
}

.login-modal__content {
    position: relative;
    background: #ffffff;
    color: #121212;
    border-radius: 28px;
    padding: 34px 30px 30px;
    box-shadow: 0 20px 60px rgba(24, 24, 37, 0.24);
}

.login-modal__close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #f1f2fb;
    color: #29293a;
    font-size: 24px;
    line-height: 1;
    z-index: 2;
    transition: .2s ease;
}

.login-modal__close:hover {
    background: #e6e8f8;
}

.login-modal h2 {
    font-size: 30px;
    line-height: 1.05;
    font-weight: 800;
    margin-bottom: 10px;
}

.login-modal p {
    color: #5f5f71;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 24px;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.login-form__group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.login-form__group span {
    font-size: 14px;
    font-weight: 600;
    color: #2a2a35;
}

.login-form__group input {
    width: 100%;
    height: 52px;
    border: 1px solid #d8dbef;
    border-radius: 16px;
    padding: 0 16px;
    font: inherit;
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.login-form__group input:focus {
    border-color: #5d58f5;
    box-shadow: 0 0 0 4px rgba(93, 88, 245, 0.12);
}

.login-form__group select {
    width: 100%;
    height: 52px;
    border: 1px solid #d8dbef;
    border-radius: 16px;
    padding: 0 16px;
    font: inherit;
    outline: none;
    background: #fff;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.login-form__group select:focus {
    border-color: #5d58f5;
    box-shadow: 0 0 0 4px rgba(93, 88, 245, 0.12);
}

.login-form__submit {
    width: 100%;
    margin-top: 8px;
}

.modal-view[hidden] {
    display: none !important;
}

.modal-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 18px;
    color: #5d58f5;
    font-size: 14px;
    font-weight: 600;
    transition: .2s ease;
}

.modal-back:hover {
    color: #433de0;
}

.modal-links {
    margin-top: 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
}

.modal-links--single {
    margin-top: 16px;
}

.modal-link {
    color: #5d58f5;
    font-size: 14px;
    font-weight: 600;
    transition: .2s ease;
}

.modal-link:hover {
    color: #433de0;
    text-decoration: underline;
}

.auth-message {
    margin-bottom: 18px;
    padding: 12px 14px;
    border-radius: 14px;
    font-size: 14px;
    line-height: 1.4;
}

.auth-message--error {
    background: #fff0f0;
    color: #b42318;
    border: 1px solid #f4c7c7;
}

.auth-message--success {
    background: #eefbf3;
    color: #157347;
    border: 1px solid #bfe7cc;
}

/* ── HEADER AUTH / USER ──────────────────── */
.header__auth {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
}

.user-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px 8px 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 24px rgba(35, 28, 120, 0.18);
}

.user-badge__avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: linear-gradient(180deg, #ff9b62, #ff7a37);
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    flex-shrink: 0;
}

.user-badge__info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    line-height: 1.1;
}

.user-badge__label {
    font-size: 10px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.72);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.user-badge__name {
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
}

.logout-form {
    margin: 0;
}

/* ── USER MENU DROPDOWN ──────────────────── */
.user-menu {
    position: relative;
}

.user-badge--button {
    border: none;
    cursor: pointer;
    text-align: left;
    transition: .2s ease;
}

.user-badge--button:hover {
    background: rgba(255, 255, 255, 0.18);
}

.user-badge__arrow {
    margin-left: 4px;
    font-size: 12px;
    color: #fff;
    transition: transform .2s ease;
}

.user-menu.is-open .user-badge__arrow {
    transform: rotate(180deg);
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 220px;
    padding: 8px;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 18px 40px rgba(25, 22, 79, 0.18);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
    z-index: 50;
}

.user-menu.is-open .user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.user-dropdown__form {
    margin: 0;
}

.user-dropdown__item {
    width: 100%;
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 0 14px;
    border: none;
    border-radius: 12px;
    background: transparent;
    color: #1f2333;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: .2s ease;
}

.user-dropdown__item:hover {
    background: #f3f5ff;
}

.user-dropdown__item--danger {
    color: #d94841;
}

.user-dropdown__item--danger:hover {
    background: #fff1f0;
}

/* ═══════════════════════════════════════════
   RESPONSIVE — общие медиа-запросы
   ═══════════════════════════════════════════ */

@media (max-width: 1180px) {
    .header {
        position: sticky;
    }

    .header__inner {
        flex-wrap: wrap;
        position: relative;
        padding-right: 48px;
        gap: 10px;
    }

    .header__brand {
        min-width: auto;
    }

    .header__auth {
        margin-left: auto;
    }

    .hero__content,
    .footer__inner {
        grid-template-columns: 1fr;
    }

    .project-list,
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .mini-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .tags {
        grid-template-columns: repeat(3, max-content);
    }

    .nav {
        display: none;
    }

    .hero__left,
    .hero__right {
        min-height: auto;
    }

    .hero__right {
        display: none;
    }

    .socials {
        flex-direction: row;
    }

    .hero-cards-wrap {
        margin: 14px 0 0;
    }

    .footer__center {
        justify-content: flex-start;
    }

    .project-list, .team-grid {
        grid-template-columns: repeat(2, 1fr);
        min-height: auto;
    }
}

@media (max-width: 768px) {
    .container {
        width: min(var(--container), calc(100% - 28px));
    }

    .hero {
        border-radius: 0 0 24px 24px;
        padding: 18px 10px 0;
    }

    .hero__left h1 {
        font-size: 34px;
    }

    .hero-illustration {
        min-height: 200px;
        border-radius: 20px;
    }

    .hero-illustration img {
        border-radius: 20px;
    }

    .section-visuals,
    .project-list,
    .mini-cards,
    .tags,
    .team-grid {
        grid-template-columns: 1fr;
    }

    .section-visuals {
        order: 2;
    }

    .section-text {
        order: 1;
    }

    .hero__actions {
    .section-text p {
        max-width: none;
    }

    .hero__actions {
        gap: 14px;
    }

    .socials {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .hero-cards-wrap {
        padding: 10px;
        border-radius: 20px;
    }

    .controls--mobile {
        display: flex;
    }

    .section-top {
        align-items: flex-start;
        flex-direction: column;
    }

    .controls--top {
        display: none;
    }

    .project-card__image,
    .member-card__photo {
        height: 260px;
    }

    .footer__right {
        justify-content: flex-start;
    }

    .scroll-top {
        right: 16px;
        bottom: 16px;
        width: 46px;
        height: 46px;
        font-size: 20px;
    }

    .login-modal {
        width: calc(100% - 24px);
        max-height: calc(100dvh - 24px);
    }

    .login-modal__content {
        padding: 28px 20px 22px;
        border-radius: 22px;
    }

    .login-modal h2 {
        font-size: 24px;
    }

    .header__inner {
        gap: 10px;
        padding-right: 44px;
    }

    .header__auth {
        gap: 8px;
    }

    .user-badge {
        max-width: 100%;
    }

    .user-badge__name {
        white-space: normal;
    }

    .user-dropdown {
        right: auto;
        left: 0;
        min-width: 200px;
    }

    .project-list, .team-grid {
        grid-template-columns: 1fr;
    }

    .tag {
        min-width: 100%;
    }
}

/* ═══════════════════════════════════════════
   BURGER MENU
   ═══════════════════════════════════════════ */

.burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    padding: 6px;
    background: rgba(255,255,255,0.12);
    border-radius: 10px;
    cursor: pointer;
    z-index: 110;
    flex-shrink: 0;
}

.burger span {
    display: block;
    width: 100%;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: transform .25s ease, opacity .25s ease;
}

.burger.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.burger.is-open span:nth-child(2) {
    opacity: 0;
}

.burger.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav {
    display: none;
    position: fixed;
    inset: 0;
    background: linear-gradient(135deg, #5c57f5 0%, #4c44e8 100%);
    z-index: 100;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 28px;
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s ease, visibility .3s ease;
}

.mobile-nav.is-open {
    opacity: 1;
    visibility: visible;
    display: flex;
}

.mobile-nav a {
    color: #fff;
    font-size: 22px;
    font-weight: 700;
    opacity: 0.85;
    transition: opacity .2s ease;
}

.mobile-nav a:hover,
.mobile-nav a.active {
    opacity: 1;
    color: #ffd9c7;
}

.mobile-nav__cta {
    margin-top: 12px;
    padding: 12px 32px !important;
    background: var(--orange) !important;
    border-radius: 999px !important;
    color: #fff !important;
    font-size: 16px !important;
    opacity: 1 !important;
}

.mobile-nav__close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,0.12);
    color: #fff;
    font-size: 28px;
    line-height: 1;
    display: grid;
    place-items: center;
}

@media (max-width: 1180px) {
    .burger {
        display: flex;
        position: absolute;
        top: 50%;
        right: 0;
        transform: translateY(-50%);
    }
}

/* На десктопе всегда скрыто */
@media (min-width: 1181px) {
    .mobile-nav {
        display: none !important;
    }
}

/* ═══════════════════════════════════════════
   RESPONSIVE — телефоны (480px)
   ═══════════════════════════════════════════ */

@media (max-width: 480px) {
    .container {
        width: calc(100% - 20px);
    }

    .hero {
        border-radius: 0 0 18px 18px;
        padding: 16px 8px 0;
    }

    .header__inner {
        padding: 4px 40px 4px 0;
        gap: 6px;
    }

    .header__brand {
        min-width: auto;
        gap: 6px;
    }

    .brand-text p,
    .footer-brand p {
        font-size: 8px;
        max-width: 130px;
    }

    .brand-text span,
    .footer-brand span {
        font-size: 10px;
    }

    .hero__left {
        padding: 10px 4px 18px 4px;
    }

    .hero__left h1 {
        font-size: 26px;
    }

    .hero__left p {
        font-size: 13px;
        margin-top: 12px;
        line-height: 1.5;
    }

    .hero__actions {
        margin-top: 18px;
        gap: 12px;
    }

    .hero__actions .btn {
        min-height: 44px;
        padding: 0 20px;
        font-size: 13px;
    }

    .hero-illustration {
        min-height: 160px;
        border-radius: 14px;
    }

    .hero-illustration img {
        object-fit: cover;
        border-radius: 14px;
    }

    .hero__right {
        min-height: auto;
    }

    .hero-cards-wrap {
        margin: 8px 0 0;
        padding: 8px;
        border-radius: 14px;
    }

    .mini-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .mini-card {
        min-height: 110px;
        border-radius: 12px;
    }

    .mini-card p {
        min-height: 48px;
        padding: 6px 8px 10px;
        font-size: 10px;
    }

    .mini-card__img {
        height: 60px;
    }

    .section-text h2,
    .projects h2,
    .team-page h2 {
        font-size: 24px;
        margin-bottom: 12px;
    }

    .section-text p {
        font-size: 14px;
        line-height: 1.5;
        max-width: none;
    }

    .placeholder-card {
        min-height: 160px;
        border-radius: 16px;
        width: 100%;
    }

    .placeholder-card img {
        border-radius: 16px;
    }

    .section-visuals {
        gap: 10px;
    }

    .section-grid {
        margin-top: 24px;
        gap: 16px;
    }

    .section-text {
        order: 1;
    }

    .section-visuals {
        order: 2;
    }

    .projects {
        margin-top: 32px;
    }

    .project-list {
        margin-top: 16px;
        gap: 14px;
        min-height: auto;
    }

    .project-card__image {
        height: 200px;
        border-radius: 16px;
    }

    .project-card__image img {
        border-radius: 16px;
    }

    .project-card h3 {
        font-size: 18px;
        margin-top: 10px;
    }

    .project-card p {
        font-size: 12px;
        min-height: auto;
        margin-top: 6px;
    }

    .member-card__photo {
        height: 240px;
        border-radius: 16px;
    }

    .member-card h3 {
        font-size: 18px;
    }

    .member-card h4 {
        font-size: 14px;
    }

    .controls--mobile {
        margin-top: 10px;
    }

    .tags {
        gap: 8px;
        margin-top: 12px;
        margin-bottom: 16px;
    }

    .tag {
        min-width: auto;
        min-height: 32px;
        padding: 8px 16px;
        font-size: 12px;
    }

    .footer {
        padding: 18px 0;
    }

    .footer__inner {
        gap: 14px;
    }

    .footer__center {
        gap: 16px;
    }

    .footer__center a {
        font-size: 11px;
    }

    .footer__right {
        justify-content: center;
    }

    .scroll-top {
        right: 12px;
        bottom: 12px;
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .user-badge {
        padding: 6px 10px 6px 6px;
        gap: 6px;
    }

    .user-badge__avatar {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }

    .user-badge__name {
        font-size: 11px;
    }

    .user-badge__label {
        font-size: 9px;
    }

    .btn--small {
        min-height: 34px;
        padding: 0 16px;
        font-size: 12px;
    }

    .header__auth {
        gap: 8px;
    }

    .mobile-nav a {
        font-size: 20px;
    }
}
