:root {
    --navy: #0a1c36;
    --navy-deep: #071525;
    --blue: #1b5fe8;
    --blue-hot: #3b8bff;
    --ink: #1d3046;
    --muted: #5b6b7c;
    --line: #dbe4ee;
    --paper: #f4f7fb;
    --white: #fff;
    --shadow: 0 24px 60px rgba(10, 28, 54, 0.12);
    --radius: 22px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: Roboto, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.55;
}

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

a { color: inherit; }

.m-wrap {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
}

.m-nav {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(7, 21, 37, 0.92);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.m-nav__inner {
    display: flex;
    align-items: center;
    gap: 24px;
    min-height: 72px;
}

.m-nav__brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    text-decoration: none;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.m-nav__brand img {
    height: 36px;
    width: auto;
}

.m-nav__links {
    display: flex;
    gap: 22px;
    margin-left: 12px;
}

.m-nav__links a {
    color: #c5d4e6;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
}

.m-nav__links a:hover { color: #fff; }

.m-nav__actions {
    display: flex;
    gap: 10px;
    margin-left: auto;
}

.m-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 16px;
    border: 0;
    border-radius: 999px;
    font: inherit;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
}

.m-btn--primary {
    background: var(--blue);
    color: var(--white);
}

.m-btn--primary:hover { background: #154cc0; }

.m-btn--ghost {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.m-btn--ghost:hover {
    background: rgba(255, 255, 255, 0.08);
}

.m-btn--light {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.m-btn--lg {
    min-height: 50px;
    padding: 0 22px;
}

.m-hero {
    background:
        radial-gradient(800px 360px at 10% 0%, rgba(59, 139, 255, 0.22), transparent 55%),
        linear-gradient(180deg, #0c2244 0%, var(--navy) 46%, var(--navy-deep) 100%);
    color: #e8f1ff;
    padding: 72px 0 80px;
}

.m-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 48px;
    align-items: center;
}

.m-kicker {
    margin: 0 0 10px;
    color: var(--blue-hot);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.m-hero h1,
.m-section h2,
.m-people h2,
.m-signup h2 {
    margin: 0 0 16px;
    font-size: clamp(32px, 4vw, 52px);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.08;
}

.m-lead,
.m-section__head > p,
.m-feature__copy > p,
.m-people p,
.m-signup p {
    color: #8fa8c8;
    font-size: 18px;
}

.m-hero .m-lead { max-width: 540px; }

.m-hero__cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 28px 0 26px;
}

.m-points {
    margin: 0;
    padding: 0;
    list-style: none;
}

.m-points li {
    position: relative;
    padding-left: 18px;
    margin: 0 0 8px;
    color: #c5d4e6;
    font-size: 14px;
    font-weight: 500;
}

.m-points li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--blue-hot);
}

.m-hero__photo {
    margin: 0;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.m-hero__photo img {
    width: 100%;
    height: 460px;
    object-fit: cover;
}

.m-strip {
    background: var(--white);
    border-bottom: 1px solid var(--line);
}

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

.m-strip p {
    margin: 0;
    color: var(--muted);
    font-weight: 600;
}

.m-strip ul {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.m-strip li {
    padding: 6px 12px;
    border-radius: 999px;
    background: #eef4ff;
    color: var(--blue);
    font-size: 12px;
    font-weight: 800;
}

.m-section { padding: 88px 0; }

.m-section__head {
    max-width: 640px;
    margin: 0 0 48px;
}

.m-section__head h2,
.m-people h2,
.m-signup h2 { color: var(--navy); }

.m-section__head > p,
.m-feature__copy > p,
.m-people p,
.m-signup p { color: var(--muted); }

.m-feature {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: 40px;
    align-items: center;
    margin-bottom: 56px;
}

.m-feature--flip { direction: rtl; }
.m-feature--flip > * { direction: ltr; }

.m-feature h3 {
    margin: 0 0 12px;
    color: var(--navy);
    font-size: 30px;
    letter-spacing: -0.03em;
}

.m-feature ul,
.m-people .m-points {
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
}

.m-feature li {
    position: relative;
    padding-left: 18px;
    margin: 0 0 8px;
    color: var(--ink);
    font-weight: 500;
}

.m-feature li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 9px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--blue);
}

.m-people .m-points li { color: var(--ink); }

.m-frame {
    margin: 0;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow);
}

.m-frame img {
    width: 100%;
    border-radius: 14px;
    border: 1px solid #eef2f6;
}

.m-mosaic { padding: 0 0 88px; }

.m-mosaic__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.m-frame figcaption {
    margin-top: 12px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
}

.m-people {
    padding: 0 0 40px;
}

.m-people__grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 40px;
    align-items: center;
}

.m-people figure {
    margin: 0;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.m-people img {
    width: 100%;
    height: 460px;
    object-fit: cover;
}

.m-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.m-steps li {
    padding: 28px 24px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--white);
}

.m-steps span {
    display: inline-block;
    margin-bottom: 16px;
    color: var(--blue);
    font-size: 13px;
    font-weight: 800;
}

.m-steps h3 {
    margin: 0 0 8px;
    font-size: 20px;
}

.m-steps p {
    margin: 0;
    color: var(--muted);
}

.m-signup {
    padding: 40px 0 100px;
}

.m-signup__grid {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 40px;
    align-items: start;
    padding: 40px;
    border-radius: 28px;
    background: var(--white);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.m-form {
    display: grid;
    gap: 14px;
}

.m-form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.m-form label {
    display: grid;
    gap: 6px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.m-form input,
.m-form select,
.m-form textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #f8fafc;
    color: var(--ink);
    font: inherit;
}

.m-form input:focus,
.m-form select:focus,
.m-form textarea:focus {
    outline: 2px solid rgba(27, 95, 232, 0.25);
    border-color: var(--blue);
    background: var(--white);
}

.m-form__status {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
}

.m-form__status.is-ok { color: #157347; }
.m-form__status.is-err { color: #b42318; }

.m-footer {
    padding: 28px 0 40px;
    color: var(--muted);
}

.m-footer__inner {
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

.m-footer a { font-weight: 700; text-decoration: none; }

.m-chat {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 50;
    width: min(380px, calc(100vw - 32px));
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}

.m-chat__launch {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 0 16px 0 8px;
    border: 0;
    border-radius: 999px;
    background: #1d2939;
    color: var(--white);
    font: inherit;
    font-weight: 800;
    box-shadow: 0 16px 40px rgba(10, 28, 54, 0.28);
    cursor: pointer;
}

.m-chat__avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #1aa594;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
}

.m-chat__brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.m-chat__panel {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--white);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.m-chat__panel header {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 14px 12px;
    background: #1d2939;
    color: #e8f1ff;
}

.m-chat__panel header p {
    margin: 4px 0 0;
    color: #8fa8c8;
    font-size: 12px;
}

.m-chat__panel header button {
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #fff;
    font-size: 22px;
    cursor: pointer;
}

.m-chat__log {
    height: 320px;
    overflow: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: #f8fafc;
}

.m-chat__bubble {
    max-width: 88%;
    padding: 10px 12px;
    border-radius: 14px;
    font-size: 14px;
    line-height: 1.45;
}

.m-chat__bubble--bot {
    background: var(--white);
    border: 1px solid var(--line);
    color: var(--ink);
}

.m-chat__bubble--user {
    margin-left: auto;
    background: var(--blue);
    color: var(--white);
}

.m-chat__typing {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 16px 10px;
    color: #6b7c8f;
    font-size: 12px;
    font-weight: 700;
    background: #f8fafc;
}

.m-chat__typing[hidden] {
    display: none !important;
}

.m-chat__typing span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #1aa594;
    animation: m-chat-dot 1s infinite ease-in-out;
}

.m-chat__typing span:nth-child(2) { animation-delay: 0.15s; }
.m-chat__typing span:nth-child(3) { animation-delay: 0.3s; }

@keyframes m-chat-dot {
    0%, 80%, 100% { opacity: 0.35; transform: translateY(0); }
    40% { opacity: 1; transform: translateY(-3px); }
}

.m-chat__panel form {
    display: flex;
    gap: 8px;
    padding: 12px;
    border-top: 1px solid var(--line);
}

.m-chat__panel input {
    flex: 1;
    min-width: 0;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    font: inherit;
}

.m-chat__panel form button {
    border: 0;
    border-radius: 12px;
    background: var(--blue);
    color: #fff;
    font-weight: 800;
    padding: 0 14px;
    cursor: pointer;
}

@media (max-width: 900px) {
    .m-nav__links { display: none; }

    .m-hero,
    .m-section,
    .m-mosaic { padding-left: 0; padding-right: 0; }

    .m-hero { padding: 40px 0 48px; }

    .m-hero__grid,
    .m-feature,
    .m-feature--flip,
    .m-people__grid,
    .m-signup__grid,
    .m-mosaic__grid,
    .m-steps,
    .m-form__row,
    .m-strip__inner {
        grid-template-columns: 1fr;
        direction: ltr;
    }

    .m-hero__photo img,
    .m-people img { height: 280px; }

    .m-signup__grid { padding: 24px; }
}
