.index-page {
    background: #f8f7f9;
}

.index-page__main {
    display: flex;
    flex-direction: column;
    padding-top: 32px;

}

@media screen and (min-width: 1025px) {
    .index-page__main {
        display: block;
    }
}

.useful-links__header {
    font-size: 21px;
    line-height: 34px;
    margin: 0;
}

/* Применяем flex к существующей обёртке */
.header__inner {
    display: flex;
    align-items: center;       /* вертикальное выравнивание по центру */
    gap: 20px;                 /* расстояние между картинкой и заголовком */
    margin-bottom: 30px;       /* отступ до следующего блока (ul) */
}

.picture img {
    width: 100%;            /* Адаптивная ширина */
    max-width: 120px;       /* Максимальная ширина (для десктопа) */
    height: auto;            /* Автовысота для сохранения пропорций */
    display: block;          /* Убирает лишние отступы снизу */
}

/* Для очень маленьких экранов (телефоны) можно жестко ограничить размер,
   если 120px все еще слишком много */
@media screen and (max-width: 480px) {
    .picture img {
        display: none;
    }
}

/* Убираем лишние отступы у h1, чтобы верстка была аккуратной */
.header__inner h1 {
    margin: 0;
    font-size: 28pt;           /* подстрой размер под себя */
    line-height: 1.1;          /* компактнее строки с <br> */
}

/* Ссылка вокруг h1 не должна ломать отступы */
.header__inner a {
    text-decoration: none;
    display: inline-block;     /* чтобы не растягивалась на всю ширину */
}

/* --- Fonts --- */
@font-face {
    font-display: swap;
    font-family: "PT Sans";
    font-style: normal;
    font-weight: 400;
    src: local("PT Sans"), url(/static/client/dist/fonts/beaab7f6e4ec3db82446316ea0a2fd41.woff);
    unicode-range: U+0410-044f,U+0451,U+0401,U+2116,U+0000-00b0,U+02c6,U+02da,U+02dc,U+feff,U+2074,U+02bb-02bc,U+2000-206f,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+fffd;
}

@supports not (-ms-high-contrast:none) {
    @font-face {
        font-display: swap;
        font-family: "PT Sans";
        font-style: normal;
        font-weight: 400;
        src: local("PT Sans"), url(/static/client/dist/fonts/f2c2442761a05d538011f514f5be8c34.woff2);
        unicode-range: U+0410-044f,U+0451,U+0401,U+2116,U+0000-00b0,U+02c6,U+02da,U+02dc,U+feff,U+2074,U+02bb-02bc,U+2000-206f,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+fffd;
    }
}

@font-face {
    font-display: swap;
    font-family: "PT Sans";
    font-style: normal;
    font-weight: 700;
    src: local("PT Sans Bold"), url(/static/client/dist/fonts/89eed93a8c6dfe47f5f1a79601575e2d.woff);
    unicode-range: U+0410-044f,U+0451,U+0401,U+2116,U+0000-00b0,U+02c6,U+02da,U+02dc,U+feff,U+2074,U+02bb-02bc,U+2000-206f,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+fffd;
}

@supports not (-ms-high-contrast:none) {
    @font-face {
        font-display: swap;
        font-family: "PT Sans";
        font-style: normal;
        font-weight: 700;
        src: local("PT Sans Bold"), url(/static/client/dist/fonts/28140c50a81813628ed6c94d75c668b9.woff2);
        unicode-range: U+0410-044f,U+0451,U+0401,U+2116,U+0000-00b0,U+02c6,U+02da,U+02dc,U+feff,U+2074,U+02bb-02bc,U+2000-206f,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+fffd;
    }
}

@font-face {
    font-display: swap;
    font-family: "PT Sans Caption";
    font-style: normal;
    font-weight: 400;
    src: local("PT Sans Caption"), url(/static/client/dist/fonts/a8e4371350be9bca651172f51b3f708e.woff);
    unicode-range: U+0410-044f,U+0451,U+0401,U+2116,U+0000-00b0,U+02c6,U+02da,U+02dc,U+feff,U+2074,U+02bb-02bc,U+2000-206f,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+fffd;
}

@supports not (-ms-high-contrast:none) {
    @font-face {
        font-display: swap;
        font-family: "PT Sans Caption";
        font-style: normal;
        font-weight: 400;
        src: local("PT Sans Caption"), url(/static/client/dist/fonts/ba2760cb6624d2e2d6d692f9b22a32e3.woff2);
        unicode-range: U+0410-044f,U+0451,U+0401,U+2116,U+0000-00b0,U+02c6,U+02da,U+02dc,U+feff,U+2074,U+02bb-02bc,U+2000-206f,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+fffd;
    }
}

@font-face {
    font-display: swap;
    font-family: "PT Serif";
    font-style: normal;
    font-weight: 700;
    src: local("PT Serif Bold"), url(/static/client/dist/fonts/d8c3c68b7d10bb9900495697412dea5f.woff);
    unicode-range: U+0410-044f,U+0451,U+0401,U+2116,U+0000-00b0,U+02c6,U+02da,U+02dc,U+feff,U+2074,U+02bb-02bc,U+2000-206f,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+fffd;
}

@supports not (-ms-high-contrast:none) {
    @font-face {
        font-display: swap;
        font-family: "PT Serif";
        font-style: normal;
        font-weight: 700;
        src: local("PT Serif Bold"), url(/static/client/dist/fonts/5289a437b2a40833326a7ae69d404385.woff2);
        unicode-range: U+0410-044f,U+0451,U+0401,U+2116,U+0000-00b0,U+02c6,U+02da,U+02dc,U+feff,U+2074,U+02bb-02bc,U+2000-206f,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+fffd;
    }
}

.font-caption {
    font-family: "PT Sans Caption", sans-serif;
}

/* --- Base styles --- */
/* --- Base styles --- */
html {
    -webkit-text-size-adjust: 100%;
    line-height: 1.15;
    font-family: "PT Sans", sans-serif;
    font-size: 16px;

    /* Задаем корневой контейнер сетки */
    display: grid;
    min-height: 100vh; /* Занимает минимум весь экран */
}

/*
   Делим тело на три строки:
   1. Хедер — размер по контенту
   2. Контент — занимает все оставшееся пространство
   3. Футер — размер по контенту
*/
body {
    margin: 0;
    background: #fff;
    display: grid;
    grid-template-rows: auto 1fr auto;
    min-height: 100vh;
}

h1 {
    font-size: 2em;
    font-weight: 400;
    margin: .67em 0;
}

a {
    color: #291699;
    text-decoration: none;
    background-color: transparent;
}

a:hover {
    color: #00a8e6;
}

img {
    border-style: none;
}

footer,
header {
    flex: 0 0 auto;
}

.content {
    flex: 1 0 auto;
    min-height: 1px;
    background: #f8f7f9;
}

.width-container {
    margin-left: auto;
    margin-right: auto;
    max-width: 1220px;
}

.page-fields {
    padding-left: 16px;
    padding-right: 16px;
}

@media screen and (min-width: 481px) {
    .tablet-page-field {
        padding-left: 16px;
        padding-right: 16px;
    }
}

@media print {
    body,
    html {
        height: auto;
    }
}

/* --- Navigation --- */
.main-nav {
    box-sizing: border-box;
    font-size: 16px;
    line-height: 1;
}

.main-nav__toggle {
    background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGAAAABgCAYAAADimHc4AAAAAXNSR0IArs4c6QAAAPxJREFUeAHt29ENgCAMBUB06o7A1hpHqGlSAsd3U+SeXyWMYREgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQGAHgav6EHPOp7rnSv0iotTsXulwJ36LAJpTF0BzALYnQIAAAQIECBAgQIAAAQIECBA4R6B0tv2xuQ/I/TymoTmv8moBlJPmGgog56WaAAECBAgQIECAAAECBAgQIECAwG8B9wFJOu8DkmCrlxtHNyckgOYAbE+AAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAIE9BF6AgQwWfQVyrQAAAABJRU5ErkJggg==") 50% no-repeat;
    background-size: 100%;
    cursor: pointer;
    display: block;
    height: 48px;
    position: absolute;
    right: 16px;
    top: 16px;
    width: 48px;
    z-index: 101;
}

.main-nav__inner {
    background: #fff;
    display: none;
    z-index: 100;
}

.main-nav__items {
    align-self: stretch;
    flex: 1 1 auto;
    list-style: none;
    margin: 0;
    overflow-y: auto;
    padding: 0;
}

.main-nav__item {
    display: block;
}

.main-nav__link {
    box-sizing: border-box;
    color: #000;
    display: block;
    letter-spacing: .14px;
    line-height: 18px;
    padding: 15px 30px;
    text-decoration: none;
    width: 100%;
}

.main-nav__link:hover {
    color: #00a8e6;
}

@media screen and (min-width: 1025px) {
    .main-nav {
        border-bottom: 1px solid #f0f0f0;
        border-top: 1px solid #f0f0f0;
        font-size: 14px;
    }

    .main-nav__inner {
        background: none;
        box-sizing: border-box;
        display: block;
        height: auto;
        min-height: auto;
        padding-top: 0;
        position: inherit;
        width: auto;
        z-index: inherit;
    }

    .main-nav__items {
        display: flex;
        position: relative;
        top: -1px;
    }

    .main-nav__item {
        display: inline-block;
        flex: 0 1 auto;
        margin-right: 34px;
    }

    .main-nav__item:last-child {
        margin-right: 0;
    }

    .main-nav__link {
        border-top: 3px solid transparent;
        letter-spacing: inherit;
        line-height: inherit;
        padding: 13px 0 14px;
    }
}

/* --- Separators --- */
.separator {
    background: #000;
    height: 1px;
    opacity: .05;
    width: 100%;
}

/* --- Contacts --- */
.contacts__header {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 16px;
}

.contacts__address {
    margin: 0 0 16px;
}

.contacts__mailto {
    color: inherit;
    text-decoration: none;
}

.contacts address {
    font-style: normal;
}

@media screen and (min-width: 1025px) {
    .contacts__inner {
        display: flex;
    }

    .contacts__address {
        flex: 1 1 50%;
        margin: 0 24px 0 0;
    }
}

/* --- Social links --- */
.social-links__header {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 16px;
}

.social-links__items {
    display: inline-block;
    list-style: none;
    margin: 0;
    padding: 0;
}

@media screen and (min-width: 1025px) {
    .social-links__items {
        column-count: 2;
        column-gap: 42px;
        height: 3.75rem;
        margin-bottom: -12px;
        vertical-align: top;
    }

    .social-links__item {
        display: block;
        margin-bottom: 16px;
        width: auto;
    }

    .social-links__item a {
        display: flex;
        flex-direction: row;
    }
}

.social-links__item {
    display: inherit;
    margin: 0 0 32px;
    width: 76px;
}

.social-links__item_tg a:hover {
    color: #00a8e6;
}

.social-links__item a:hover .social-links__icon {
    fill: currentColor;
    background: currentColor;
    border-radius: 24px;
}

.social-links__item a:hover .social-links__icon-white {
    fill: #fff;
}

@media screen and (min-width: 1025px) {
    .social-links__item {
        display: block;
        margin-bottom: 16px;
        width: auto;
    }

    .social-links__item a {
        display: flex;
        flex-direction: row;
    }
}

.social-links a {
    color: inherit;
    text-decoration: none;
    white-space: nowrap;
}

.social-links__icon,
.social-links__text {
    vertical-align: middle;
}

.social-links__icon {
    fill: #909090;
    display: inline-block;
    height: 44px;
    width: 44px;
}

@media screen and (min-width: 1025px) {
    .social-links__icon {
        height: 20px;
        margin-right: 8px;
        width: 20px;
    }
}

.social-links__text {
    display: none;
}

@media screen and (min-width: 1025px) {
    .social-links__text {
        display: inline-block;
    }
}

/* --- Copyright --- */
.copyright {
    display: flex;
    flex-direction: column;
}

.copyright__info-link {
    color: inherit;
    display: block;
    margin-bottom: 12px;
}

.copyright__info-link:last-child {
    margin-base: 0;
}

.copyright__report {
    order: 2;
}

.copyright__report-protected-link {
    display: none;
    margin-bottom: 9px;
}

@media screen and (min-width: 1025px) {
    .copyright {
        flex-direction: row;
    }

    .copyright__report {
        flex: 1 1 50%;
        margin: 0 24px 0 0;
        order: 0;
    }

    .copyright__report-protected-link {
        display: block;
    }
}

/* --- Footer --- */
.footer {
    background-color: #f0f0f0;
    color: #5e5e5e;
    line-height: 20px;
    padding-bottom: 32px;
    padding-top: 32px;
    text-align: center;
}

.footer__inner {
    display: flex;
    flex-direction: column;
    margin: -12px;
}

.footer__section {
    box-sizing: border-box;
    flex: 1 1 auto;
    padding: 12px;
}

.footer__header {
    color: #555;
}

.footer__contacts {
    color: rgba(94, 94, 94, .878);
    letter-spacing: .14px;
    margin-bottom: 8px;
}

.footer__separator {
    margin-top: -32px;
}

.footer__separator .separator {
    background: #ccc;
    opacity: 1;
}

.footer__copyright {
    color: hsla(0, 0%, 52%, .878);
    letter-spacing: .14px;
}

.footer__logo {
    line-height: 0;
}

@media screen and (min-width: 1025px) {
    .footer {
        text-align: left;
    }

    .footer__inner {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .footer__contacts {
        align-self: flex-start;
        margin-bottom: 0;
        width: 66.66666666666667%;
    }

    .footer__social {
        align-self: flex-start;
        width: 33.333333333333336%;
    }

    .footer__copyright {
        align-self: flex-end;
        margin-bottom: 0;
        width: 66.66666666666667%;
    }

    .footer__separator {
        margin-top: 0;
        width: 100%;
    }
}