.container {
    max-width: 800px;
    padding: 0 20px 0 20px;
    margin-left: auto;
    margin-right: auto;
}

body {
    margin: 0;
    padding: 0;
    line-height: 1.75;
    letter-spacing: 0.3px;
    font-family: "Lato", sans-serif;
    font-weight: 400;
    font-size: 16px;
    background: linear-gradient(to bottom,
            #edf8ff 0%,
            rgba(255, 255, 255, 0) 500px);
    color: #424242;
}

footer {
    font-size: 12px;
}

.menu {
    background-color: #ffffff;
    overflow: hidden;
    box-shadow: 0px 1px 5px 0px rgb(141, 169, 187);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.menu a {
    color: #1e73be;
    float: left;
    display: block;
    text-align: center;
    padding: 14px 16px 14px 0;
}

.menu a:hover {
    color: #1e73be;
    border: 0px solid;
}

.menu a:focus {
    border: 0px solid;
}

.menu a:active {
    color: #afdbff;
}

.main {
    flex: 1;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    margin-top: 80px;
}

.main-left {
    padding: 0 20px 0 20px;
    width: 250px;
    margin-left: auto;
    margin-right: auto;
}

.main-right {
    padding: 0 20px 0 20px;
    width: 250px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1rem;
}

.main-center {
    min-height: 100vh;
}

.main-center_news {
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    background: #fff;
    border-radius: 5px;
    box-shadow: 0px 5px 10px #ccc;
}

.main-center li a {
    word-break: break-word;
}

.main-center li a:visited {
    color: #66727c;
    word-break: break-word;
}

p,
h1,
h2,
h3 {
    word-break: normal;
    text-indent: 2rem;
}

h1 {
    color: #044987;
    font-size: 26px;
    font-weight: 700;
    line-height: 1.3;
    padding: 0 0 20px 0;
    text-align: left;
}

h2 {
    color: #044987;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.4;
    margin: 24px 0 12px 0;
}

h3 {
    color: #044987;
    font-size: 16px;
    font-weight: 700;
}

.main-center_news ul {
    list-style-type: disc;
    list-style-position: inside;
    padding: 0 0 0 4rem;
}

ol {
    padding: 0 0 0 4rem;
}

li {
    display: list-item;
}

.pagination {
    text-align: center;
    padding: 10px;
}

.pagination a {
    margin: 5px;
    padding: 5px 10px;
    text-decoration: none;
    color: white;
}

.pagination a:visited {
    color: #1e73be;
}

.pagination .current {
    color: #444;
}

.footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 10px;
}

a {
    display: inline-block;
    word-break: break-all;
    overflow-wrap: break-word;
    text-indent: 0px;
}

a:link {
    color: #1e73be;
}

a:visited {
    color: #1e73be;
}

a:active {
    color: #afdbff;
}

.alt_img img {
    border: 1px solid #cccccc;
    width: 100%;
    margin-bottom: 20px;
}

/* Основные стили */
/* Стили для контейнера новости */
.news-item {
    display: flex;
    align-items: center;
    gap: 18px;
    transition: all 0.2s ease;
}

.news-list li {
    margin-bottom: 10px;
    font-size: 16px;
    line-height: 1.75;
    letter-spacing: 0.7px;
}

/* Стили для favicon */
.favicon-icon {
    width: 16px;
    height: 16px;
    transition: transform 0.2s ease, filter 0.2s ease;
}

/* Стили для ссылки */
.news-item a {
    display: inline-block;
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease;
}

.news-item:hover {
    transform: scale(1.02);
}

.news-item:hover .favicon-icon {
    filter: brightness(1.2);
}

/* Добавим медиа-запросы для адаптации стилей на мобильных устройствах */

@media (max-width: 1600px) {
    .container {
        max-width: 700px;
        margin-left: auto;
        margin-right: auto;
    }
}

@media only screen and (max-width: 960px) {
    .main {
        flex-direction: column;
        align-items: center;
    }

    .main-left,
    .main-right,
    .main-center {
        width: 100%;
    }
}

@media (max-width: 960px) {
    #yandex_rtb_R-A-1784222-1 {
        display: none;
    }

    h1 {
        font-size: 26px;
        line-height: 1.3;
        text-align: left;
    }
}

p:has(img) {
    text-indent: 0;
}

/* Уровень "Страха и жадности" */

.fear-and-greed {
    max-width: 600px;
    min-width: 210px;
    margin: 0 auto 10px;
    display: flex;
    flex-direction: column;
    background-color: #fff;
    border: 1px solid #cccccc;
    width: 100%;
    line-height: normal;
}

.fear-and-greed_title__header {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    margin: 5px 0 5px;
}

.logo {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: #ffa500;
    margin-right: 10px;
    line-height: 20px;
    text-align: center;
    font-size: 10px;
    color: white;
    font-weight: bold;
}

.fear-and-greed_title__header h3 {
    font-size: 12px;
    font-weight: 900;
    text-indent: unset;
    letter-spacing: normal;
    -webkit-text-stroke: 0.3px #0b0b0b;
    color: #0b0b0b;
}

.fear-and-greed_title__footer {
    display: flex;
    justify-content: space-around;
    color: #ababab;
}

.fear-and-greed_body {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.fear-and-greed p {
    text-indent: unset;
    letter-spacing: normal;
    font-size: 8px;
    padding: 0px;
}


.fear-and-greed hr {
    border: 0;
    height: 0.5px;
    background: #ababab;
    margin: 3px 5px 0;
}

.fear-and-greed_footer {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 4px 0 5px;
    color: #ababab;
}

.fgi-now {
    position: absolute;
    top: 5px;
    left: 5px;
}

.fgi-now p {
    font-size: 12px;
    font-weight: 900;
}

.fgi-item {
    position: absolute;
    top: 20px;
    left: 5px;
}

/* Стили для конвертера */

label {
    font-weight: 700;
    font-size: 12px;
}

input {
    height: 3.25rem;
    padding-left: .5rem;
    border-radius: .5rem;
    border: 0.1px solid #a1bacf;
}

input:focus {
    box-shadow: 0 0 0 0.2rem rgba(34, 111, 255, 0.25);
}

.converter-form {
    display: flex;
    justify-content: space-between;
    gap: 30px calc(2rem - 10px);
    margin: 0 1.5rem;
}

#result {
    font-size: 24px;
    font-weight: 700;
    color: green;
    text-align: center;
    min-height: 2em;
}

@media (max-width: 700px) {
    .converter-form {
        flex-direction: column;
    }
}

/* Стили автокомплита */
.autocomplete-wrapper {
    position: relative;
    width: 250px;
}

.suggestions-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 6px;
    max-height: 200px;
    overflow-y: auto;
    list-style: none;
    padding: 0;
    margin: 2px 0 0 0;
    display: none;
    z-index: 1000;
}

.suggestions-list li {
    padding: 6px 10px;
    cursor: pointer;
}

.suggestions-list li:hover {
    background: #f0f0f0;
}

.btn-convert {
    display: flex;
    justify-content: flex-end;
    margin: 30px 0;
}

.btn-primary {
    padding: 0.5rem 1rem;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.25;
    text-align: center;
    white-space: nowrap;
    user-select: none;
    border: 1px solid transparent;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out,
        border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    cursor: pointer;
    color: #fff;
    background-color: #1e73be;
    border-color: #456f88;
    border-radius: 5px;
    margin: 1rem;
}

/* Подсветка при наведении курсора */
.btn-primary:hover {
    color: #fff;
    background-color: #2080d3;
    border-color: #456f88;
    color: #fff;
}

/* Состояние активации (при нажатии) */
.btn-primary:active {
    color: #242424;
    background-color: #deefff;
    border-color: #0a58ca;
    box-shadow: 0 0 0 0.15rem rgba(13, 110, 253, 0.5);
}

/* Соглашение с cookies */

#cookie-notice {
    display: none;
    position: fixed;
    bottom: 30px;
    left: calc(-50vw + 60%);
    width: 80%;
    margin-left: calc(-50vw + 50%);
    background: #ffffff;
    padding: 15px;
    text-align: center;
    box-shadow: 1px 2px 3px #7a7a7a;
    border: 1px solid #777777;
    border-radius: 30px;
    z-index: 1000;
}

/* Кнопки социальных сетей */

.share-buttons {
    margin: 20px 0 10px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px;
}

.share-buttons_share {
    display: inline-flex;
    justify-content: flex-end;
    gap: 10px;
}

.share-buttons p {
    margin: 0;
    margin-right: 10px;
}

.share-buttons .share-btn img {
    width: 24px;
    height: 24px;
    transition: transform 0.2s ease;
}

.share-buttons .share-btn:hover img {
    transform: scale(1.15);
}

/* --- Мобильное меню --- */
.menu-toggle {
    display: none;
    font-size: 26px;
    background: none;
    border: none;
    padding: 12px 16px;
    cursor: pointer;
    color: #1e73be;
}

@media (max-width: 900px) {

    .menu {
        position: fixed;
        top: 0;
        width: 100%;
        z-index: 2000;
    }

    .menu .menu-links {
        display: none;
        flex-direction: column;
        background: #ffffff;
        width: 100%;
        padding: 10px 20px;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    }

    .menu.open .menu-links {
        display: flex;
    }

    .menu a {
        padding: 14px 0;
        font-size: 18px;
        border-bottom: 1px solid #e5e5e5;
    }

    .menu-toggle {
        display: block;
        float: right;
    }

    .menu-links a:last-child {
        border-bottom: none;
    }
}


/* Стилизует тег PRE и вложенный CODE */
pre,
pre code {
    box-sizing: border-box;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco,
        "Roboto Mono", "Courier New", monospace;
    font-size: 13px;
    /* размер шрифта для кода */
    line-height: 1.5;
    /* интерлиньяж */
    white-space: pre;
    /* сохраняет форматирование */
    tab-size: 2;
    /* размер таба */
    hyphens: none;
    color: #e6eef6;
    /* текст (светлый) */
}

/* Блок кода */
pre {
    background: linear-gradient(180deg, #0f1720 0%, #081016 100%);
    /* тёмный градиент */
    border: 1px solid rgba(255, 255, 255, 0.04);
    /* тонкая рамка */
    padding: 14px 16px;
    /* внутренние отступы */
    border-radius: 10px;
    /* закругления углов */
    overflow: auto;
    /* горизонтальная прокрутка при необходимости */
    max-width: 100%;
    box-shadow: 0 6px 20px rgba(2, 6, 23, 0.6);
    /* лёгкая тень */
    margin: 16px 0;
    /* внешний отступ */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Подсветка моно-символов: чуть контрастнее для цифр и символов */
pre code {
    display: block;
    white-space: pre;
    color: inherit;
}

/* Сильный акцент для команд/важного — можно использовать в теге <mark> внутри pre */
pre mark {
    background: rgba(255, 255, 255, 0.06);
    padding: 2px 6px;
    border-radius: 6px;
    color: #fff;
}

/* Для адаптивности: чуть уменьшаем шрифт на узких экранах */
@media (max-width: 520px) {

    pre,
    pre code {
        font-size: 12px;
        padding: 10px 12px;
    }
}

pre {
  scrollbar-width: thin;                          /* Firefox */
  scrollbar-color: rgba(255,255,255,0.15) transparent;
}

/* Chrome / Edge / Safari */
pre::-webkit-scrollbar {
  height: 6px;                                    /* горизонтальный скролл */
  width: 6px;                                     /* вертикальный */
}

pre::-webkit-scrollbar-track {
  background: transparent;                        /* без трека — чище */
}

pre::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.25);             /* светлая полоса */
  border-radius: 10px;                            /* скругление */
}

pre::-webkit-scrollbar-thumb:hover {
  background: rgba(255,255,255,0.35);             /* эффект наведения */
}
