@font-face {
    font-family: 'P22UndergroundCYHeavy';
    src: local('P22UndergroundCYHeavy'), local('P22UndergroundCYHeavy'),
    url('/fonts/P22UndergroundCYHeavy.woff2') format('woff2'),
    url('/fonts/P22UndergroundCYHeavy.woff') format('woff'),
    url('/fonts/P22UndergroundCYHeavy.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: 'P22UndergroundCYBook';
    src: local('P22UndergroundCYBook'), local('P22UndergroundCYBook'),
    url('/fonts/P22UndergroundCYBook.woff2') format('woff2'),
    url('/fonts/P22UndergroundCYBook.woff') format('woff'),
    url('/fonts/P22UndergroundCYBook.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: 'P22UndergroundCYDemiBold';
    src: local('P22UndergroundCYDemiBold'), local('P22UndergroundCYDemiBold'),
    url('/fonts/P22UndergroundCYDemiBold.woff2') format('woff2'),
    url('/fonts/P22UndergroundCYDemiBold.woff') format('woff'),
    url('/fonts/P22UndergroundCYDemiBold.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: 'P22UndergroundCYProMedium';
    src: local('P22UndergroundCYProMedium'), local('P22UndergroundCYProMedium'),
    url('/fonts/P22UndergroundCYProMedium.woff2') format('woff2'),
    url('/fonts/P22UndergroundCYProMedium.woff') format('woff'),
    url('/fonts/P22UndergroundCYProMedium.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

p, ol, ul {
    font-family: 'P22UndergroundCYBook', Helvetica Neue, Arial, sans-serif;
}

html, body {
    min-height: 100vh;
}

/* About: без дефолтного margin у body (normalize не подключён на статичной странице) */
body.about-fixed-v12 {
    margin: 0;
    /* как html { line-height: 1.15 } в normalize на index */
    line-height: 1.15;
}

/* About: подвал у низа вьюпорта — тот же flex-столбец #neatify-main-container, что и на index */
body.about-fixed-v12 #neatify_header {
    flex: 1 1 auto;
}

body.about-fixed-v12 .neatify-footer {
    flex-shrink: 0;
}

/* About: основной текст шапки и блока — Helvetica Neue (как задумано для страницы) */
body.about-fixed-v12 #neatify_header .about-intro-main p,
body.about-fixed-v12 #neatify_header .about-main > p,
body.about-fixed-v12 #neatify_header .about-side .neatify-footer-p,
body.about-fixed-v12 .about-top-bar .about-side .neatify-footer-p {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 1rem;
    line-height: 1.33;
}

body.about-fixed-v12 #neatify_header .about-main h2 {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.33;
    margin: 18px 0 0 0;
    max-width: 728px;
    width: 100%;
}

body.about-fixed-v12 #neatify_header .about-main h2.about-main-subheading {
    font-weight: 400;
}

body.about-fixed-v12 #neatify_header .about-main > h2:first-child {
    margin-top: 24px;
}

/*
 * Внешний #neatify-main-container живёт в public/index.html (вне Vue), поэтому
 * scoped-стили из App.vue на него не действуют — раскладку задаём только здесь.
 */
#neatify-main-container {
    max-width: 981px;
    min-height: 100vh;
    margin-top: 0;
    margin-right: auto;
    margin-left: 28px;
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
}

@media only screen and (max-width: 767px) {
    #neatify-main-container {
        width: 100vw;
        padding: 0;
        margin: 0;
    }
}

#neatify_header {
    padding: 0;
}
#neatify_header_h1 {
    padding: 0;
    font-family: 'P22UndergroundCYHeavy', Helvetica Neue, Arial, sans-serif;
    font-size: 3.3rem;
    text-align: left;
    margin: 27px 0 0 0;
}
#neatify_header_headline {
    max-width: 728px;
    width: 100%;
    margin: 9px 0 0 0;
    font-size: 1rem;
    line-height: 1.33;
}
#neatify_header_headline a:link,
#neatify_header_headline a:visited {
    text-decoration: none;
    color: #000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.16);
}

#neatify_header h2 {
    font-family: 'P22UndergroundCYHeavy', Helvetica Neue, Arial, sans-serif;
    font-size: 1.25rem;
    font-weight: normal;
    line-height: 1.33;
    margin: 24px 0 0 0;
    max-width: 728px;
    width: 100%;
}

body.about-fixed-v12 #neatify_header h2 {
    margin-top: 18px;
}

#neatify_header h3 {
    font-family: 'P22UndergroundCYHeavy', Helvetica Neue, Arial, sans-serif;
    font-size: 1rem;
    font-weight: normal;
    line-height: 1.33;
    margin: 18px 0 0 0;
    max-width: 728px;
    width: 100%;
}

#neatify_header hr {
    max-width: 728px;
    width: 100%;
    margin: 16px 0 0 0;
    border: none;
    border-top: 1px solid rgba(0, 0, 0, 0.16);
}

#neatify_header ul {
    max-width: 728px;
    width: 100%;
    margin: 8px 0 0 0;
    padding-left: 1.25em;
    font-size: 1rem;
    line-height: 1.33;
}

#neatify_header > p:not(#neatify_header_headline),
#neatify_header .about-main > p {
    max-width: 728px;
    width: 100%;
    margin: 12px 0 0 0;
    font-size: 1rem;
    line-height: 1.33;
}

/* Страница «О сервисе»: шапка + ссылка справа */
.about-top-bar {
    display: contents;
}

.about-body-with-side {
    display: block;
}

.about-body-column {
    min-width: 0;
}

.about-intro-with-link {
    display: block;
}

.about-intro-layout {
    display: flow-root;
    margin-bottom: 8px;
}

.about-intro-main {
    min-width: 0;
}

.about-side {
    float: right;
    padding-top: 9px;
    margin-left: 36px;
}

.about-side .neatify-footer-p {
    margin: 0;
}

.about-side .neatify-footer-p a:link,
.about-side .neatify-footer-p a:visited {
    text-decoration: none;
    color: #000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.16);
}

/* About, десктоп: лид и ссылка в одном flex-ряду — ссылка сразу после текста (сетка с display:contents давала сбой) */
@media only screen and (min-width: 768px) {
    body.about-fixed-v12 .about-top-bar {
        display: block;
        flex-shrink: 0;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    body.about-fixed-v12 .about-side--bar {
        display: none !important;
    }

    /* Левая колонка — весь текст от «Как это работает» до конца блока; справа — ссылка на уровне первой строки заголовка */
    body.about-fixed-v12 .about-body-with-side {
        display: flex;
        flex-direction: row;
        align-items: flex-start;
        flex-wrap: nowrap;
        gap: 5mm;
        max-width: 100%;
    }

    body.about-fixed-v12 .about-body-column {
        flex: 1 1 auto;
        min-width: 0;
        max-width: 41rem;
        width: auto;
    }

    body.about-fixed-v12 .about-intro-with-link {
        margin-bottom: 0;
    }

    body.about-fixed-v12 .about-intro-layout {
        display: block;
        float: none;
        margin-bottom: 0;
        margin-top: 0;
    }

    body.about-fixed-v12 .about-side--next-to-intro {
        float: none;
        flex: 0 0 auto;
        margin: 0;
        /* как margin-top у #neatify_header h2 — первая строка ссылки совпадает с первой строкой заголовка */
        padding: 18px 0 0 0;
        align-self: flex-start;
    }

    body.about-fixed-v12 .about-main {
        max-width: none;
        width: 100%;
        box-sizing: border-box;
    }
}

@media only screen and (max-width: 767px) {
    #neatify_header {
        margin: 0;
        padding: 10px 10px 0 10px;
    }
    /* About: фиксированная шапка (без sticky-«доезда»); отступ = высота бара, h1 до 2 строк на узком экране */
    body.about-fixed-v12 #neatify_header {
        padding-top: calc(
            env(safe-area-inset-top, 0px) + 10px + 12px + (1.75rem * 1.15 * 2) + 12px + (1.03rem * 1.33) + 20px
        );
        padding-left: 10px;
        padding-right: 10px;
        padding-bottom: 0;
    }
    #neatify_header_h1 {
        font-size: 1.75rem;
        margin: 12px 0 0 0;
    }
    /* Как на index: 12px сверху у h1 + 10px padding шапки перенесены в .about-top-bar; до ссылки ÷1.5 от бывших 18px */
    body.about-fixed-v12 #neatify_header_h1 {
        margin: 12px 0 12px 0;
    }

    body.about-fixed-v12 #neatify_header .about-intro-main > p,
    body.about-fixed-v12 #neatify_header .about-main > p,
    body.about-fixed-v12 #neatify_header .about-side .neatify-footer-p,
    body.about-fixed-v12 .about-top-bar .about-side .neatify-footer-p,
    body.about-fixed-v12 #neatify_header .about-list,
    body.about-fixed-v12 #neatify_header .about-list li {
        font-size: 1.03rem;
        line-height: 1.33;
    }
    #neatify_header_headline {
        width: 100%;
        font-size: 1.03rem;
        line-height: 1.33;
    }

    #neatify_header h2,
    #neatify_header h3,
    #neatify_header hr,
    #neatify_header ul,
    #neatify_header > p:not(#neatify_header_headline),
    #neatify_header .about-main > p,
    .about-intro-main > p {
        width: 100%;
        max-width: 100%;
    }

    /* Только about: шапка вне #neatify_header, иначе fixed внутри flex:1 «привязан» к блоку в iOS */
    body.about-fixed-v12 .about-top-bar {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        max-width: 100%;
        z-index: 20;
        background: #fff;
        margin: 0;
        padding: calc(10px + env(safe-area-inset-top, 0px)) 10px 20px 10px;
        box-sizing: border-box;
    }

    body.about-fixed-v12 .about-side--next-to-intro {
        display: none !important;
    }

    body.about-fixed-v12 .about-intro-with-link {
        margin-top: 6px;
    }

    .about-intro-layout {
        display: block;
        margin-top: 0;
    }

    .about-side {
        float: none;
        margin: 0;
        padding: 0;
    }

    .about-side .neatify-footer-p {
        margin: 0;
    }
}



/* About: компактные списки вместо абзацев с тире */
body.about-fixed-v12 .about-list {
    max-width: 728px;
    width: 100%;
    margin: 9px 0 0 0;
    padding-left: 1.2em;
    list-style: none;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 1rem;
    line-height: 1.33;
}

body.about-fixed-v12 .about-list li {
    margin: 4px 0;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: inherit;
    line-height: inherit;
}

body.about-fixed-v12 #neatify_header .about-main > p + .about-list {
    margin-top: 4px;
}

@media only screen and (max-width: 767px) {
    body.about-fixed-v12 .about-list,
    body.about-fixed-v12 .about-list li {
        font-size: 1.03rem;
        line-height: 1.33;
    }
}

.neatify-footer {
    width: 564px;
    margin-top: 26px;
    margin-bottom: 15px;
    padding: 0;
    -webkit-box-sizing: border-box; /* Safari/Chrome, other WebKit */
    -moz-box-sizing: border-box;    /* Firefox, other Gecko */
    box-sizing: border-box;
}

.neatify-footer p {
    font-family: 'P22UndergroundCYBook', Helvetica Neue, Arial, sans-serif;
    font-size: 1rem;
    line-height: 1.33;
    margin-top: 0;
    margin-bottom: 16px;
    padding: 0;
}

@media only screen and (max-width: 767px) {
    .neatify-footer {
        width: 100%;
        margin: 20px 0 0 0;
        /* margin: 500px 0 0 0; */
        padding: 0;
        background: #fff;
        /* z-index: 2; */
    }

    .neatify-footer p {
        font-size: 0.67rem;
        margin: 10px;
    }
}

.neatify-footer-p a:link,
.neatify-footer-p a:visited {
    text-decoration: none;
    color: #000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.16);
}
