*,
*::before,
*::after {
    box-sizing: border-box;
}

:root {
    --bg: #f4f7fa;
    --surface: #ffffff;
    --surface-soft: #f7fbfd;
    --text: #193552;
    --muted: #6f8198;
    --line: #dbe5ee;
    --primary: #1196ba;
    --primary-dark: #0f637a;
    --primary-soft: rgba(17, 150, 186, 0.12);
    --shadow: 0 20px 60px rgba(15, 53, 80, 0.08);
    --radius-lg: 28px;
    --radius-md: 20px;
    --radius-sm: 14px;
    --container: 1240px;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top right, rgba(17, 150, 186, 0.10), transparent 28%),
        linear-gradient(180deg, #f8fbfd 0%, #f3f6f8 100%);
}

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

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

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

.topbar {
    background: linear-gradient(90deg, var(--primary-dark) 0%, #1689a6 100%);
    color: #fff;
    font-size: 14px;
}

.topbar__inner {
    min-height: 54px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    padding: 10px 0;
}

.topbar__item {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.topbar__item--link {
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(255,255,255,0.12);
    transition: 0.2s ease;
}

.topbar__item--link:hover {
    background: rgba(255,255,255,0.22);
}

.header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(255,255,255,0.86);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(219,229,238,0.8);
}

.header__inner {
    min-height: 92px;
    display: flex;
    align-items: center;
    gap: 28px;
}

.header__brand img {
    width: 180px;
    height: auto;
}

.header__nav {
    display: flex;
    align-items: center;
    gap: 28px;
    margin-left: auto;
    margin-right: 8px;
    font-weight: 700;
}

.header__nav a {
    position: relative;
    color: var(--text);
}

.header__nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.2s ease;
}

.header__nav a:hover::after {
    width: 100%;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    padding: 0 26px;
    border-radius: 16px;
    font-weight: 700;
    font-size: 16px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

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

.button--primary {
    color: #fff;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    box-shadow: 0 16px 30px rgba(17, 150, 186, 0.28);
}

.button--secondary {
    color: var(--primary-dark);
    background: rgba(255,255,255,0.72);
    border-color: rgba(17, 150, 186, 0.35);
}

.button--ghost {
    color: var(--text);
    background: transparent;
    border-color: var(--line);
}

.button--full {
    width: 100%;
}

.hero {
    position: relative;
    overflow: hidden;
    padding: 54px 0 36px;
}

.hero::before,
.hero::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.hero::before {
    width: 520px;
    height: 520px;
    right: -140px;
    top: 60px;
    background: radial-gradient(circle, rgba(17,150,186,0.16) 0%, rgba(17,150,186,0) 72%);
}

.hero::after {
    width: 340px;
    height: 340px;
    left: -100px;
    bottom: -120px;
    background: radial-gradient(circle, rgba(15,99,122,0.12) 0%, rgba(15,99,122,0) 70%);
}

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

.hero__badge,
.section-head__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 34px;
    padding: 0 14px;
    border-radius: 999px;
    background: var(--primary-soft);
    color: var(--primary-dark);
    font-weight: 700;
    font-size: 14px;
}

.hero h1,
.section-head h2 {
    margin: 16px 0 0;
    line-height: 1.02;
    font-size: clamp(40px, 5vw, 68px);
    letter-spacing: -0.03em;
}

.section-head h2 {
    font-size: clamp(30px, 4vw, 46px);
}

.hero__text,
.section-head p,
.info-card p,
.feature-list,
.integration-box p,
.cta-card p,
.footer__brand p {
    font-size: 18px;
    line-height: 1.65;
    color: var(--muted);
}

.hero__actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.hero__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
}

.chip {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--line);
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
}

.hero__stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 28px;
}

.stat-card {
    padding: 18px 20px;
    background: rgba(255,255,255,0.84);
    border: 1px solid rgba(219,229,238,0.92);
    border-radius: 18px;
    box-shadow: var(--shadow);
}

.stat-card strong {
    display: block;
    font-size: 24px;
    line-height: 1.15;
    margin-bottom: 6px;
}

.stat-card span {
    display: block;
    color: var(--muted);
    font-size: 14px;
}

.hero__visual {
    position: relative;
}

.device-card {
    position: relative;
    padding: 28px;
    background: linear-gradient(180deg, rgba(255,255,255,0.94) 0%, rgba(247,251,253,0.96) 100%);
    border: 1px solid rgba(219,229,238,0.96);
    border-radius: 34px;
    box-shadow: var(--shadow);
}

.device-card__top {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
    margin-bottom: 22px;
}

.device-card__label {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--primary-dark);
}

.device-card__top h2 {
    margin: 8px 0 0;
    font-size: 28px;
    line-height: 1.1;
}

.status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
}

.status--ok {
    color: #19734b;
    background: rgba(25, 115, 75, 0.12);
}

.status--pending {
    color: #9a6c00;
    background: rgba(154, 108, 0, 0.14);
}

.phone-mockup {
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
    padding: 14px;
    border-radius: 32px;
    background: linear-gradient(135deg, #183850 0%, #081e30 100%);
    box-shadow: 0 20px 50px rgba(9, 30, 47, 0.26);
}

.phone-mockup__screen {
    min-height: 620px;
    border-radius: 24px;
    padding: 20px;
    background: linear-gradient(180deg, #f8fbfd 0%, #eef4f8 100%);
}

.mini-header {
    display: flex;
    gap: 7px;
    margin-bottom: 18px;
}

.mini-header__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #c8d6e2;
}

.app-card {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    padding: 18px 18px;
    border-radius: 20px;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: 0 10px 24px rgba(16, 40, 62, 0.06);
}

.app-card small {
    display: block;
    color: var(--muted);
    font-size: 13px;
    margin-bottom: 8px;
}

.app-card strong {
    font-size: 18px;
    line-height: 1.25;
}

.app-card__pill {
    padding: 10px 12px;
    border-radius: 999px;
    background: var(--primary-soft);
    color: var(--primary-dark);
    font-weight: 700;
    font-size: 13px;
}

.grid-preview {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.preview-box {
    min-height: 128px;
    padding: 18px;
    border-radius: 20px;
    background: #fff;
    border: 1px solid var(--line);
}

.preview-box strong {
    display: block;
    margin-bottom: 8px;
    font-size: 18px;
}

.preview-box span {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.5;
}

.integration-note {
    display: flex;
    gap: 14px;
    margin-top: 18px;
    padding: 16px 18px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(17,150,186,0.12) 0%, rgba(15,99,122,0.06) 100%);
    color: var(--text);
}

.integration-note__icon,
.icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: rgba(17,150,186,0.10);
    color: var(--primary-dark);
}

.icon--small {
    width: 18px;
    height: 18px;
    border-radius: 0;
    background: transparent;
    color: currentColor;
}

.icon svg,
.integration-note__icon svg,
.icon--small svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

.integration-note strong {
    display: block;
    margin-bottom: 6px;
    font-size: 16px;
}

.integration-note span:last-child {
    display: block;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.55;
}

.db-hint {
    margin-top: 18px;
    padding: 16px 18px;
    border-radius: 16px;
    background: rgba(154, 108, 0, 0.08);
    color: #7d5a00;
    font-size: 14px;
    line-height: 1.55;
}

.db-hint--ok {
    background: rgba(25, 115, 75, 0.10);
    color: #19664a;
}

.section {
    padding: 78px 0;
}

.section--soft {
    background: rgba(255,255,255,0.62);
    border-top: 1px solid rgba(219,229,238,0.8);
    border-bottom: 1px solid rgba(219,229,238,0.8);
}

.section-head {
    max-width: 860px;
    margin-bottom: 34px;
}

.cards {
    display: grid;
    gap: 20px;
}

.cards--four {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.info-card,
.feature-panel,
.cta-card {
    padding: 28px;
    border-radius: var(--radius-lg);
    background: #fff;
    border: 1px solid rgba(219,229,238,0.95);
    box-shadow: var(--shadow);
}

.info-card h3,
.feature-panel h3,
.cta-card h3 {
    margin: 18px 0 12px;
    font-size: 24px;
    line-height: 1.15;
}

.feature-layout {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

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

.feature-list li {
    position: relative;
    padding-left: 28px;
    margin-top: 14px;
}

.feature-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 10px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}

.integration-box {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
    gap: 22px;
    align-items: stretch;
}

.integration-box__content,
.integration-box__side {
    padding: 34px;
    border-radius: 30px;
    background: #fff;
    border: 1px solid rgba(219,229,238,0.95);
    box-shadow: var(--shadow);
}

.scheme {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 26px;
}

.scheme__item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 56px;
    padding: 0 18px;
    border-radius: 16px;
    background: var(--surface-soft);
    border: 1px solid var(--line);
    font-weight: 700;
}

.scheme__arrow {
    width: 34px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-dark) 100%);
}

.footer {
    padding: 32px 0 44px;
    border-top: 1px solid rgba(219,229,238,0.9);
    background: rgba(255,255,255,0.85);
}

.footer__inner {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: center;
}

.footer__brand {
    display: flex;
    align-items: center;
    gap: 18px;
}

.footer__brand img {
    width: 150px;
}

.footer__brand p {
    max-width: 540px;
    margin: 0;
    font-size: 15px;
}

.footer__links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    font-weight: 700;
}

code {
    padding: 2px 6px;
    border-radius: 8px;
    background: rgba(17,150,186,0.08);
}

@media (max-width: 1180px) {
    .hero__grid,
    .integration-box,
    .cards--four {
        grid-template-columns: 1fr 1fr;
    }

    .header__nav {
        display: none;
    }
}

@media (max-width: 900px) {
    .hero__grid,
    .feature-layout,
    .integration-box,
    .cards--four,
    .hero__stats,
    .footer__inner {
        grid-template-columns: 1fr;
        display: grid;
    }

    .footer__inner {
        gap: 18px;
    }

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

    .header__inner {
        min-height: 82px;
        justify-content: space-between;
    }

    .header__cta {
        display: none;
    }

    .phone-mockup {
        max-width: 100%;
    }

    .phone-mockup__screen {
        min-height: auto;
    }

    .hero h1 {
        font-size: 40px;
    }

    .section-head h2 {
        font-size: 30px;
    }

    .topbar__inner {
        justify-content: center;
    }
}

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

    .hero {
        padding-top: 30px;
    }

    .hero__actions {
        flex-direction: column;
    }

    .button {
        width: 100%;
    }

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

    .device-card,
    .integration-box__content,
    .integration-box__side,
    .info-card,
    .feature-panel,
    .cta-card {
        padding: 22px;
        border-radius: 24px;
    }

    .header__brand img {
        width: 150px;
    }
}
