﻿@font-face {
    font-family: Poppins-Regular;
    src: url(../fonts/poppins/Poppins-Regular.ttf);
}

@font-face {
    font-family: Poppins-ExtraBold;
    src: url(../fonts/poppins/Poppins-ExtraBold.ttf);
}

:root {
    --bg: #f6f8fb;
    --surface: #ffffff;
    --surface-soft: #eef4fb;
    --ink: #172033;
    --muted: #627188;
    --line: #d9e2ee;
    --brand: #2563eb;
    --brand-dark: #173b8f;
    --accent: #81bd12;
    --gold: #f1c84b;
    --shadow: 0 22px 60px rgba(23, 32, 51, 0.14);
}

* {
    box-sizing: border-box;
}

html {
    min-width: 320px;
    background: var(--bg);
    color: var(--ink);
    font-family: Poppins-Regular, Segoe UI, Arial, sans-serif;
    letter-spacing: 0;
}

body {
    min-height: 100vh;
    margin: 0;
    background:
        linear-gradient(90deg, rgba(37, 99, 235, 0.08) 1px, transparent 1px),
        linear-gradient(180deg, rgba(37, 99, 235, 0.06) 1px, transparent 1px),
        var(--bg);
    background-size: 48px 48px;
}

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

a:focus-visible {
    outline: 3px solid rgba(129, 189, 18, 0.55);
    outline-offset: 4px;
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    padding: 20px 0 12px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.brand img {
    display: block;
    width: 48px;
    height: 48px;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
}

.brand-text strong {
    font-family: Poppins-ExtraBold, Segoe UI, Arial, sans-serif;
    font-size: 1.35rem;
}

.brand-text span {
    color: var(--muted);
    font-size: 0.88rem;
}

.login-link,
.primary-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border-radius: 8px;
    background: var(--brand);
    color: #ffffff;
    font-weight: 700;
    padding: 10px 18px;
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.20);
}

.login-link:hover,
.primary-action:hover {
    background: var(--brand-dark);
}

main {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 0.98fr) minmax(340px, 0.82fr);
    gap: 34px;
    align-items: center;
    min-height: auto;
    padding: 72px 0 48px;
}

.hero-copy {
    max-width: 760px;
}

.eyebrow {
    width: fit-content;
    margin: 0 0 14px;
    border-left: 4px solid var(--accent);
    padding: 3px 0 3px 12px;
    color: var(--brand-dark);
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.82rem;
}

h1 {
    max-width: 13ch;
    margin: 0;
    color: var(--ink);
    font-family: Poppins-ExtraBold, Segoe UI, Arial, sans-serif;
    font-size: clamp(2.55rem, 6.1vw, 4.85rem);
    line-height: 1.02;
}

.hero-lead {
    max-width: 660px;
    margin: 22px 0 0;
    color: var(--muted);
    font-size: 1.2rem;
    line-height: 1.65;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    margin-top: 24px;
}

.action-note {
    max-width: 280px;
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.45;
}

.system-visual {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.84);
    box-shadow: var(--shadow);
    width: min(100%, 500px);
    justify-self: end;
}

.visual-topline {
    display: flex;
    gap: 8px;
    border-bottom: 1px solid var(--line);
    padding: 14px 16px;
}

.visual-topline span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--line);
}

.visual-topline span:nth-child(1) {
    background: var(--brand);
}

.visual-topline span:nth-child(2) {
    background: var(--accent);
}

.visual-topline span:nth-child(3) {
    background: var(--gold);
}

.visual-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 16px;
}

.visual-card {
    min-height: 118px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    padding: 16px;
    min-width: 0;
}

.visual-card-wide {
    grid-column: 1 / -1;
    min-height: 142px;
    background: var(--surface-soft);
}

.visual-card span {
    display: block;
    color: var(--muted);
    font-size: 0.86rem;
}

.visual-card strong {
    display: block;
    margin-top: 12px;
    font-family: Poppins-ExtraBold, Segoe UI, Arial, sans-serif;
    font-size: clamp(1.1rem, 2.25vw, 1.95rem);
    line-height: 1.1;
    overflow-wrap: anywhere;
}

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

.benefits article {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.88);
    padding: 22px;
}

.benefit-index {
    color: var(--brand);
    font-weight: 800;
    font-size: 0.86rem;
}

.benefits h2 {
    margin: 16px 0 10px;
    font-family: Poppins-ExtraBold, Segoe UI, Arial, sans-serif;
    font-size: 1.22rem;
}

.benefits p {
    margin: 0;
    color: var(--muted);
    line-height: 1.58;
}

.site-footer {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    border-top: 1px solid var(--line);
    padding: 22px 0 28px;
    color: var(--muted);
    font-size: 0.92rem;
}

.site-footer span:first-child {
    color: var(--ink);
    font-weight: 800;
}

@media (max-width: 900px) {
    .hero {
        grid-template-columns: 1fr;
        min-height: auto;
        padding: 34px 0 34px;
    }

    .system-visual {
        max-width: 620px;
        justify-self: start;
    }

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

@media (max-width: 560px) {
    .site-header {
        align-items: flex-start;
        flex-direction: column;
        width: min(100% - 28px, 1180px);
        padding-top: 18px;
    }

    .login-link,
    .primary-action {
        width: 100%;
    }

    main,
    .site-footer {
        width: min(100% - 28px, 1180px);
    }

    h1 {
        max-width: 12ch;
        font-size: 2.38rem;
    }

    .hero-lead {
        font-size: 1.05rem;
    }

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

    .system-visual {
        display: none;
    }

    .visual-card-wide {
        grid-column: auto;
    }

    .site-footer {
        flex-direction: column;
    }
}
