/* =========================================================
   TMB-URIST.RU
   contracts / CONTRACTS
   STYLE 1 — PREMIUM / CLEAN / CORPORATE
   ========================================================= */


/* =========================================================
   01. VARIABLES
   ========================================================= */

:root {

    --contracts-blue: #2563eb;
    --contracts-blue-dark: #1d4ed8;

    --contracts-blue-light: #eff6ff;
    --contracts-blue-border: #dbeafe;

    --contracts-dark: #0f172a;
    --contracts-text: #334155;
    --contracts-muted: #64748b;

    --contracts-border: #e2e8f0;

    --contracts-white: #ffffff;
    --contracts-bg: #f8fafc;

    --contracts-container: 1320px;

    --contracts-radius: 16px;

    --contracts-shadow:
        0 8px 25px rgba(15, 23, 42, 0.04);

    --contracts-shadow-hover:
        0 18px 40px rgba(15, 23, 42, 0.08);
}


/* =========================================================
   02. GLOBAL SAFETY
   ========================================================= */

.contracts-hero *,
.contracts-services *,
.contracts-advantages *,
.contracts-prices *,
.contracts-cta * {
    box-sizing: border-box;
}


.contracts-hero,
.contracts-services,
.contracts-advantages,
.contracts-prices,
.contracts-cta {

    width: 100%;
    max-width: 100%;

    overflow: hidden;
}


/* =========================================================
   03. CONTAINER
   ========================================================= */

.contracts-hero .container,
.contracts-services .container,
.contracts-advantages .container,
.contracts-prices .container,
.contracts-cta .container {

    width: 100%;

    max-width: var(--contracts-container);

    margin-left: auto;
    margin-right: auto;

    padding-left: 30px;
    padding-right: 30px;
}


/* =========================================================
   04. HERO
   ========================================================= */

.contracts-hero {

    position: relative;

    padding-top: 72px;
    padding-bottom: 76px;

    background:
        linear-gradient(
            180deg,
            #f8fbff 0%,
            #f4f8fd 100%
        );

    border-bottom: 1px solid #e5edf7;
}


.contracts-hero::before {

    content: "";

    position: absolute;

    width: 500px;
    height: 500px;

    top: -330px;
    right: -140px;

    border-radius: 50%;

    background:
        rgba(37, 99, 235, 0.045);

    pointer-events: none;
}


.contracts-hero::after {

    content: "";

    position: absolute;

    width: 350px;
    height: 350px;

    left: -220px;
    bottom: -270px;

    border-radius: 50%;

    background:
        rgba(96, 165, 250, 0.045);

    pointer-events: none;
}


/* =========================================================
   05. HERO GRID
   ========================================================= */

.contracts-hero-grid {

    position: relative;

    z-index: 2;

    width: 100%;

    display: grid;

    grid-template-columns:
        minmax(0, 1.55fr)
        minmax(190px, 0.60fr)
        minmax(220px, 0.75fr);

    gap: 46px;

    align-items: center;
}


/* =========================================================
   06. HERO LEFT
   ========================================================= */

.contracts-left {

    width: 100%;

    min-width: 0;

    max-width: 740px;
}


/* =========================================================
   07. HERO TITLE
   ========================================================= */

.contracts-hero .contracts-title {

    margin: 0;

    color: var(--contracts-dark);

    font-size: clamp(42px, 4.3vw, 58px);

    line-height: 1.02;

    font-weight: 800;

    letter-spacing: -2.2px;
}


.contracts-hero .contracts-title span {

    display: block;

    margin-top: 5px;

    color: var(--contracts-blue);
}


/* =========================================================
   08. HERO SUBTITLE
   ========================================================= */

.contracts-subtitle {

    max-width: 680px;

    margin: 28px 0 0;

    color: var(--contracts-muted);

    font-size: 17px;

    line-height: 1.7;

    font-weight: 400;
}


/* =========================================================
   09. HERO CENTER
   ========================================================= */

.contracts-center {

    width: 100%;

    min-width: 0;

    max-width: 235px;

    display: flex;

    flex-direction: column;

    gap: 12px;
}


/* =========================================================
   10. HERO BUTTONS
   ========================================================= */

.contracts-hero .btn {

    width: 100%;

    min-height: 52px;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 0 18px;

    border-radius: 10px;

    font-size: 14px;

    line-height: 1.2;

    font-weight: 700;

    text-align: center;

    text-decoration: none;

    transition:
        transform .25s ease,
        box-shadow .25s ease,
        background .25s ease,
        border-color .25s ease;
}


.contracts-hero .btn-primary,
.contracts-cta .btn-primary {

    color: #ffffff;

    background: var(--contracts-blue);

    border: 1px solid var(--contracts-blue);

    box-shadow:
        0 7px 18px rgba(37, 99, 235, .15);
}


.contracts-hero .btn-primary:hover,
.contracts-cta .btn-primary:hover {

    color: #ffffff;

    background: var(--contracts-blue-dark);

    border-color: var(--contracts-blue-dark);

    transform: translateY(-2px);

    box-shadow:
        0 12px 26px rgba(37, 99, 235, .22);
}


.contracts-hero .btn-outline {

    color: var(--contracts-blue);

    background: #ffffff;

    border: 1px solid var(--contracts-blue);
}


.contracts-hero .btn-outline:hover {

    color: var(--contracts-blue-dark);

    background: var(--contracts-blue-light);

    border-color: var(--contracts-blue-dark);

    transform: translateY(-2px);
}


/* =========================================================
   11. HERO RIGHT
   ========================================================= */

.contracts-right {

    min-width: 0;

    display: flex;

    flex-direction: column;

    gap: 19px;
}


.contracts-right .feature {

    position: relative;

    min-width: 0;

    padding-left: 28px;

    color: var(--contracts-dark);

    font-size: 14px;

    line-height: 1.55;

    font-weight: 600;
}


.contracts-right .feature::before {

    content: "✓";

    position: absolute;

    left: 0;
    top: 0;

    color: #16a34a;

    font-size: 15px;

    line-height: 1.55;

    font-weight: 800;
}


/* =========================================================
   12. SECTIONS
   ========================================================= */

.contracts-services {

    padding-top: 78px;
    padding-bottom: 78px;

    background: #ffffff;
}


.contracts-advantages {

    padding-top: 78px;
    padding-bottom: 78px;

    background: #ffffff;
}


.contracts-prices {

    padding-top: 78px;
    padding-bottom: 85px;

    background: var(--contracts-bg);
}


.contracts-cta {

    padding-top: 30px;
    padding-bottom: 80px;

    background: #ffffff;
}


/* =========================================================
   13. SECTION TITLE
   ========================================================= */

.contracts-section-title {

    position: relative;

    display: block;

    width: fit-content;

    margin: 0 0 40px;

    padding-bottom: 14px;

    color: var(--contracts-dark);

    font-size: clamp(34px, 3.2vw, 43px);

    line-height: 1.15;

    font-weight: 800;

    letter-spacing: -1px;
}


.contracts-section-title::after {

    content: "";

    position: absolute;

    left: 0;
    bottom: 0;

    width: 70px;
    height: 4px;

    border-radius: 4px;

    background:
        linear-gradient(
            90deg,
            #2563eb,
            #60a5fa
        );
}


/* =========================================================
   14. SERVICES GRID
   ========================================================= */

.contracts-grid {

    width: 100%;

    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 26px;
}


/* =========================================================
   15. SERVICE CARD
   ========================================================= */

.contracts-item {

    position: relative;

    min-width: 0;

    min-height: 220px;

    padding:
        29px
        25px
        29px
        76px;

    background: #ffffff;

    border: 1px solid var(--contracts-border);

    border-radius: var(--contracts-radius);

    box-shadow: var(--contracts-shadow);

    transition:
        transform .3s ease,
        box-shadow .3s ease,
        border-color .3s ease;
}


.contracts-item::before {

    content: "";

    position: absolute;

    left: 0;
    top: 0;
    bottom: 0;

    width: 4px;

    background: var(--contracts-blue);

    border-radius: 4px 0 0 4px;
}


.contracts-item:hover {

    transform: translateY(-4px);

    border-color: var(--contracts-blue-border);

    box-shadow: var(--contracts-shadow-hover);
}


/* =========================================================
   16. NUMBER
   ========================================================= */

.contracts-item span {

    position: absolute;

    left: 19px;
    top: 30px;

    width: 42px;
    height: 42px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 10px;

    background: var(--contracts-blue-light);

    border: 1px solid var(--contracts-blue-border);

    color: var(--contracts-blue);

    font-size: 14px;

    line-height: 1;

    font-weight: 800;
}


/* =========================================================
   17. CARD TITLE
   ========================================================= */

.contracts-item h3 {

    margin: 0 0 10px;

    color: var(--contracts-dark);

    font-size: 20px;

    line-height: 1.3;

    font-weight: 700;
}


/* =========================================================
   18. CARD TEXT
   ========================================================= */

.contracts-item p {

    margin: 0;

    color: var(--contracts-muted);

    font-size: 14px;

    line-height: 1.7;
}


/* =========================================================
   19. ADVANTAGES
   ========================================================= */

.advantages-list {

    width: 100%;

    display: flex;

    flex-direction: column;

    border-top: 1px solid var(--contracts-border);
}


.advantage-row {

    display: grid;

    grid-template-columns:
        minmax(280px, .7fr)
        minmax(0, 1.3fr);

    gap: 55px;

    align-items: center;

    min-height: 125px;

    padding: 27px 0;

    border-bottom: 1px solid var(--contracts-border);
}


.advantage-row h3 {

    position: relative;

    margin: 0;

    padding-left: 27px;

    color: var(--contracts-dark);

    font-size: 19px;

    line-height: 1.4;

    font-weight: 700;
}


.advantage-row h3::before {

    content: "";

    position: absolute;

    left: 0;
    top: 8px;

    width: 8px;
    height: 8px;

    border-radius: 50%;

    background: var(--contracts-blue);
}


.advantage-row p {

    max-width: 700px;

    margin: 0;

    color: var(--contracts-muted);

    font-size: 15px;

    line-height: 1.7;
}


/* =========================================================
   20. TARIFF GRID
   ========================================================= */

.tariffs-grid {

    width: 100%;

    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 26px;

    align-items: stretch;
}


/* =========================================================
   21. TARIFF CARD
   ========================================================= */

.tariff-card {

    position: relative;

    min-width: 0;

    min-height: 360px;

    display: flex;

    flex-direction: column;

    padding:
        31px
        28px
        28px;

    background: #ffffff;

    border: 1px solid var(--contracts-border);

    border-radius: 17px;

    box-shadow:
        0 8px 24px rgba(15, 23, 42, .035);

    transition:
        transform .3s ease,
        box-shadow .3s ease,
        border-color .3s ease;
}


.tariff-card:hover {

    transform: translateY(-5px);

    border-color: var(--contracts-blue-border);

    box-shadow:
        0 18px 40px rgba(15, 23, 42, .08);
}


/* =========================================================
   22. TARIFF NUMBER
   ========================================================= */

.tariff-card::before {

    content: "01";

    width: 42px;
    height: 42px;

    display: flex;

    align-items: center;
    justify-content: center;

    margin-bottom: 25px;

    border-radius: 10px;

    background: var(--contracts-blue-light);

    border: 1px solid var(--contracts-blue-border);

    color: var(--contracts-blue);

    font-size: 14px;

    font-weight: 800;
}


.tariff-card:nth-child(2)::before {

    content: "02";
}


.tariff-card:nth-child(3)::before {

    content: "03";
}


/* =========================================================
   23. TARIFF TITLE
   ========================================================= */

.tariff-card h3 {

    margin: 0 0 14px;

    color: var(--contracts-dark);

    font-size: 23px;

    line-height: 1.25;

    font-weight: 800;

    letter-spacing: -.4px;
}


/* =========================================================
   24. PRICE
   ========================================================= */

.tariff-card .price {

    margin: 0 0 20px;

    color: var(--contracts-blue);

    font-size: 25px;

    line-height: 1.25;

    font-weight: 800;

    letter-spacing: -.5px;
}


/* =========================================================
   25. TARIFF TEXT
   ========================================================= */

.tariff-card p {

    max-width: 370px;

    margin: 0;

    color: var(--contracts-muted);

    font-size: 14px;

    line-height: 1.7;
}


/* =========================================================
   26. MIDDLE TARIFF HIGHLIGHT
   ========================================================= */

.tariff-card:nth-child(2) {

    border-color: var(--contracts-blue);

    box-shadow:
        0 14px 34px rgba(37, 99, 235, .10);
}


.tariff-card:nth-child(2)::after {

    content: "ОПТИМАЛЬНЫЙ ВАРИАНТ";

    position: absolute;

    top: 18px;
    right: 18px;

    padding: 6px 9px;

    border-radius: 7px;

    background: var(--contracts-blue-light);

    color: var(--contracts-blue);

    font-size: 9px;

    line-height: 1;

    font-weight: 800;

    letter-spacing: .25px;
}


/* =========================================================
   28. CTA
   ========================================================= */

.contracts-cta .cta-box {

    position: relative;

    overflow: hidden;

    width: 100%;

    min-height: 245px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 45px;

    padding: 50px 60px;

    background:
        linear-gradient(
            135deg,
            #0f172a 0%,
            #172554 100%
        );

    border-radius: 20px;

    box-shadow:
        0 18px 45px rgba(15, 23, 42, .12);
}


.contracts-cta .cta-box::before {

    content: "";

    position: absolute;

    width: 360px;
    height: 360px;

    right: -130px;
    top: -220px;

    border-radius: 50%;

    background:
        rgba(96, 165, 250, .11);

    pointer-events: none;
}


.contracts-cta .cta-box::after {

    content: "";

    position: absolute;

    width: 200px;
    height: 200px;

    left: -100px;
    bottom: -150px;

    border-radius: 50%;

    background:
        rgba(37, 99, 235, .10);

    pointer-events: none;
}


/* =========================================================
   29. CTA CONTENT
   ========================================================= */

.cta-content {

    position: relative;

    z-index: 2;

    min-width: 0;

    max-width: 800px;
}


/* =========================================================
   30. CTA TITLE
   ========================================================= */

.contracts-cta .cta-box h2 {

    margin: 0 0 15px;

    color: #ffffff;

    font-size: 36px;

    line-height: 1.18;

    font-weight: 800;

    letter-spacing: -1px;
}


/* =========================================================
   31. CTA TEXT
   ========================================================= */

.contracts-cta .cta-box p {

    max-width: 720px;

    margin: 0;

    color: #cbd5e1;

    font-size: 15px;

    line-height: 1.7;
}


/* =========================================================
   32. CTA BUTTON
   ========================================================= */

.contracts-cta .cta-box .btn {

    position: relative;

    z-index: 3;

    flex: 0 0 auto;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    min-width: 190px;

    min-height: 52px;

    padding: 0 25px;

    border-radius: 10px;

    color: #ffffff;

    background: var(--contracts-blue);

    border: 1px solid var(--contracts-blue);

    font-size: 14px;

    font-weight: 700;

    text-decoration: none;

    transition:
        transform .25s ease,
        box-shadow .25s ease,
        background .25s ease;
}


.contracts-cta .cta-box .btn:hover {

    color: #ffffff;

    background: var(--contracts-blue-dark);

    border-color: var(--contracts-blue-dark);

    transform: translateY(-2px);

    box-shadow:
        0 12px 25px rgba(37, 99, 235, .25);
}



/* =========================================================
   31. 1200 PX
   ========================================================= */

@media (max-width: 1200px) {

    .contracts-hero .container,
    .contracts-services .container,
    .contracts-advantages .container,
    .contracts-prices .container,
    .contracts-cta .container {

        padding-left: 25px;
        padding-right: 25px;
    }


    .contracts-hero-grid {

        grid-template-columns:
            minmax(0, 1.35fr)
            minmax(190px, .62fr)
            minmax(210px, .72fr);

        gap: 30px;
    }


    .contracts-hero .contracts-title {

        font-size: 47px;
    }


    .contracts-subtitle {

        font-size: 16px;
    }


    .contracts-grid {

        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }


    .tariffs-grid {

        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }


    .tariff-card:last-child {

        grid-column: 1 / -1;

        max-width: calc(50% - 13px);

        width: 100%;

        justify-self: center;
    }
}


/* =========================================================
   32. 1000 PX
   ========================================================= */

@media (max-width: 1000px) {

    .contracts-hero-grid {

        grid-template-columns:
            minmax(0, 1fr)
            220px;

        gap: 30px;
    }


    .contracts-center {

        grid-column: 2;

        grid-row: 1;

        max-width: 220px;
    }


    .contracts-right {

        grid-column: 1 / -1;

        display: grid;

        grid-template-columns:
            repeat(3, minmax(0, 1fr));

        gap: 22px;
    }


    .contracts-hero .contracts-title {

        font-size: 43px;
    }


    .advantage-row {

        grid-template-columns:
            minmax(220px, .7fr)
            minmax(0, 1.3fr);

        gap: 35px;
    }


    .contracts-cta .cta-box {

        gap: 30px;

        padding-left: 45px;
        padding-right: 45px;
    }
}


/* =========================================================
   33. 850 PX
   ========================================================= */

@media (max-width: 850px) {

    .contracts-hero-grid {

        grid-template-columns: 1fr;
    }


    .contracts-center {

        grid-column: auto;

        grid-row: auto;

        max-width: 300px;
    }


    .contracts-right {

        grid-column: auto;

        display: flex;

        flex-direction: column;

        gap: 14px;
    }


    .contracts-hero .contracts-title {

        font-size: 42px;
    }


    .contracts-cta .cta-box {

        align-items: flex-start;

        flex-direction: column;
    }


    .contracts-cta .cta-box .btn {

        min-width: 220px;
    }



    
}


/* =========================================================
   34. 700 PX
   ========================================================= */

@media (max-width: 700px) {

    .contracts-hero .container,
    .contracts-services .container,
    .contracts-advantages .container,
    .contracts-prices .container,
    .contracts-cta .container {

        padding-left: 20px;
        padding-right: 20px;
    }


    .contracts-hero {

        padding-top: 45px;

        padding-bottom: 50px;
    }


    .contracts-hero .contracts-title {

        font-size: 38px;

        line-height: 1.05;

        letter-spacing: -1.3px;
    }


    .contracts-subtitle {

        margin-top: 20px;

        font-size: 15px;

        line-height: 1.65;
    }


    .contracts-center {

        max-width: 100%;
    }


    .contracts-hero .btn {

        min-height: 50px;
    }


    .contracts-section-title {

        font-size: 32px;

        margin-bottom: 30px;
    }


    .contracts-services,
    .contracts-advantages,
    .contracts-prices {

        padding-top: 55px;

        padding-bottom: 55px;
    }


    .contracts-grid {

        grid-template-columns: 1fr;

        gap: 20px;
    }


    .contracts-item {

        min-height: auto;

        padding:
            26px
            20px
            26px
            68px;
    }


    .contracts-item span {

        left: 18px;

        top: 27px;

        width: 38px;

        height: 38px;
    }


    .contracts-item h3 {

        font-size: 18px;
    }


    .contracts-item p {

        font-size: 14px;
    }


    .advantage-row {

        grid-template-columns: 1fr;

        gap: 10px;

        padding:
            23px 0;
    }


    .advantage-row h3 {

        font-size: 18px;
    }


    .advantage-row p {

        font-size: 14px;
    }


    .tariffs-grid {

        grid-template-columns: 1fr;

        gap: 20px;
    }


    .tariff-card {

        min-height: 340px;
    }


    .tariff-card:last-child {

        grid-column: auto;

        max-width: none;
    }


    .contracts-cta {

        padding:
            25px 20px
            55px;
    }


    .contracts-cta .cta-box {

        padding:
            38px 25px;

        border-radius: 18px;
    }


    .contracts-cta .cta-box h2 {

        font-size: 29px;
    }
}


/* =========================================================
   35. 500 PX
   ========================================================= */

@media (max-width: 500px) {

    .contracts-hero .contracts-title {

        font-size: 34px;

        letter-spacing: -1px;
    }


    .contracts-subtitle {

        font-size: 14px;
    }


    .contracts-section-title {

        font-size: 28px;

        letter-spacing: -.5px;
    }


    .contracts-item {

        padding-right: 18px;
    }


    .advantage-row h3 {

        font-size: 17px;
    }


    .advantage-row p {

        font-size: 14px;
    }


    .tariff-card {

        min-height: 330px;

        padding:
            25px 20px;
    }


    .tariff-card h3 {

        font-size: 21px;
    }


    .tariff-card .price {

        font-size: 22px;
    }


    .tariff-card p {

        font-size: 14px;
    }


    .contracts-cta .cta-box {

        padding:
            30px 20px;
    }


    .contracts-cta .cta-box h2 {

        font-size: 25px;
    }
}


/* =========================================================
   36. 380 PX
   ========================================================= */

@media (max-width: 380px) {

    .contracts-hero .contracts-title {

        font-size: 31px;
    }


    .contracts-section-title {

        font-size: 25px;
    }


    .contracts-item {

        padding-left: 64px;
    }


    .contracts-item span {

        left: 16px;
    }


    .tariff-card {

        padding-left: 18px;

        padding-right: 18px;
    }


    .contracts-cta .cta-box {

        padding-left: 18px;

        padding-right: 18px;
    }
}


/* =========================================================
   37. FOCUS
   ========================================================= */

.contracts-hero a:focus-visible,
.contracts-cta a:focus-visible {

    outline: 3px solid rgba(37, 99, 235, .28);

    outline-offset: 3px;
}


/* =========================================================
   38. REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    .contracts-item,
    .tariff-card,
    .contracts-hero .btn,
    .contracts-cta .btn {

        transition: none;
    }
}