/* Merssel.ru — cookie, form, legal pages */

:root {
    --ms-gold: #ffd977;
    --ms-gold-hover: #ffe8a8;
    --ms-dark: #13171a;
    --ms-panel: #262626;
    --ms-bg: #1b1f23;
    --ms-text: #c3c3c3;
    --ms-text-soft: #a1a1a1;
    --ms-white: #f2f2f2;
}

/* Hero subtitle on homepage */
#rec681876498 .t154__descr {
    color: var(--ms-gold);
}

/* Popup form — style like merssel.vip */
#rec681974542 .t-popup__container {
    background-color: var(--ms-panel) !important;
    box-shadow: 0 0 3px 1px rgba(55, 55, 55, .5);
    max-width: 560px;
}

#rec681974542 .t702__wrapper {
    padding: 22px 33px;
}

#rec681974542 .t702__text-wrapper {
    margin-bottom: 12px;
    text-align: left;
}

#rec681974542 .t702__title {
    color: var(--ms-gold) !important;
    font-size: 18px !important;
    line-height: 1.2 !important;
    font-weight: 400 !important;
    margin: 0 0 10px;
}

#rec681974542 .t702__descr {
    color: var(--ms-text-soft) !important;
    font-size: 16px;
    font-weight: 300;
    padding: 0 0 10px;
    margin: 0;
}

#rec681974542 .t-input-group {
    margin-bottom: 12px;
}

#rec681974542 .t-input,
#rec681974542 textarea.t-input {
    background-color: var(--ms-dark) !important;
    border: none !important;
    border-radius: 8px !important;
    color: #d3d3d3 !important;
    font-size: 14px;
    padding: 4px 4px 4px 19px !important;
    height: 50px;
    box-sizing: border-box;
}

#rec681974542 textarea.t-input {
    height: auto;
    min-height: 72px;
    padding: 10px 20px !important;
    line-height: 22px;
    resize: vertical;
}

#rec681974542 .t-submit {
    width: 100%;
    height: 50px;
    background-color: var(--ms-gold) !important;
    color: #282828 !important;
    border: none;
    border-radius: 8px !important;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
}

#rec681974542 .t-submit:hover {
    background-color: var(--ms-gold-hover) !important;
}

#rec681974542 .t702__form-bottom-text {
    display: none;
}

.agreement-consent {
    display: block;
    margin: 4px 0 12px;
}

.agreement-consent__label {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    cursor: pointer;
    padding: 5px 0 10px 5px;
}

.agreement-consent__input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.agreement-consent__box {
    width: 18px;
    min-width: 18px;
    height: 18px;
    flex: 0 0 18px;
    border: 1px solid var(--ms-gold);
    background: transparent;
    border-radius: 4px;
    position: relative;
    display: inline-block;
    margin-top: 2px;
}

.agreement-consent__input:checked + .agreement-consent__box::after {
    content: "";
    position: absolute;
    left: 5px;
    top: 1px;
    width: 5px;
    height: 10px;
    border-style: solid;
    border-color: var(--ms-gold);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.agreement-consent.error .agreement-consent__box {
    border-color: #ff8080;
    background-color: rgba(255, 128, 128, .15);
}

.agreement-message {
    color: #d9dada;
    font-family: 'Noto Sans', Arial, sans-serif;
    font-size: 14px;
    line-height: 1.55;
    font-weight: 300;
    text-align: left;
}

.agreement-message a,
#allrecords .agreement-message a {
    color: var(--ms-gold);
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
    text-decoration: underline;
}

.agreement-message a:hover,
#allrecords .agreement-message a:hover {
    text-decoration: none;
    color: var(--ms-gold-hover);
}

/* Cookie popup */
.cookie-popup {
    position: fixed;
    left: 20px;
    right: auto;
    bottom: 20px;
    z-index: 10050;
    max-width: 480px;
    width: calc(100% - 40px);
}

.cookie-popup__inner {
    background: var(--ms-dark);
    color: var(--ms-white);
    border: 1px solid #424447;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, .35);
}

.cookie-popup__text {
    margin: 0 0 14px;
    font-size: 13px;
    line-height: 1.5;
    font-family: 'Noto Sans', Arial, sans-serif;
    font-weight: 300;
}

.cookie-popup__text a {
    color: var(--ms-gold);
    text-decoration: underline;
}

.cookie-popup__text a:hover {
    text-decoration: none;
}

.cookie-popup__btn {
    background-color: var(--ms-gold);
    width: 100%;
    height: 42px;
    cursor: pointer;
    border: none;
    outline: none;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 500;
    font-size: 15px;
    line-height: 160%;
    color: #282828;
    border-radius: 8px;
    font-family: 'Noto Sans', Arial, sans-serif;
}

.cookie-popup__btn:hover {
    background-color: var(--ms-gold-hover);
}

/* Legal inner pages */
html, body {
    margin: 0;
}

.ms-page {
    background: #000;
    min-height: 100vh;
    color: var(--ms-white);
    font-family: 'Noto Sans', Arial, sans-serif;
}

.ms-header__nav li {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ms-header {
    background: rgba(0, 0, 0, .85);
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
}

.ms-header__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    box-sizing: border-box;
}

.ms-header__logo img {
    max-height: 80px;
    display: block;
}

.ms-header__nav {
    display: flex;
    align-items: center;
    gap: 30px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.ms-header__nav a {
    color: #fff;
    text-decoration: none;
    font-size: 20px;
    font-weight: 600;
}

.ms-header__nav a:hover {
    color: var(--ms-gold);
}

.ms-header__socials {
    display: flex;
    gap: 10px;
    align-items: center;
}

.ms-header__socials a {
    display: block;
    width: 30px;
    height: 30px;
}

.ms-header__phone {
    display: none;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

.ms-header__phone:hover {
    color: var(--ms-gold);
}

#rec681938237 .t464__text a {
    color: #a4a4a4 !important;
    text-decoration: underline;
}

#rec681938237 .t464__text a:hover {
    color: var(--ms-gold) !important;
}

.ms-hero {
    position: relative;
    min-height: 42vh;
    background: #000 url('/images/mrsl_main_1.jpg') center / cover no-repeat;
    display: flex;
    align-items: flex-end;
}

.ms-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .35);
}

.ms-hero__inner {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 140px 40px 40px;
    box-sizing: border-box;
}

.ms-hero__crumbs {
    font-size: 14px;
    color: #c3c3c3;
    margin-bottom: 12px;
}

.ms-hero__crumbs a {
    color: #fff;
    text-decoration: none;
}

.ms-hero__crumbs a:hover {
    color: var(--ms-gold);
}

.ms-hero h1 {
    margin: 0;
    color: #fff;
    font-size: 36px;
    font-weight: 600;
    line-height: 1.25;
    font-family: 'Noto Sans', Arial, sans-serif;
}

.ms-legal {
    background: var(--ms-bg);
}

.ms-legal__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 42px 40px 80px;
    box-sizing: border-box;
}

.ms-legal h2,
.privacy-h2 {
    color: var(--ms-text);
    margin: 1.2em 0 .6em;
    font-size: 21px;
    font-weight: 700;
}

.ms-legal p,
.ms-legal li {
    color: var(--ms-text);
    font-size: 16px;
    line-height: 1.55;
    margin: 1em 0;
    font-weight: 300;
}

.ms-legal a {
    color: var(--ms-gold);
    text-decoration: underline;
}

.ms-legal a:hover {
    text-decoration: none;
}

.ms-legal ul {
    padding-left: 22px;
}

.ms-footer {
    background: #171717;
    padding: 30px 0;
}

.ms-footer__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    gap: 40px;
    box-sizing: border-box;
}

.ms-footer__logo {
    max-width: 200px;
    margin-bottom: 16px;
}

.ms-footer__text {
    color: #a4a4a4;
    font-size: 14px;
    line-height: 1.55;
    font-weight: 300;
}

.ms-footer__text a,
#allrecords .ms-footer-links a,
.ms-footer-links a {
    color: #a4a4a4;
    text-decoration: underline;
}

.ms-footer__text a:hover,
.ms-footer-links a:hover {
    color: var(--ms-gold);
}

.ms-footer-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 12px 0;
}

.ms-footer__title a {
    color: #6b6b6b;
    text-transform: uppercase;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.ms-footer__title a:hover {
    color: var(--ms-gold);
}

@media screen and (max-width: 980px) {
    .ms-header__nav {
        display: none;
    }

    .ms-header__phone {
        display: block;
    }

    .ms-header__inner,
    .ms-hero__inner,
    .ms-legal__inner,
    .ms-footer__inner {
        padding-left: 20px;
        padding-right: 20px;
    }

    .ms-hero h1 {
        font-size: 26px;
    }

    .ms-footer__inner {
        flex-direction: column;
    }
}

@media screen and (max-width: 560px) {
    #rec681974542 .t702__wrapper {
        padding: 20px 16px;
    }

    .cookie-popup {
        left: 12px;
        right: 12px;
        width: auto;
        max-width: none;
    }
}

@keyframes merssel-autofill {
    from { opacity: 1; }
    to { opacity: 1; }
}

input[type="tel"]:-webkit-autofill {
    animation-name: merssel-autofill;
}
