:root {
    --header-bg-color: #2C324C;
    --main-bg-color: #181730;
    --footer-bg-color: #020214;
    --main-text-color: #FFFFFF;
    --button-text-color: #050502;
    --button-bg-color: #F8DF13;
    --button-second-bg-color: #F8D76F;
}

html, body, div, span, object, iframe, figure, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, code, em, img, small, strike, strong, sub, sup, tt, b, u, i, fieldset, form, label, table, caption, tbody, tfoot, thead, tr, th, td, main, canvas, embed, footer, header, nav, section, video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    text-size-adjust: none;
}

html {
    box-sizing: border-box;
    overflow-x: hidden;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: var(--main-text-color);
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none !important;
}

a {
    color: var(--button-text-color);
}

a:hover {
    text-decoration: none;
    color: var(--main-text-color);
}

h1, h2, h3, h4 {
    color: var(--main-text-color);
}

h1 {
  font-size: 45px;
  font-weight: 900;
  line-height: 45px;
  margin-bottom: 30px;
  text-align: center;
}
@media screen and (max-width: 992px) {
  h1 {
    font-size: 30px;
    line-height: 42px;
  }
}

h2 {
  font-size: 36px;
  font-weight: 700;
  line-height: 54px;
  margin-bottom: 30px;
}
@media screen and (max-width: 992px) {
  h2 {
    font-size: 30px;
    line-height: 44px;
  }
}

h3 {
  font-size: 30px;
  font-weight: 700;
  line-height: 44px;
  margin-bottom: 30px;
}
@media screen and (max-width: 992px) {
  h3 {
    font-size: 24px;
    line-height: 32px;
  }
}

p {
  font-size: 16px;
  letter-spacing: normal;
  font-weight: 400;
  margin-bottom: 10px;
  line-height: 24px;
}
@media screen and (max-width: 992px) {
    p {
        font-size: 14px;
        line-height: 29px;
    }
}

strong {
    font-weight: 600;
}
table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    white-space: nowrap;
    display: block;
    overflow-x: auto;
    max-width: 100%;
    border-radius: 10px;
    margin-bottom: 20px;
}

table p {
    margin: 0;
}

tbody {
    width: calc(100% - 2px);
    display: table;
}

th {
    background: var(--footer-bg-color);
}

th, td {
    border: 1px solid var(--main-text-color);
    padding: 8px;
    box-sizing: border-box;
}

th:first-child {
    border-top-left-radius: 10px;
}

th:last-child {
    border-top-right-radius: 10px;
}

tr:last-child td:first-child {
    border-bottom-left-radius: 10px;
}

tr:last-child td:last-child {
    border-bottom-right-radius: 10px;
}

tr:first-child td:first-child {
    border-top-left-radius: 10px;
}

tr:first-child td:last-child {
    border-top-right-radius: 10px;
}

table::-webkit-scrollbar {
    height: 8px;
}

table::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}

table::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}



tr:nth-child(even) {
    /*background: #efefef;*/
}

footer, header, nav, section, main {
    display: block;
    position: relative;
}

main {
    background-color: var(--main-bg-color);
}

section {
    padding: 20px 0;
}

@media screen and (max-width: 768px) {
    section {
        padding: 20px 0;
    }
}

.montecrypto-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

@media (max-width: 1200px) {
    .montecrypto-container {
        max-width: 100%;
        padding: 0 15px;
    }
}

img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}


.montecrypto-row {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}
.montecrypto-col:first-child {
    width: 820px;

}
.montecrypto-col:last-child {
    flex: 0 0 330px;
}
@media (max-width: 1030px) {
    .montecrypto-row {
        flex-wrap: wrap;
        justify-content: center;
    }
    .montecrypto-col:first-child, .montecrypto-col:last-child {
        width: 100%;
        flex: auto;
    }
}

.montecrypto-jc-end {
    justify-content: end !important;
}

.montecrypto-jc-center {
    justify-content: center;
}

.montecrypto-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    text-align: center;
    font-weight: 700;
    font-size: 16px;
    line-height: initial;
    height: auto;
    padding: 10px 24px;
    border-radius: 18px;
    cursor: pointer;
    transition: transform 0.3s ease;
}
.montecrypto-btn:hover {
    transform: scale(1.1);
}
.montecrypto-btn__wrapper {
    display: flex;
    justify-content: center;
    gap: 20px;
}

@media screen and (max-width: 768px) {
    .montecrypto-btn__wrapper {
        gap: 20px;
    }
}
.montecrypto-btn-primary {
    color: var(--button-text-color);
    background-color: var(--button-bg-color);
    box-shadow: 0px 0px 10px 2px var(--button-bg-color);
}

.montecrypto-btn-primary:hover {
    color: var(--button-text-color);
    background-color: var(--button-bg-color);
}

.montecrypto-btn-secondary {
    color: var(--button-text-color);
    background-color: var(--button-second-bg-color);
    box-shadow: 0px 0px 10px 2px var(--button-second-bg-color);
}

.montecrypto-btn-secondary:hover {
    color: var(--button-text-color);
    background-color: var(--button-second-bg-color);
}

.montecrypto-btn-pulse {
    animation: pulse 1.5s infinite;
}

.montecrypto-btn-uppercase {
    text-transform: uppercase;
}
.montecrypto-header {
    background-color: var(--header-bg-color);
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.montecrypto-header ul, .montecrypto-header ol, .montecrypto-header li,
.montecrypto-footer ul, .montecrypto-footer ol, .montecrypto-footer li {
    margin: 0;
    padding: 0;
    border: 0;
    list-style-type: none;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    text-size-adjust: none;
}
.montecrypto-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.montecrypto-header__inner-primary {
    display: flex;
    align-items: center;
    /*width: 100%;*/
    justify-content: space-between;
    flex: auto;
}

.montecrypto-header__inner-second {
    display: flex;
    align-items: center;
    gap: 10px;
}

.montecrypto-header__row {
    flex-direction: row;
    height: 80px;
}

.montecrypto-header__inner-second .montecrypto-header__row {
    flex-direction: row;
    gap: 10px;
    height: auto;
}

.montecrypto-header__col {
    flex-direction: column;
}

.montecrypto-header__inner-second.montecrypto-header__col {
    padding: 10px 0;
}

.montecrypto-header__logo {
    display: flex;
    max-height: 60px;
    height: 100%;
}

.montecrypto-header__logo a {
    text-decoration: none;
    display: flex;
}
.montecrypto-header__logo img {
    object-fit: contain;
    border-radius: initial;
}

.montecrypto-header__nav {
    display: flex;
}
.montecrypto-header__nav ul {
    display: flex;
    gap: 10px;
    height: 100%;
    align-items: center;
    list-style-type: none;
    padding: 0;
}

.montecrypto-header__nav ul li {
    display: flex;
    align-items: center;
    height: 100%;
}

.montecrypto-header__nav ul li a {
    color: var(--button-text-color);
    text-decoration: none;
    padding: 10px;
}

.montecrypto-header__nav ul li a:hover {
    color: var(--main-text-color);
}

.montecrypto-section img  {
    max-width: 958px;
    display: block;
    margin: auto;
}

.montecrypto-section--main .montecrypto-container > :not(:last-child) {
    margin-bottom: 30px;
}

.montecrypto-btn__wrapper-main {
    max-width: 300px;
    width: 100%;
    margin: auto;
}

.montecrypto-btn__wrapper-main .montecrypto-btn-primary {
    padding: 20px 70px;
    border-radius: 30px;
}

.montecrypto-burger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 22px;
    cursor: pointer;
}

.montecrypto-burger-menu span {
    display: block;
    width: 100%;
    height: 4px;
    background-color: var(--main-text-color);
    border-radius: 2px;
    transition: all 0.3s ease-in-out;
}

.montecrypto-burger-menu.montecrypto-active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.montecrypto-burger-menu.montecrypto-active span:nth-child(2) {
    opacity: 0;
}

.montecrypto-burger-menu.montecrypto-active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

.montecrypto-section--content h1:first-of-type,
.montecrypto-section--content h2:first-of-type,
.montecrypto-section--content h3:first-of-type,
.montecrypto-section--content h4:first-of-type {
    margin-top: 0;
    margin-bottom: 30px;
}

.montecrypto-section--content h1:not(:first-of-type),
.montecrypto-section--content h2:not(:first-of-type),
.montecrypto-section--content h3:not(:first-of-type),
.montecrypto-section--content h4:not(:first-of-type) {
    margin: 30px 0;
}

footer {
    background-color: var(--footer-bg-color);;
    color: var(--main-text-color);
}

.montecrypto-footer__wrapper {
    display: flex;
    flex-direction: column;
    justify-self: center;
    padding: 20px 0;
    gap: 17px;
}

.montecrypto-footer__nav, .montecrypto-footer__icons, .montecrypto-footer__inner {
    display: flex;
    justify-content: center;
}

.montecrypto-footer__icons--link img {
    border-radius: initial;
}

.montecrypto-footer__columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

.montecrypto-footer__col {
    display: flex;
    flex-direction: column;
}

.montecrypto-footer__col-title {
    color: var(--button-bg-color);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 14px 0;
    padding: 0;
    line-height: 1.3;
}

.montecrypto-footer__col-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.montecrypto-footer__col-list li {
    margin: 0;
    padding: 0;
    list-style: none;
}

.montecrypto-footer__nav--link {
    text-decoration: none;
    color: var(--main-text-color);
    font-size: 14px;
}
.montecrypto-footer__nav--link:hover {
    color: var(--button-bg-color);
    text-decoration: underline;
}

.montecrypto-footer__icons {
    gap: 24px;
    flex-wrap: wrap;
}

.montecrypto-footer__inner p {
    font-size: 14px;
    font-weight: 400;
    line-height: 15px;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 var(--button-bg-color);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 0 15px 8px var(--button-bg-color);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 var(--button-bg-color);
    }
}

@media screen and (max-width: 768px) {
    .montecrypto-burger-menu {
        display: flex;
        order: 1;
    }
    .montecrypto-header__inner {
        justify-content: space-between;
        gap: 20px;
    }
    .montecrypto-header__logo {
        max-height: 50px;
    }
    .montecrypto-header__logo img {
        max-width: 100px;
    }

   #montecrypto-nav-menu {
       position: absolute;
       top: 68px;
       left: 0;
       width: 100%;
       height: 100vh;
       background-color: var(--header-bg-color);
       flex-direction: column;
       align-items: center;
       justify-content: flex-start !important;
       display: none;
   }

    .montecrypto-header__nav ul {
        flex-direction: column;
        text-align: center;
        width: 100%;
        height: auto;
        padding: 20px 0;
    }

    .montecrypto-header__nav ul li {
        padding: 10px 0;
    }

    .montecrypto-header .montecrypto-btn {
        padding: 6px 12px;
    }

    #montecrypto-nav-menu.montecrypto-active {
        display: flex;
    }

    .montecrypto-header__row {
       height: 68px;
    }

    .montecrypto-header__inner-second.montecrypto-header__col {
        flex-direction: row;
    }

    .montecrypto-footer__columns {
        grid-template-columns: 1fr;
        gap: 24px;
        text-align: center;
    }

    .montecrypto-footer__col-title {
        font-size: 13px;
        margin-bottom: 10px;
    }

    .montecrypto-footer__col-list {
        gap: 8px;
    }

    .montecrypto-footer__nav--link {
        font-size: 14px;
    }
}

/* FAQ definition list styling */
dl {
    margin: 0;
    padding: 0;
}

dt {
    font-size: 24px;
    font-weight: 700;
    line-height: 32px;
    color: var(--main-text-color);
    margin-top: 30px;
    margin-bottom: 15px;
}

dt:first-of-type {
    margin-top: 0;
}

dd {
    font-size: 16px;
    line-height: 24px;
    margin: 0 0 20px 0;
    padding: 0;
}

@media screen and (max-width: 992px) {
    dt {
        font-size: 20px;
        line-height: 28px;
    }
    dd {
        font-size: 14px;
        line-height: 22px;
    }
}
/* === Legal & E-E-A-T pages === */
.montecrypto-section--legal {
    padding: 40px 0 60px;
}

.montecrypto-section--legal h1 {
    text-align: left;
    margin-bottom: 20px;
}

.montecrypto-section--legal .montecrypto-page-meta {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.montecrypto-section--legal h2 {
    margin-top: 40px;
}

.montecrypto-section--legal h3 {
    margin-top: 30px;
    font-size: 22px;
    line-height: 32px;
}

.montecrypto-section--legal article ul,
.montecrypto-section--legal article ol {
    margin: 15px 0 20px 25px;
    padding-left: 0;
}

.montecrypto-section--legal article ul li,
.montecrypto-section--legal article ol li {
    margin-bottom: 10px;
    line-height: 1.7;
}

.montecrypto-section--legal article ul {
    list-style-type: disc;
}

.montecrypto-section--legal article ol {
    list-style-type: decimal;
}

.montecrypto-section--legal a {
    color: var(--button-bg-color);
    text-decoration: underline;
}

.montecrypto-section--legal a:hover {
    color: var(--button-second-bg-color);
}

.montecrypto-section--legal strong {
    color: #fff;
    font-weight: 700;
}

.montecrypto-callout {
    background: rgba(248, 223, 19, 0.08);
    border-left: 3px solid var(--button-bg-color);
    padding: 18px 22px;
    margin: 25px 0;
    border-radius: 4px;
}

.montecrypto-callout p {
    margin-bottom: 8px;
}

.montecrypto-callout p:last-child {
    margin-bottom: 0;
}

.montecrypto-help-table {
    margin: 25px 0;
}

.montecrypto-page-cta {
    margin-top: 50px;
    padding: 30px;
    background: rgba(248, 223, 19, 0.05);
    border-radius: 10px;
    text-align: center;
}

.montecrypto-page-cta h3 {
    margin-top: 0;
}

@media (max-width: 768px) {
    .montecrypto-section--legal {
        padding: 25px 0 40px;
    }
    .montecrypto-section--legal h1 {
        font-size: 26px;
        line-height: 34px;
    }
    .montecrypto-section--legal h2 {
        font-size: 22px;
        line-height: 30px;
    }
    .montecrypto-section--legal h3 {
        font-size: 19px;
        line-height: 26px;
    }
    .montecrypto-section--legal article {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    .montecrypto-section--legal article ul,
    .montecrypto-section--legal article ol {
        margin-left: 18px;
    }
    .montecrypto-section--legal a {
        word-break: break-word;
        overflow-wrap: anywhere;
    }
    .montecrypto-callout {
        padding: 14px 16px;
        margin: 18px 0;
    }
    .montecrypto-callout a {
        word-break: break-all;
    }
    /* Tables on mobile: force horizontal scroll with visual indicator */
    .montecrypto-section--legal table {
        font-size: 13px;
    }
    .montecrypto-section--legal table th,
    .montecrypto-section--legal table td {
        padding: 6px 8px;
    }
    /* Long emails/URLs in paragraphs */
    .montecrypto-section--legal p,
    .montecrypto-section--legal li {
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }
}

/* === Inline content links — желтый, как в legal pages === */
/* Применяется ко всем ссылкам внутри проза-контента <main>,
   но НЕ затрагивает .montecrypto-btn (кнопки CTA), 
   логотип в хедере, регулятор-логотипы в футере */
main p a:not(.montecrypto-btn):not(.montecrypto-footer__nav--link),
main li a:not(.montecrypto-btn):not(.montecrypto-footer__nav--link),
main dd a:not(.montecrypto-btn):not(.montecrypto-footer__nav--link),
main dt a:not(.montecrypto-btn):not(.montecrypto-footer__nav--link),
main td a:not(.montecrypto-btn):not(.montecrypto-footer__nav--link) {
    color: var(--button-bg-color) !important;
    text-decoration: underline !important;
}

main p a:not(.montecrypto-btn):hover,
main li a:not(.montecrypto-btn):hover,
main dd a:not(.montecrypto-btn):hover,
main dt a:not(.montecrypto-btn):hover,
main td a:not(.montecrypto-btn):hover {
    color: var(--button-second-bg-color) !important;
    text-decoration: none !important;
}
