
:root {
    --red: #df001b;
    --red-dark: #a60016;
    --red-deep: #7d0012;
    --text: #101010;
    --muted: #5c6878;
    --border: #e5e8ec;
    --light: #f4f6f8;
    --white: #ffffff;
    --shadow: 0 8px 28px rgba(20, 31, 45, .10);
}

* {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    background: #f6f7f8;
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.45;
}

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

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

button,
input {
    font: inherit;
}

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

/* HEADER */

.topbar {
    position: relative;
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(circle at 35% 0%, rgba(255, 45, 60, .50), transparent 30%),
        linear-gradient(115deg, #d6001c 0%, #aa0017 52%, #820011 100%);
    min-height: 120px;
}

.topbar-wave,
.footer-wave {
    position: absolute;
    left: -10%;
    right: -10%;
    height: 70px;
    border-radius: 50%;
    pointer-events: none;
    opacity: .20;
}

.topbar-wave {
    bottom: -48px;
    background: #ff1734;
    transform: rotate(-1deg);
}

.topbar-inner {
    min-height: 120px;
    display: grid;
    grid-template-columns: minmax(330px, 1.45fr) .8fr 1fr .85fr 1fr;
    align-items: center;
}

.brand {
    display: flex;
    align-items: center;
    padding-right: 28px;
}

.brand img {
    width: min(100%, 490px);
    max-height: 104px;
    object-fit: contain;
    object-position: left center;
}

.top-slogan,
.top-contact {
    min-height: 58px;
    padding: 0 26px;
    border-left: 1px solid rgba(255,255,255,.45);
    display: flex;
    justify-content: center;
    flex-direction: column;
}

.top-slogan span {
    display: block;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: .03em;
}

.top-contact {
    flex-direction: row;
    align-items: center;
    gap: 14px;
    font-size: 15px;
    white-space: nowrap;
}

.top-contact div {
    display: flex;
    flex-direction: column;
}

.top-contact small {
    display: block;
    margin-top: 4px;
    font-size: 13px;
    font-weight: 400;
}

.top-icon {
    font-size: 31px;
    line-height: 1;
}

/* MAIN */

.page {
    padding: 24px 0 18px;
}

.main-grid {
    display: grid;
    grid-template-columns: minmax(390px, .95fr) minmax(620px, 1.7fr);
    gap: 18px;
    align-items: stretch;
}

.login-card,
.hero-card,
.feature-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: 0 4px 18px rgba(20, 31, 45, .07);
}

.login-card {
    padding: 22px 30px 18px;
}

.login-heading {
    display: flex;
    gap: 22px;
    align-items: flex-start;
}

.round-icon,
.feature-icon {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(145deg, #ed001f, #c40019);
    color: #fff;
}

.round-icon {
    width: 94px;
    height: 94px;
    font-size: 40px;
    box-shadow: inset 0 -8px 18px rgba(120, 0, 12, .18);
}

.login-heading h1 {
    margin: 6px 0 0;
    font-size: clamp(28px, 2.3vw, 40px);
    line-height: 1.02;
    letter-spacing: -.025em;
}

.login-heading h1 span {
    color: var(--red);
}

.heading-line {
    width: 100%;
    max-width: 330px;
    height: 3px;
    margin-top: 18px;
    background: linear-gradient(90deg, var(--red), rgba(223,0,27,.10));
}

.lead {
    margin: 24px 0 20px;
    color: #566273;
    font-size: 18px;
    line-height: 1.45;
}

.form-message {
    margin: 0 0 16px;
    padding: 11px 13px;
    border: 1px solid #ffc6cc;
    background: #fff1f3;
    color: #a40014;
    border-radius: 7px;
    font-size: 14px;
}

.login-form label {
    display: block;
    margin: 14px 0 8px;
    font-size: 18px;
    font-weight: 700;
}

.input-wrap {
    position: relative;
}

.field-icon {
    position: absolute;
    left: 22px;
    top: 50%;
    transform: translateY(-50%);
    color: #526171;
    font-size: 25px;
    z-index: 1;
}

.input-wrap input {
    width: 100%;
    height: 64px;
    padding: 0 18px 0 70px;
    border: 1.5px solid #ff3248;
    border-radius: 8px;
    background: #fff;
    outline: none;
    color: #17202a;
    font-size: 18px;
    box-shadow: inset 0 0 12px rgba(255,0,31,.03);
    transition: .16s ease;
}

.input-wrap input::placeholder {
    color: #7c8794;
}

.input-wrap input:focus {
    border-color: var(--red);
    box-shadow: 0 0 0 3px rgba(223,0,27,.10);
}

.login-button {
    width: 100%;
    min-height: 66px;
    margin-top: 14px;
    border: 0;
    border-radius: 8px;
    background: linear-gradient(180deg, #ef001f, #d5001b);
    color: #fff;
    cursor: pointer;
    font-weight: 700;
    font-size: 25px;
    box-shadow: 0 9px 20px rgba(190, 0, 24, .18);
    transition: transform .12s ease, filter .12s ease;
}

.login-button:hover {
    filter: brightness(1.03);
}

.login-button:active {
    transform: translateY(1px);
}

.button-icon {
    display: inline-block;
    margin-right: 16px;
    font-size: 34px;
    vertical-align: -2px;
}

.or {
    position: relative;
    margin: 18px 0;
    text-align: center;
    color: #677180;
}

.or::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 1px;
    background: #dce1e6;
}

.or span {
    position: relative;
    padding: 0 16px;
    background: #fff;
}

.qr-box {
    min-height: 80px;
    padding: 12px 14px;
    border-radius: 8px;
    background: #f3f5f7;
    display: grid;
    grid-template-columns: 50px 1fr 18px;
    gap: 12px;
    align-items: center;
    transition: background .15s ease;
}

.qr-box:hover {
    background: #eceff2;
}

.qr-placeholder {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border: 2px dashed #4b5967;
    color: #354250;
    font-size: 27px;
    font-weight: 700;
}

.qr-text {
    min-width: 0;
}

.qr-text strong,
.qr-text small {
    display: block;
}

.qr-text strong {
    font-size: 16px;
}

.qr-text small {
    margin-top: 3px;
    color: #667383;
    font-size: 14px;
}

.chevron,
.feature-arrow {
    color: var(--red);
    font-size: 38px;
    line-height: 1;
}

.login-info {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-top: 16px;
    color: #637080;
    font-size: 15px;
}

.info-circle {
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--red);
    color: #fff;
    font-weight: 700;
    font-size: 23px;
}

.right-column {
    min-width: 0;
}

.hero-card {
    min-height: 370px;
    overflow: hidden;
    position: relative;
    background:
        radial-gradient(circle at 74% 34%, rgba(90,106,120,.25), transparent 22%),
        linear-gradient(105deg, #0c141a 0%, #101920 48%, #131c22 100%);
    color: #fff;
    display: grid;
    grid-template-columns: minmax(390px, 1.08fr) minmax(330px, .92fr);
}

.hero-copy {
    position: relative;
    z-index: 2;
    padding: 34px 20px 32px 36px;
}

.hero-copy h2 {
    margin: 0 0 26px;
    font-size: clamp(32px, 3vw, 48px);
    line-height: 1.08;
    letter-spacing: -.02em;
}

.hero-copy h2 span {
    color: #ed001f;
}

.hero-copy ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.hero-copy li {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 18px 0;
    font-size: clamp(17px, 1.6vw, 24px);
    font-weight: 700;
    white-space: nowrap;
}

.hero-copy li span {
    flex: 0 0 auto;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--red);
    color: #fff;
    font-size: 26px;
}

.hero-image {
    position: relative;
    overflow: hidden;
    min-height: 370px;
}

.hero-image::before {
    content: "";
    position: absolute;
    left: -48px;
    top: 0;
    bottom: 0;
    width: 130px;
    z-index: 1;
    background: linear-gradient(90deg, #111a21 0%, rgba(17,26,33,.88) 40%, rgba(17,26,33,0) 100%);
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 65% center;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 16px;
}

.feature-card {
    min-height: 162px;
    padding: 20px 20px 20px 24px;
    display: grid;
    grid-template-columns: 82px 1fr 26px;
    gap: 18px;
    align-items: center;
    transition: transform .15s ease, box-shadow .15s ease;
}

.feature-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.feature-icon {
    width: 82px;
    height: 82px;
    font-size: 41px;
    font-weight: 700;
}

.feature-content h3 {
    margin: 0 0 8px;
    font-size: 23px;
    letter-spacing: -.02em;
}

.feature-content p {
    margin: 0;
    color: #5e6a7b;
    font-size: 17px;
    line-height: 1.35;
}

/* FOOTER */

.footer {
    position: relative;
    overflow: hidden;
    color: #fff;
    background: linear-gradient(115deg, #d1001c, #9f0017 70%, #7d0012);
}

.footer-wave {
    bottom: -46px;
    background: #ff1936;
    transform: rotate(1deg);
}

.footer-grid {
    min-height: 118px;
    display: grid;
    grid-template-columns: 1.05fr .95fr .9fr 1.15fr;
    align-items: center;
}

.footer-item {
    min-height: 62px;
    padding: 0 34px;
    border-left: 1px solid rgba(255,255,255,.45);
    display: flex;
    align-items: center;
    gap: 18px;
}

.footer-item:first-child {
    border-left: 0;
    padding-left: 0;
}

.footer-item div {
    display: flex;
    flex-direction: column;
}

.footer-item strong {
    font-size: 17px;
}

.footer-item span:not(.footer-icon) {
    margin-top: 2px;
    font-size: 15px;
}

.footer-icon {
    font-size: 40px;
    line-height: 1;
}

/* TABLET */

@media (max-width: 1180px) {
    .topbar-inner {
        grid-template-columns: 1.4fr .8fr 1fr;
        gap: 0;
    }

    .topbar-inner .top-contact:nth-of-type(3),
    .topbar-inner .top-contact:nth-of-type(4) {
        display: none;
    }

    .main-grid {
        grid-template-columns: minmax(340px, .9fr) minmax(520px, 1.4fr);
    }

    .hero-card {
        grid-template-columns: 1fr;
    }

    .hero-image {
        position: absolute;
        inset: 0 0 0 48%;
        opacity: .58;
    }

    .hero-copy {
        max-width: 70%;
    }

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

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

    .footer-item:nth-child(3) {
        border-left: 0;
    }
}

/* MOBILE */

@media (max-width: 820px) {
    .container {
        width: min(100% - 24px, 680px);
    }

    .topbar {
        min-height: auto;
    }

    .topbar-inner {
        min-height: auto;
        padding: 10px 0 12px;
        display: flex;
        justify-content: center;
    }

    .brand {
        width: 100%;
        justify-content: center;
        padding: 0;
    }

    .brand img {
        width: min(92vw, 460px);
        max-height: 94px;
        object-position: center;
    }

    .top-slogan,
    .top-contact {
        display: none;
    }

    .page {
        padding: 14px 0;
    }

    .main-grid {
        display: flex;
        flex-direction: column;
        gap: 14px;
    }

    .login-card {
        order: 1;
        padding: 20px 18px 16px;
    }

    .right-column {
        order: 2;
    }

    .login-heading {
        gap: 15px;
        align-items: center;
    }

    .round-icon {
        width: 70px;
        height: 70px;
        font-size: 31px;
    }

    .login-heading h1 {
        margin: 0;
        font-size: clamp(25px, 7vw, 34px);
    }

    .heading-line {
        margin-top: 10px;
    }

    .lead {
        margin: 18px 0 16px;
        font-size: 16px;
    }

    .login-form label {
        font-size: 16px;
    }

    .input-wrap input {
        height: 58px;
        padding-left: 58px;
        font-size: 16px;
    }

    .field-icon {
        left: 18px;
        font-size: 22px;
    }

    .login-button {
        min-height: 60px;
        font-size: 21px;
    }

    .button-icon {
        font-size: 29px;
    }

    .qr-box {
        grid-template-columns: 42px 1fr 18px;
        padding: 11px;
    }

    .qr-placeholder {
        width: 40px;
        height: 40px;
        font-size: 23px;
    }

    .qr-text strong {
        font-size: 14px;
    }

    .qr-text small {
        font-size: 12px;
    }

    .hero-card {
        min-height: 330px;
        display: block;
    }

    .hero-image {
        inset: 0;
        opacity: .38;
    }

    .hero-image::before {
        left: 0;
        width: 100%;
        background: linear-gradient(90deg, rgba(9,15,20,.98), rgba(9,15,20,.82) 52%, rgba(9,15,20,.35));
    }

    .hero-copy {
        max-width: none;
        min-height: 330px;
        padding: 26px 20px;
    }

    .hero-copy h2 {
        font-size: clamp(29px, 8vw, 38px);
    }

    .hero-copy li {
        gap: 12px;
        margin: 14px 0;
        white-space: normal;
        font-size: 17px;
    }

    .hero-copy li span {
        width: 38px;
        height: 38px;
        font-size: 22px;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-top: 12px;
    }

    .feature-card {
        min-height: 120px;
        padding: 16px;
        grid-template-columns: 64px 1fr 20px;
        gap: 13px;
    }

    .feature-icon {
        width: 64px;
        height: 64px;
        font-size: 32px;
    }

    .feature-content h3 {
        font-size: 19px;
    }

    .feature-content p {
        font-size: 14px;
    }

    .feature-arrow {
        font-size: 30px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        padding: 12px 0;
    }

    .footer-item,
    .footer-item:first-child,
    .footer-item:nth-child(3) {
        min-height: 58px;
        padding: 10px 4px;
        border-left: 0;
        border-top: 1px solid rgba(255,255,255,.22);
    }

    .footer-item:first-child {
        border-top: 0;
    }

    .footer-icon {
        width: 44px;
        text-align: center;
        font-size: 31px;
    }
}

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

    .login-card {
        padding-left: 14px;
        padding-right: 14px;
    }

    .login-heading {
        align-items: flex-start;
    }

    .round-icon {
        width: 58px;
        height: 58px;
        font-size: 25px;
    }

    .login-heading h1 {
        font-size: 24px;
    }

    .hero-copy {
        padding-left: 17px;
        padding-right: 17px;
    }

    .feature-card {
        grid-template-columns: 58px 1fr 16px;
    }

    .feature-icon {
        width: 58px;
        height: 58px;
    }
}
