@font-face {
    font-family: "Inter";
    src: url("fonts/Inter-Regular.otf") format("opentype");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "Inter";
    src: url("fonts/Inter-Medium.otf") format("opentype");
    font-style: normal;
    font-weight: 500;
    font-display: swap;
}

@font-face {
    font-family: "Inter";
    src: url("fonts/Inter-SemiBold.otf") format("opentype");
    font-style: normal;
    font-weight: 600;
    font-display: swap;
}

@font-face {
    font-family: "Inter";
    src: url("fonts/Inter-Bold.otf") format("opentype");
    font-style: normal;
    font-weight: 700;
    font-display: swap;
}

:root {
    --blue: #265da6;
    --blue-dark: #17477f;
    --blue-soft: #e5f1ff;
    --blue-pale: #eef4ff;
    --line: #acc7e9;
    --text: #222128;
    --muted: #536274;
    --accent: #ffd426;
    --accent-dark: #fdb138;
    --white: #ffffff;
    --container: 1296px;
    --shadow: 0 24px 55px rgba(28, 69, 118, .14);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 116px;
}

body {
    margin: 0;
    color: var(--text);
    background: #fff;
    font-family: "Inter", Arial, sans-serif;
    font-size: 18px;
    line-height: 1.45;
}

body.modal-open {
    overflow: hidden;
}

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

a {
    color: inherit;
}

button,
input {
    font: inherit;
}

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

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.metrika-pixel {
    position: absolute;
    left: -9999px;
}

.button {
    min-height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 15px;
    padding: 14px 24px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}

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

.button--primary {
    background: var(--blue);
    color: #fff;
}

.button--primary:hover {
    background: var(--blue-dark);
}

.button--accent {
    background: linear-gradient(180deg, var(--accent) 0%, var(--accent-dark) 100%);
    color: #111;
}

.button--accent:hover {
    background: linear-gradient(180deg, #ffdf52 0%, #ffc447 100%);
    box-shadow: 0 10px 22px rgba(190, 125, 0, .18);
}

.eyebrow {
    margin: 0 0 10px;
    color: var(--blue);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, .96);
    border-bottom: 1px solid #e6edf6;
    backdrop-filter: blur(12px);
}

.site-header__inner {
    position: relative;
    min-height: 92px;
    display: grid;
    grid-template-columns: 230px minmax(0, 1fr) auto;
    gap: 28px;
    align-items: center;
}

.site-logo img {
    width: 210px;
    height: auto;
}

.site-nav {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.site-nav a {
    padding: 10px 15px;
    border: 1px solid var(--blue);
    border-radius: 999px;
    color: var(--blue-dark);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: color .2s ease, background .2s ease;
}

.site-nav a:hover {
    color: #fff;
    background: var(--blue);
}

.site-header__buy {
    min-width: 190px;
}

#panelcontainer {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 60;
}

.hero {
    padding: 42px 0 26px;
}

.hero__panel {
    min-height: 610px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(390px, 520px);
    gap: 48px;
    align-items: stretch;
    padding: 50px;
    background: var(--blue-soft) url("../includes/img/hero-bg.svg") center / cover no-repeat;
    border-radius: 30px;
}

.hero__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.hero__content h1 {
    max-width: 690px;
    margin: 0;
    font-size: clamp(44px, 5vw, 68px);
    line-height: .98;
    letter-spacing: -.045em;
}

.hero__content h2 {
    max-width: 620px;
    margin: 30px 0 0;
    font-size: clamp(25px, 2.7vw, 36px);
    line-height: 1.08;
}

.check-list {
    display: grid;
    gap: 14px;
    margin: 34px 0 0;
    padding: 0;
    list-style: none;
}

.check-list li,
.accounting-benefits span {
    position: relative;
    padding-left: 38px;
}

.check-list li::before,
.accounting-benefits span::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: .05em;
    width: 26px;
    height: 26px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #7ba9e4;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
}

.hero__note {
    max-width: 660px;
    margin: 32px 0 0;
    font-size: 21px;
    line-height: 1.25;
}

.hero__form-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 42px;
    background: #fff;
    border-radius: 30px;
}

.hero__form-card > h2,
.bottom-lead h2 {
    margin: 0 0 10px;
    font-size: 32px;
    line-height: 1.1;
}

.hero__form-card > p {
    margin: 0 0 24px;
    line-height: 1.25;
}

.lead-form {
    display: grid;
    gap: 16px;
}

.lead-form__fields {
    display: grid;
    gap: 16px;
}

.field input {
    width: 100%;
    min-height: 60px;
    padding: 16px 18px;
    border: 1px solid #d9e1eb;
    border-radius: 15px;
    outline: none;
    color: var(--text);
    background: #fff;
}

.field input:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 4px rgba(38, 93, 166, .10);
}

.field input.is-invalid {
    border-color: #d73f3f;
}

.lead-form__submit {
    width: 100%;
    min-height: 64px;
}

.lead-form__submit[disabled] {
    opacity: .65;
    cursor: wait;
}

.consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #7b8795;
    font-size: 13px;
    line-height: 1.3;
    cursor: pointer;
}

.consent input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.consent__mark {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    display: grid;
    place-items: center;
    border: 2px solid #d9e1eb;
    border-radius: 4px;
    background: #fff;
}

.consent input:checked + .consent__mark::after {
    content: "✓";
    color: var(--blue);
    font-size: 15px;
    font-weight: 700;
}

.consent.is-invalid .consent__mark {
    border-color: #d73f3f;
    box-shadow: 0 0 0 3px rgba(215, 63, 63, .12);
}

.consent a {
    text-decoration: underline;
}

.lead-form__error {
    display: none;
    margin: 0;
    color: #c92323;
    font-size: 14px;
    font-weight: 600;
}

.lead-form__error:not(:empty) {
    display: block;
}

.lead-form__success {
    min-height: 240px;
    display: grid;
    place-items: center;
    text-align: center;
}

.lead-form__success strong {
    display: block;
    font-size: 30px;
}

.lead-form__success p {
    margin: 8px 0 0;
}

.feature-section {
    padding: 78px 0;
}

.feature-section--accounting {
    padding-top: 56px;
}

.feature-section--neira {
    background: linear-gradient(180deg, #fff 0%, #f5f9ff 100%);
}

.feature-section--services {
    padding-top: 70px;
}

.section-heading {
    max-width: 900px;
    margin-bottom: 32px;
}

.section-heading--center {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.section-heading h2,
.neira-intro h2 {
    margin: 0 0 18px;
    font-size: clamp(36px, 4.2vw, 54px);
    line-height: 1.04;
    letter-spacing: -.04em;
}

.section-heading p:not(.eyebrow),
.neira-intro__content > p:not(.eyebrow) {
    margin: 0;
    color: var(--muted);
    font-size: 20px;
    line-height: 1.45;
}

.accounting-benefits {
    display: flex;
    gap: 36px;
    flex-wrap: wrap;
    margin: 28px 0 0;
    color: var(--blue-dark);
    font-weight: 600;
}

.embed-shell {
    overflow: hidden;
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 30px;
    background: #fff;
    box-shadow: var(--shadow);
}

.embed-shell iframe {
    width: 100%;
    border: 0;
    background: #fff;
}

.embed-shell--accounting iframe {
    height: min(900px, 82vh);
    min-height: 720px;
}

.neira-intro {
    display: grid;
    grid-template-columns: minmax(0, .92fr) minmax(420px, 1.08fr);
    gap: 42px;
    align-items: center;
    margin-bottom: 58px;
    padding: 42px;
    border-radius: 30px;
    background: var(--blue-soft);
}

.neira-intro__button {
    margin-top: 28px;
}

.neira-intro__visual {
    overflow: hidden;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 18px 38px rgba(28, 69, 118, .13);
}

.neira-intro__visual img {
    width: 100%;
    height: auto;
}

.section-heading--demo {
    max-width: 980px;
}

.neira-demo-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
}

.demo-card {
    overflow: hidden;
    display: grid;
    grid-template-rows: auto 1fr;
    border: 1px solid var(--line);
    border-radius: 28px;
    background: #fff;
    box-shadow: 0 14px 30px rgba(28, 69, 118, .08);
}

.demo-card__media {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #eaf2fb;
}

.demo-card__media video,
.demo-card__media iframe {
    width: 100%;
    height: 100%;
    border: 0;
    object-fit: contain;
    background: #eaf2fb;
}

.demo-card__body {
    padding: 28px;
}

.demo-card h3,
.service-card h3 {
    margin: 0 0 12px;
    font-size: 27px;
    line-height: 1.12;
}

.demo-card p,
.service-card p {
    margin: 0;
    color: var(--muted);
}

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

.service-card {
    min-height: 290px;
    padding: 30px;
    border: 1px solid var(--line);
    border-radius: 26px;
    background: #fff;
}

.service-card__number {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    margin-bottom: 42px;
    border-radius: 50%;
    background: var(--blue);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
}

.bottom-lead {
    padding: 20px 0 72px;
}

.bottom-lead__panel {
    display: grid;
    grid-template-columns: minmax(300px, .8fr) minmax(500px, 1.2fr);
    gap: 54px;
    align-items: center;
    padding: 42px;
    border-radius: 30px;
    background: var(--blue-pale);
}

.bottom-lead__panel > div > p:not(.eyebrow) {
    margin: 0;
    color: var(--muted);
}

.bottom-lead .lead-form__fields {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.site-footer {
    padding: 36px 0;
    background: #f2f6fb;
    color: #445469;
    font-size: 14px;
}

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

.site-footer__links {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}

.site-footer p {
    margin: 0;
}

.exit-modal[hidden],
.cookie[hidden] {
    display: none;
}

.exit-modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: grid;
    place-items: center;
    padding: 20px;
}

.exit-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(8, 29, 54, .72);
    backdrop-filter: blur(6px);
}

.exit-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(960px, 100%);
    max-height: calc(100vh - 40px);
    overflow: auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(340px, .85fr);
    gap: 34px;
    align-items: center;
    padding: 42px;
    border-radius: 30px;
    background: var(--blue-soft) url("../includes/img/hero-bg.svg") center / cover no-repeat;
    box-shadow: 0 30px 90px rgba(0, 0, 0, .3);
}

.exit-modal__close {
    position: absolute;
    top: 12px;
    right: 18px;
    z-index: 3;
    width: 42px;
    height: 42px;
    border: 0;
    background: transparent;
    color: var(--text);
    font-size: 36px;
    line-height: 1;
    cursor: pointer;
}

.exit-modal__eyebrow {
    margin: 0 0 4px;
    color: var(--blue);
    font-size: 22px;
    font-weight: 700;
}

.exit-modal__content h2 {
    margin: 0 0 18px;
    font-size: clamp(38px, 4.4vw, 58px);
    line-height: .98;
    letter-spacing: -.04em;
}

.exit-modal__content > p:not(.exit-modal__eyebrow) {
    margin: 0;
    font-size: 18px;
}

.exit-timer {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    margin-top: 26px;
    padding: 10px 12px 10px 18px;
    border-radius: 16px;
    background: #fff;
    color: var(--blue-dark);
    font-size: 14px;
    font-weight: 600;
}

.exit-timer strong {
    min-width: 88px;
    padding: 8px 12px;
    border-radius: 10px;
    background: var(--blue);
    color: #fff;
    font-size: 24px;
    line-height: 1;
    text-align: center;
}

.exit-modal__form {
    padding: 30px;
    border-radius: 24px;
    background: #fff;
}

.cookie {
    position: fixed;
    left: 20px;
    right: 20px;
    bottom: 20px;
    z-index: 80;
    width: min(760px, calc(100% - 40px));
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 0 auto;
    padding: 16px 18px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
    box-shadow: var(--shadow);
    font-size: 13px;
}

.cookie p {
    flex: 1;
    margin: 0;
}

.cookie button {
    border: 0;
    border-radius: 10px;
    padding: 10px 18px;
    background: var(--blue);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

@media (max-width: 1120px) {
    html {
        scroll-padding-top: 150px;
    }

    .site-header__inner {
        grid-template-columns: 200px minmax(0, 1fr) auto;
        gap: 16px;
        padding: 14px 0;
    }

    .site-logo img {
        width: 190px;
    }

    .site-nav {
        justify-content: flex-start;
    }

    .site-nav a {
        padding: 8px 11px;
        font-size: 12px;
    }

    .site-header__buy {
        min-width: 150px;
        padding-left: 16px;
        padding-right: 16px;
        font-size: 14px;
    }

    .hero__panel,
    .neira-intro,
    .bottom-lead__panel {
        grid-template-columns: 1fr;
    }

    .hero__panel {
        min-height: 0;
    }

    .hero__form-card {
        max-width: 720px;
    }

    .neira-intro__visual {
        width: min(760px, 100%);
    }

    .service-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    html {
        scroll-padding-top: 132px;
    }

    body {
        font-size: 16px;
    }

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

    .site-header__inner {
        min-height: 0;
        grid-template-columns: 1fr auto;
        padding: 10px 0 8px;
    }

    .site-logo img {
        width: 160px;
    }

    .site-header__buy {
        min-width: 0;
        min-height: 44px;
        padding: 10px 14px;
        font-size: 12px;
    }

    .site-nav {
        grid-column: 1 / -1;
        width: 100%;
        flex-wrap: nowrap;
        justify-content: flex-start;
        overflow-x: auto;
        padding: 2px 0 4px;
        scrollbar-width: none;
    }

    .site-nav::-webkit-scrollbar {
        display: none;
    }

    .site-nav a {
        flex: 0 0 auto;
        white-space: nowrap;
    }

    #panelcontainer {
        display: none;
    }

    .hero {
        padding-top: 20px;
    }

    .hero__panel {
        gap: 28px;
        padding: 26px 20px;
        border-radius: 22px;
    }

    .hero__content h1 {
        font-size: 42px;
    }

    .hero__content h2 {
        margin-top: 20px;
        font-size: 25px;
    }

    .check-list {
        margin-top: 24px;
    }

    .hero__note {
        margin-top: 24px;
        font-size: 17px;
    }

    .hero__form-card {
        padding: 24px 20px;
        border-radius: 18px;
    }

    .hero__form-card > h2,
    .bottom-lead h2 {
        font-size: 28px;
    }

    .feature-section {
        padding: 56px 0;
    }

    .section-heading h2,
    .neira-intro h2 {
        font-size: 34px;
    }

    .section-heading p:not(.eyebrow),
    .neira-intro__content > p:not(.eyebrow) {
        font-size: 17px;
    }

    .accounting-benefits {
        display: grid;
        gap: 14px;
    }

    .embed-shell {
        border-radius: 20px;
    }

    .embed-shell--accounting {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .embed-shell--accounting iframe {
        height: 780px;
        min-height: 780px;
    }

    .neira-intro {
        gap: 26px;
        margin-bottom: 42px;
        padding: 24px 20px;
        border-radius: 22px;
    }

    .neira-intro__visual {
        border-radius: 16px;
    }

    .neira-intro__button {
        width: 100%;
    }

    .neira-demo-grid,
    .service-grid {
        grid-template-columns: 1fr;
    }

    .demo-card {
        border-radius: 20px;
    }

    .demo-card__body {
        padding: 22px 20px;
    }

    .demo-card h3,
    .service-card h3 {
        font-size: 23px;
    }

    .service-card {
        min-height: 0;
        padding: 24px 20px;
        border-radius: 20px;
    }

    .service-card__number {
        margin-bottom: 24px;
    }

    .bottom-lead {
        padding-bottom: 52px;
    }

    .bottom-lead__panel {
        gap: 28px;
        padding: 26px 20px;
        border-radius: 22px;
    }

    .bottom-lead .lead-form__fields {
        grid-template-columns: 1fr;
    }

    .site-footer__inner,
    .cookie {
        align-items: flex-start;
        flex-direction: column;
    }

    .exit-modal {
        padding: 10px;
    }

    .exit-modal__dialog {
        max-height: calc(100vh - 20px);
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 36px 18px 20px;
        border-radius: 22px;
    }

    .exit-modal__content h2 {
        font-size: 39px;
    }

    .exit-modal__content > p:not(.exit-modal__eyebrow) {
        font-size: 16px;
    }

    .exit-timer {
        width: 100%;
        justify-content: space-between;
    }

    .exit-modal__form {
        padding: 20px;
        border-radius: 18px;
    }

    .cookie {
        left: 14px;
        right: 14px;
        bottom: 14px;
        width: calc(100% - 28px);
        gap: 12px;
    }
}

@media (max-width: 390px) {
    .site-logo img {
        width: 138px;
    }

    .site-header__buy {
        padding: 9px 10px;
        font-size: 11px;
    }

    .hero__content h1 {
        font-size: 36px;
    }

    .section-heading h2,
    .neira-intro h2 {
        font-size: 30px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}
