/* =========================================================
   ПОЛЬЗОВАТЕЛЬСКОЕ СОГЛАШЕНИЕ
   TMB-URIST.RU
   PREMIUM LEGAL DOCUMENT
   ========================================================= */


/* =========================================================
   RESET
   ========================================================= */

.agreement-page,
.agreement-page *,
.agreement-page *::before,
.agreement-page *::after {
    box-sizing: border-box;
}


/* =========================================================
   PAGE
   ========================================================= */

.agreement-page {
    position: relative;

    width: 100%;
    min-height: 100vh;

    padding: 30px 0 90px;

    background:
        radial-gradient(
            circle at 0% 0%,
            rgba(37, 99, 235, 0.055),
            transparent 28%
        ),
        radial-gradient(
            circle at 100% 10%,
            rgba(37, 99, 235, 0.055),
            transparent 30%
        ),
        #f5f8fc;

    overflow: hidden;
}


/* =========================================================
   CONTAINER
   ========================================================= */

.agreement-container {
    width: 100%;
    max-width: 1760px;

    margin: 0 auto;

    padding: 0 28px;
}


/* =========================================================
   DOCUMENT
   ========================================================= */

.agreement-document {
    position: relative;

    width: 100%;

    margin: 0 auto;

    background: #ffffff;

    border: 1px solid #e2e8f0;

    border-radius: 26px;

    overflow: hidden;

    box-shadow:
        0 30px 90px rgba(15, 23, 42, 0.08),
        0 8px 30px rgba(15, 23, 42, 0.035);

    transition:
        background 0.3s ease,
        color 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}


/* =========================================================
   HEADER / HERO
   ========================================================= */

.agreement-header {
    position: relative;

    width: 100%;

    min-height: 470px;

    padding: 82px 70px 78px;

    display: flex;

    flex-direction: column;

    justify-content: center;

    align-items: center;

    text-align: center;

    overflow: hidden;

    background:
        linear-gradient(
            135deg,
            #ffffff 0%,
            #f9fbff 58%,
            #f1f6ff 100%
        );

    border-bottom: 1px solid #e5eaf1;
}


/* =========================================================
   DECORATION
   ========================================================= */

.agreement-header::before {
    content: "";

    position: absolute;

    width: 720px;
    height: 720px;

    right: -210px;
    top: -430px;

    border-radius: 50%;

    border: 1px solid rgba(37, 99, 235, 0.065);

    box-shadow:
        0 0 0 70px rgba(37, 99, 235, 0.018),
        0 0 0 145px rgba(37, 99, 235, 0.012),
        0 0 0 220px rgba(37, 99, 235, 0.008);

    pointer-events: none;
}


.agreement-header::after {
    content: "";

    position: absolute;

    width: 280px;
    height: 280px;

    left: -145px;
    bottom: -180px;

    border-radius: 50%;

    background: rgba(37, 99, 235, 0.025);

    pointer-events: none;
}


/* =========================================================
   HEADER CONTENT
   ========================================================= */

.agreement-header > * {
    position: relative;

    z-index: 2;
}


/* =========================================================
   LABEL
   ========================================================= */

.agreement-label {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    width: fit-content;

    margin: 0 auto 28px;

    padding: 10px 15px;

    border-radius: 8px;

    background: #eff6ff;

    color: #2563eb;

    font-size: 10px;

    line-height: 1;

    font-weight: 850;

    letter-spacing: 1px;

    text-transform: uppercase;
}


/* =========================================================
   TITLE
   ========================================================= */

.agreement-title {
    width: 100%;

    max-width: 1350px;

    margin: 0 auto;

    color: #0f172a;

    font-size: clamp(54px, 5.2vw, 92px);

    line-height: 0.98;

    letter-spacing: -4.5px;

    font-weight: 800;

    text-align: center;
}


.agreement-title span {
    display: block;

    margin-top: 8px;

    color: #2563eb;
}


/* =========================================================
   INTRO
   ========================================================= */

.agreement-intro {
    width: 100%;

    max-width: 950px;

    margin: 35px auto 0;

    color: #64748b;

    font-size: 18px;

    line-height: 1.72;

    text-align: center;
}


/* =========================================================
   META
   ========================================================= */

.agreement-meta {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        minmax(0, 1fr);

    gap: 18px;

    width: 100%;

    max-width: 1000px;

    margin: 38px auto 0;

    text-align: left;
}


.agreement-meta-item {
    min-height: 78px;

    padding: 16px 20px;

    display: flex;

    flex-direction: column;

    justify-content: center;

    gap: 7px;

    border: 1px solid #dfe6ef;

    border-radius: 12px;

    background: rgba(255, 255, 255, 0.78);

    transition:
        background 0.3s ease,
        border-color 0.3s ease;
}


.agreement-meta-item span {
    color: #94a3b8;

    font-size: 9px;

    line-height: 1;

    font-weight: 800;

    letter-spacing: 1px;

    text-transform: uppercase;
}


.agreement-meta-item strong {
    color: #0f172a;

    font-size: 13px;

    line-height: 1.4;

    font-weight: 750;
}


/* =========================================================
   MAIN CONTENT
   ========================================================= */

.agreement-content {
    width: min(1280px, calc(100% - 120px));

    margin: 0 auto;

    padding: 80px 0 65px;

    color: #475569;

    font-size: 16px;

    line-height: 1.85;
}


/* =========================================================
   NOTICE
   ========================================================= */

.agreement-notice {
    width: 100%;

    max-width: 1100px;

    margin: 0 auto 68px;

    padding: 28px 34px;

    border: 1px solid #e3e8ef;

    border-left: 4px solid #2563eb;

    border-radius: 0 14px 14px 0;

    background:
        linear-gradient(
            135deg,
            #f8fafc,
            #ffffff
        );

    color: #475569;

    text-align: left;
}


.agreement-notice p {
    margin: 0;

    font-size: 16px;

    line-height: 1.8;
}


/* =========================================================
   SECTIONS
   ========================================================= */

.agreement-section {
    position: relative;

    width: 100%;

    padding: 58px 0;

    border-top: 1px solid #e5eaf0;
}


.agreement-section:first-of-type {
    padding-top: 0;

    border-top: 0;
}


/* =========================================================
   SECTION TITLE
   ========================================================= */

.agreement-section h2 {
    width: 100%;

    margin: 0 auto 32px;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 18px;

    color: #0f172a;

    font-size: 30px;

    line-height: 1.25;

    letter-spacing: -0.8px;

    font-weight: 800;

    text-align: center;
}


/* =========================================================
   NUMBER
   ========================================================= */

.agreement-section h2 span {
    flex: 0 0 46px;

    width: 46px;
    height: 46px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 11px;

    background: #eff6ff;

    color: #2563eb;

    font-size: 11px;

    line-height: 1;

    font-weight: 900;

    letter-spacing: 0.4px;
}


/* =========================================================
   PARAGRAPHS
   ========================================================= */

.agreement-section p {
    width: 100%;

    max-width: 1100px;

    margin: 0 auto 20px;

    color: #475569;

    font-size: 16px;

    line-height: 1.85;

    text-align: left;
}


.agreement-section p:last-child {
    margin-bottom: 0;
}


/* =========================================================
   SUBHEADINGS
   ========================================================= */

.agreement-section h3 {
    width: 100%;

    max-width: 1100px;

    margin: 30px auto 15px;

    color: #0f172a;

    font-size: 19px;

    line-height: 1.4;

    font-weight: 800;

    text-align: left;
}


/* =========================================================
   LISTS
   ========================================================= */

.agreement-section ul {
    width: 100%;

    max-width: 1100px;

    margin: 18px auto 28px;

    padding: 0;

    list-style: none;
}


.agreement-section ul li {
    position: relative;

    padding: 7px 0 7px 32px;

    color: #475569;

    font-size: 16px;

    line-height: 1.75;

    text-align: left;
}


.agreement-section ul li::before {
    content: "";

    position: absolute;

    left: 5px;
    top: 18px;

    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: #2563eb;
}


/* =========================================================
   STRONG
   ========================================================= */

.agreement-content strong {
    color: #0f172a;

    font-weight: 750;
}


/* =========================================================
   LINKS
   ========================================================= */

.agreement-content a {
    color: #2563eb;

    font-weight: 650;

    text-decoration: none;

    border-bottom: 1px solid rgba(37, 99, 235, 0.25);

    transition:
        color 0.2s ease,
        border-color 0.2s ease;
}


.agreement-content a:hover {
    color: #1d4ed8;

    border-color: #1d4ed8;
}


/* =========================================================
   DOCUMENT FOOTER
   ========================================================= */

.agreement-document-footer {
    width: 100%;

    min-height: 82px;

    padding: 24px 70px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

    border-top: 1px solid #e3e8ef;

    background: #f8fafc;
}


.agreement-document-footer span {
    color: #94a3b8;

    font-size: 12px;

    font-weight: 650;
}


.agreement-document-footer strong {
    color: #2563eb;

    font-size: 13px;

    font-weight: 800;
}


/* =========================================================
   DARK THEME
   ========================================================= */

body.dark-theme .agreement-page {
    background:
        radial-gradient(
            circle at 0% 0%,
            rgba(59, 130, 246, 0.07),
            transparent 28%
        ),
        radial-gradient(
            circle at 100% 10%,
            rgba(59, 130, 246, 0.06),
            transparent 30%
        ),
        #0f141b;
}


body.dark-theme .agreement-document {
    background: #181d25;

    border-color: #293241;

    box-shadow:
        0 30px 90px rgba(0, 0, 0, 0.30),
        0 8px 30px rgba(0, 0, 0, 0.20);
}


body.dark-theme .agreement-header {
    background:
        linear-gradient(
            135deg,
            #181d25 0%,
            #171d27 60%,
            #151d2a 100%
        );

    border-color: #293241;
}


body.dark-theme .agreement-header::before {
    border-color: rgba(96, 165, 250, 0.07);

    box-shadow:
        0 0 0 70px rgba(96, 165, 250, 0.018),
        0 0 0 145px rgba(96, 165, 250, 0.012),
        0 0 0 220px rgba(96, 165, 250, 0.008);
}


body.dark-theme .agreement-label {
    background: rgba(37, 99, 235, 0.14);

    color: #60a5fa;
}


body.dark-theme .agreement-title {
    color: #f1f5f9;
}


body.dark-theme .agreement-title span {
    color: #60a5fa;
}


body.dark-theme .agreement-intro {
    color: #94a3b8;
}


body.dark-theme .agreement-meta-item {
    background: #1c232d;

    border-color: #303a49;
}


body.dark-theme .agreement-meta-item strong {
    color: #e5e7eb;
}


body.dark-theme .agreement-content {
    color: #aeb7c5;
}


body.dark-theme .agreement-notice {
    background:
        linear-gradient(
            135deg,
            #1c232d,
            #181d25
        );

    border-color: #303a49;

    border-left-color: #3b82f6;

    color: #b6c0ce;
}


body.dark-theme .agreement-section {
    border-color: #293241;
}


body.dark-theme .agreement-section h2 {
    color: #f1f5f9;
}


body.dark-theme .agreement-section h2 span {
    background: rgba(37, 99, 235, 0.14);

    color: #60a5fa;
}


body.dark-theme .agreement-section h3 {
    color: #e5e7eb;
}


body.dark-theme .agreement-section p,
body.dark-theme .agreement-section ul li {
    color: #aeb7c5;
}


body.dark-theme .agreement-content strong {
    color: #e5e7eb;
}


body.dark-theme .agreement-content a {
    color: #60a5fa;

    border-color: rgba(96, 165, 250, 0.25);
}


body.dark-theme .agreement-content a:hover {
    color: #93c5fd;

    border-color: #93c5fd;
}


body.dark-theme .agreement-document-footer {
    background: #141a22;

    border-color: #293241;
}


body.dark-theme .agreement-document-footer span {
    color: #7f8a9b;
}


body.dark-theme .agreement-document-footer strong {
    color: #60a5fa;
}


/* =========================================================
   1600 PX
   ========================================================= */

@media (max-width: 1600px) {

    .agreement-container {
        max-width: 1520px;

        padding-left: 22px;
        padding-right: 22px;
    }

    .agreement-header {
        padding-left: 60px;
        padding-right: 60px;
    }

    .agreement-content {
        width: min(1200px, calc(100% - 100px));
    }

    .agreement-document-footer {
        padding-left: 60px;
        padding-right: 60px;
    }
}


/* =========================================================
   1400 PX
   ========================================================= */

@media (max-width: 1400px) {

    .agreement-container {
        max-width: 100%;

        padding-left: 16px;
        padding-right: 16px;
    }

    .agreement-header {
        padding: 70px 55px;
    }

    .agreement-content {
        width: min(1120px, calc(100% - 80px));
    }

    .agreement-document-footer {
        padding-left: 55px;
        padding-right: 55px;
    }
}


/* =========================================================
   1200 PX
   ========================================================= */

@media (max-width: 1200px) {

    .agreement-header {
        min-height: 430px;

        padding: 65px 45px;
    }

    .agreement-title {
        font-size: clamp(48px, 5.5vw, 72px);

        letter-spacing: -3px;
    }

    .agreement-intro {
        max-width: 800px;

        font-size: 17px;
    }

    .agreement-content {
        width: min(1020px, calc(100% - 60px));

        padding-top: 65px;
    }

    .agreement-section h2 {
        font-size: 28px;
    }

    .agreement-document-footer {
        padding-left: 45px;
        padding-right: 45px;
    }
}


/* =========================================================
   1000 PX
   ========================================================= */

@media (max-width: 1000px) {

    .agreement-page {
        padding-top: 20px;
    }

    .agreement-container {
        padding-left: 10px;
        padding-right: 10px;
    }

    .agreement-document {
        border-radius: 20px;
    }

    .agreement-header {
        min-height: 400px;

        padding: 58px 35px;
    }

    .agreement-title {
        font-size: 56px;

        letter-spacing: -2.5px;
    }

    .agreement-intro {
        max-width: 720px;

        font-size: 16px;
    }

    .agreement-meta {
        max-width: 760px;
    }

    .agreement-content {
        width: calc(100% - 60px);

        padding-top: 58px;
    }

    .agreement-section h2 {
        font-size: 27px;
    }

    .agreement-document-footer {
        padding-left: 35px;
        padding-right: 35px;
    }
}


/* =========================================================
   800 PX
   ========================================================= */

@media (max-width: 800px) {

    .agreement-header {
        min-height: auto;

        padding: 50px 28px;
    }

    .agreement-title {
        font-size: 48px;

        line-height: 1;

        letter-spacing: -2px;
    }

    .agreement-intro {
        margin-top: 26px;

        font-size: 15px;
    }

    .agreement-meta {
        grid-template-columns: 1fr;

        gap: 10px;

        margin-top: 28px;
    }

    .agreement-content {
        width: calc(100% - 44px);

        padding: 48px 0 40px;
    }

    .agreement-notice {
        padding: 22px 24px;

        margin-bottom: 48px;
    }

    .agreement-section {
        padding: 44px 0;
    }

    .agreement-section h2 {
        font-size: 25px;

        gap: 13px;
    }

    .agreement-document-footer {
        padding: 23px 28px;
    }
}


/* =========================================================
   650 PX
   ========================================================= */

@media (max-width: 650px) {

    .agreement-page {
        padding: 10px 0 45px;
    }

    .agreement-container {
        padding-left: 6px;
        padding-right: 6px;
    }

    .agreement-document {
        border-radius: 16px;
    }

    .agreement-header {
        padding: 42px 22px;
    }

    .agreement-label {
        margin-bottom: 20px;

        padding: 9px 12px;

        font-size: 9px;
    }

    .agreement-title {
        font-size: 40px;

        line-height: 1;

        letter-spacing: -1.5px;
    }

    .agreement-intro {
        margin-top: 24px;

        font-size: 14px;

        line-height: 1.7;
    }

    .agreement-meta-item {
        min-height: 68px;

        padding: 14px 16px;
    }

    .agreement-content {
        width: calc(100% - 32px);

        padding: 40px 0 30px;

        font-size: 15px;
    }

    .agreement-notice {
        padding: 19px 21px;

        margin-bottom: 40px;

        font-size: 14px;
    }

    .agreement-notice p {
        font-size: 14px;
    }

    .agreement-section {
        padding: 38px 0;
    }

    .agreement-section h2 {
        font-size: 22px;

        gap: 11px;
    }

    .agreement-section h2 span {
        flex-basis: 40px;

        width: 40px;
        height: 40px;

        border-radius: 9px;
    }

    .agreement-section p {
        font-size: 14px;

        line-height: 1.78;
    }

    .agreement-section h3 {
        font-size: 17px;

        line-height: 1.45;
    }

    .agreement-section ul li {
        padding-left: 27px;

        font-size: 14px;

        line-height: 1.75;
    }

    .agreement-document-footer {
        padding: 21px 22px;

        flex-direction: column;

        align-items: center;

        text-align: center;

        gap: 8px;
    }
}


/* =========================================================
   480 PX
   ========================================================= */

@media (max-width: 480px) {

    .agreement-header {
        padding: 35px 18px;
    }

    .agreement-title {
        font-size: 34px;

        letter-spacing: -1.1px;
    }

    .agreement-intro {
        font-size: 13px;
    }

    .agreement-content {
        width: calc(100% - 24px);

        padding-top: 34px;
    }

    .agreement-notice {
        padding: 17px;

        font-size: 13px;
    }

    .agreement-notice p {
        font-size: 13px;
    }

    .agreement-section h2 {
        font-size: 20px;

        line-height: 1.3;
    }

    .agreement-section h2 span {
        flex-basis: 36px;

        width: 36px;
        height: 36px;

        font-size: 10px;
    }

    .agreement-section h3 {
        font-size: 16px;
    }
}


/* =========================================================
   380 PX
   ========================================================= */

@media (max-width: 380px) {

    .agreement-header {
        padding-left: 15px;
        padding-right: 15px;
    }

    .agreement-title {
        font-size: 30px;

        letter-spacing: -0.8px;
    }

    .agreement-content {
        width: calc(100% - 18px);
    }

    .agreement-section h2 {
        font-size: 18px;
    }
}


/* =========================================================
   1800+ PX
   ========================================================= */

@media (min-width: 1800px) {

    .agreement-container {
        max-width: 1840px;
    }

    .agreement-header {
        padding-left: 90px;
        padding-right: 90px;
    }

    .agreement-content {
        width: min(1350px, calc(100% - 220px));
    }

    .agreement-title {
        font-size: 96px;
    }

    .agreement-document-footer {
        padding-left: 90px;
        padding-right: 90px;
    }
}


/* =========================================================
   2200+ PX
   ========================================================= */

@media (min-width: 2200px) {

    .agreement-container {
        max-width: 2100px;
    }

    .agreement-header {
        padding-left: 120px;
        padding-right: 120px;
    }

    .agreement-content {
        width: min(1450px, calc(100% - 280px));
    }

    .agreement-title {
        font-size: 105px;
    }

    .agreement-document-footer {
        padding-left: 120px;
        padding-right: 120px;
    }
}


/* =========================================================
   SMOOTH RENDERING
   ========================================================= */

.agreement-page,
.agreement-document,
.agreement-header,
.agreement-content,
.agreement-section,
.agreement-notice {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}