@import url('https://fonts.googleapis.com/css2?family=Onest:wght@600;700&display=swap');

:root {

    /* Шрифты */
    --font-onest: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-involve: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

    /* Цветовая палитра */
    --light-blue: #74B5BC;     /* Самый светлый синий */
    --primary-blue: #419AA4;   /* Средний синий */
    --dark-blue: #007C89;      /* Самый темный синий */
    --text-dark: #28282F;      /* Темный текст */
    --white: #FFFFFF;          /* Белый */
    --bg-light: #EDF4F4;       /* Светлый фон */
    --footer-gradient-start: #007C89;
    --footer-gradient-end: #014C55;

    --color-accent: #009aab;
    --color-text-muted: #75898b;
    --color-text-muted-soft: rgba(117, 137, 139, 0.6);

    /* Тени */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.1);
    --shadow-card: 0 20px 60px rgba(0, 0, 0, 0.08);

    /* Радиусы */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 30px;
    --radius-pill: 999px;

    /* Отступы */
    --space-xs: 8px;
    --space-sm: 16px;
    --space-md: 24px;
    --space-lg: 40px;
    --space-xl: 80px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Onest', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
}
a {
    text-decoration: none;
}

.container {
    width: 100%;
    max-width: 1328px;
    margin: 0 auto;
}

.header-container,
.nav-link,
.btn-login,
.btn-trial {
    font-family: 'Involve', sans-serif;
}

body,
.page-title,
.page-subtitle,
.section-title,
.accordion-question,
footer {
    font-family: 'Onest', sans-serif;
}


/* Header */

header {
    position: sticky;
    top: 0;
    z-index: 100;
    padding: var(--space-md) 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--white);
    border-radius: var(--radius-md);
    padding: var(--space-sm) var(--space-md);
    box-shadow: var(--shadow-sm);
    max-width: 1280px;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.logo-img {
    height: 40px;
    width: auto;
}

.logo-placeholder {
    width: 124px;
    height: 34px;
    background: linear-gradient(90deg, var(--primary-blue) 0%, var(--dark-blue) 100%);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 700;
    font-size: 20px;
}

.nav-links {
    display: flex;
    gap: var(--space-lg);
    align-items: center;
}

.nav-link {
    font-size: 20px;
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.2s;
}

.nav-link:hover {
    color: var(--primary-blue);
}

.nav-link.active {
    font-weight: 600;
}

.auth-buttons {
    display: flex;
    gap: var(--space-sm);
    line-height: 1.3;
    text-align: center;
}

.btn-login {
    padding: 8px 24px;
    border: 1.5px solid var(--primary-blue);
    border-radius: var(--radius-sm);
    background-color: transparent;
    color: var(--primary-blue);
    font-weight: 500;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.2s;
    width: 106px;
    height: 39px;
}

.btn-login:hover {
    background-color: rgba(0, 154, 171, 0.05);
}

.btn-trial {
    padding: 8px 24px;
    border: none;
    border-radius: var(--radius-sm);
    background-color: var(--primary-blue);
    color: var(--white);
    font-weight: 500;
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.2s;
    width: 215px;
    height: 39px;
}

.btn-trial:hover {
    background-color: var(--dark-blue);
}

@media (max-width: 1024px) {
    .header-container {
        padding-inline: 20px;
    }

    .nav-links {
        display: none;
    }
}









/* Footer */

.footer {
    position: relative;
    border-radius: 20px 20px 0 0;
    background: linear-gradient(135deg, var(--footer-gradient-start) 0%, var(--footer-gradient-end) 100%);
    color: var(--white);
    padding-top: 109px;
    padding-bottom: 40px;
    overflow: hidden;
}

.footer::before {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 1600px;
    max-width: calc(100% + 200px);
    height: 874px;
    background-image: url("/site/modules/medx/showcase/img/footer/footer-decorative-line.svg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    pointer-events: none;
    z-index: 0;
    opacity: 1;
}

.footer__inner {
    position: relative;
    z-index: 1;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 80px;
}

.footer__top {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 40px;
}

.footer__brand {
    max-width: 420px;
}

.footer__logo {
    display: inline-flex;
    align-items: center;
    margin-bottom: 16px;
}

.footer__logo img {
    width: 383.74px;
    max-width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 768px) {
    .footer__logo img {
        width: 280px;
    }
}

.footer__description {
    margin: 0;
    font-family: var(--font-onest);
    font-weight: 600;
    font-size: 20px;
    line-height: 1.27;
    text-transform: uppercase;
}

.footer__social {
    max-width: 520px;
}

.footer__social-text {
    font-family: var(--font-onest);
    font-weight: 500;
    font-size: 20px;
}

.footer__social-list {
    display: flex;
    gap: 16px;
    margin: 0 11px 16px;
}

.footer__social-item {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: opacity 0.2s;
}

.footer__social-item:hover {
    opacity: 0.8;
}

.footer__social-item img {
    width: 48px;
    height: 48px;
    display: block;
}

.footer__social-item:first-child img {
    width: 70px;
    height: 52px;
}

.footer__columns {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer__column {
    min-width: 0;
}

.footer__heading {
    margin: 0 0 16px;
    font-family: var(--font-onest);
    font-weight: 600;
    font-size: 28px;
}

.footer__subheading {
    margin: 24px 0 24px 0;
    font-family: var(--font-onest);
    font-weight: 600;
    font-size: 18px;
    text-transform: uppercase;
}

.footer__links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer__link {
    display: inline-block;
    font-weight: 400;
    font-size: 14px;
    color: var(--white);
    text-decoration: none;
    padding-bottom: 12px;
}

.footer__links.footer__link {
    font-size: 20px;
}

.footer__link--underlined {
    text-decoration: underline;
}

.footer__link--login{
    padding-bottom: 60px;
}

.footer__link--register {
    padding-top: 40px;
}

.footer__discipline-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px 24px;
    margin-bottom: 24px;
}

.footer__discipline-column {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

@media (max-width: 1024px) {
    .footer__inner {
        padding-inline: 24px;
    }

    .footer__columns {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .footer__top {
        flex-direction: column;
    }

    .footer__columns {
        grid-template-columns: 1fr;
    }

    .footer__bottom {
        flex-direction: column;
        align-items: flex-start;
    }
}


/* === MAIN BLOCK (HERO) === */
main {
    background-color: #edf4f4;
    display: block;
}

section {
    margin: 60px auto;
}
.container {
    width: 100%;
    max-width: 1280px;
    box-sizing: border-box;
    margin: auto;
}
.mainblock {
    max-width: 1280px;
    height: 700px;
    background-color: #ffffff;
    border-radius: 20px;
    box-shadow: var(--shadow);
    margin-right: auto;
    margin-left: auto;
    padding: 50px;
    margin: auto; 
    text-align: center; 
    position: relative; 
    overflow: hidden; 

}

.mainblock-bg {
    background-image: url("/site/modules/medx/showcase/img/doodles.png");
    overflow:hidden;
    width: 100%;
    height: 100%;
    padding: 110px;
    position: absolute; 
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-position: center;
    background-repeat: no-repeat; 
    z-index: 1; 
}
.textmain {
    top: 72px;
    margin: auto; 
    text-align: center; 
    height: 346px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.btn_free {
    display: flex;
    width: 620px;
    height: 64px;
    align-items: center;
    justify-content: space-around;
    padding: 16px 120px;
    position: relative; 
    background-color: #009aaa;
    border-radius: 12px;
    margin: 34px auto 0;
    top: 72px;
}

.textmain, .btn_free {
    position: relative; 
    z-index: 2; 
}

.text-wrapper-29 {
    position: relative;
    width: fit-content;
    margin-top: -0.5px;
    font-family: "Onest", Helvetica;
    font-weight: 600;
    color: #ffffff;
    font-size: 24px;
    letter-spacing: 0.96px;
    line-height: normal;
}

.under {
    position: relative;
    text-align: center;
    width: 1440px;
}

.group-2 {
    width: 8.11%;
    height: 38.25%;
    top: 0;
    left: 0;
}

.group-3 {
    width: 18.64%;
    height: 43.05%;
    top: 3.69%;
    left: 81.36%;
}

.group-4 {
    position: absolute;
    width: 20.44%;
    height: 10.83%;
    top: 56.15%;
    left: 5.95%;
}

.group-5 {
    width: 13.89%;
    height: 35.23%;
    top: 51.76%;
    left: 83.63%;
}

.group-6 {
    width: 4.73%;
    height: 24.55%;
    top: 24.15%;
    left: 11.81%;
}

.group-7 {
    width: 7.34%;
    height: 28.88%;
    top: 67.73%;
    left: 0;
}

.group-8 {
    position: absolute;
    width: 5.66%;
    height: 29.96%;
    top: 45.85%;
    left: 68.49%;
}

.vector-1 {
    width: 1440px;
    height: 1026px;
    position: absolute;
    z-index: 0;
    left: 50%;
    transform: translateX(-50%);
    top: -360px;
}

.vector-3 {
    width: 750px;
    height: 700px;
    position: absolute;
    top: -70px;
    z-index: 0;
    left: 610px;
}

.vector-11 {
    width: 6.67%;
    height: 9.75%;
    top: 0;
    left: 19.06%;
}

.vector-12 {
    width: 6.67%;
    height: 9.75%;
    top: 3.3%;
    left: 23.13%;
}

.vector-13 {
    width: 5.71%;
    height: 10.51%;
    top: 22.62%;
    left: 74.68%;
}

.vector-14 {
    width: 6.43%;
    height: 12.92%;
    top: 87.08%;
    left: 78.11%;
}

.vector-16 {
    position: absolute;
    width: 1440px;
    height: 882.5px;
    z-index: 0;
    top: 1000px;
    left: 50%;
    transform: translateX(-50%);
}

.vector-84 {
    position: absolute;
    width: 1440px;
    height: 395px;
    z-index: 0;
    top: 1100px;
    left: 50%;
    transform: translateX(-50%);
}

.vector-134 {
    position: absolute;
    width: 1440px;
    height: 343px;
    z-index: 0;
    top: -370px;
    left: 50%;
    transform: translateX(-50%);
}




/* ========================================
   МОБИЛЬНАЯ АДАПТАЦИЯ
   ======================================== */

@media (max-width: 768px) {
    /* Header */
    header {
        padding: 15px 0;
    }

    .header-container {
        height: 60px !important; 
        padding: 10px 15px;
        margin: 0 15px;
    }

    .logo-img {
        height: 30px;
    }

    .logo-placeholder {
        width: 100px;
        height: 28px;
        font-size: 16px;
    }

    .nav-links {
        display: none;
    }

    .auth-buttons {
        gap: 8px;
    }

    .btn-login {
        padding: 6px 16px;
        font-size: 14px;
        width: auto;
        height: 32px;
    }

    .btn-trial {
        padding: 6px 16px;
        font-size: 14px;
        width: auto;
        height: 32px;
    }

    /* Main block */
    section {
        margin: 30px auto;
    }

    .mainblock {
        height: auto;
        min-height: 500px;
        padding: 30px 20px;
        margin: 0 15px;
    }

    .mainblock-bg {
        padding: 40px;
        background-size: cover;
    }

    .textmain {
        height: auto;
        padding: 0 10px;
        top: 0;
    }

    .btn_free {
        width: 100%;
        max-width: 320px;
        height: 52px;
        padding: 12px 20px;
        top: 40px;
        margin-top: 20px;
    }

    .text-wrapper-29 {
        font-size: 18px;
    }

    /* Footer */
    .footer {
        padding-top: 60px;
        padding-bottom: 30px;
    }

    .footer__inner {
        padding: 0 20px;
    }

    .footer__top {
        flex-direction: column;
        gap: 30px;
        margin-bottom: 30px;
    }

    .footer__brand {
        max-width: 100%;
    }

    .footer__description {
        font-size: 16px;
    }

    .footer__social {
        max-width: 100%;
    }

    .footer__social-text {
        font-size: 16px;
    }

    .footer__social-list {
        margin: 0 0 16px;
        flex-wrap: wrap;
    }

    .footer__columns {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-bottom: 30px;
    }

    .footer__heading {
        font-size: 22px;
        margin-bottom: 12px;
    }

    .footer__subheading {
        font-size: 16px;
        margin: 16px 0;
    }

    .footer__discipline-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .footer__link {
        font-size: 14px;
        padding-bottom: 8px;
    }

    .footer__link--login {
        padding-bottom: 30px;
    }

    .footer__link--register {
        padding-top: 20px;
    }

    .under {
    width: auto;
    }

}

@media (max-width: 480px) {

    .container {
        padding: 0;
    }

    header {
        padding: 10px 0 20px !important;
    }

    .header-container {
        padding: 8px 12px;
        margin: 0 10px;
    }

    .logo-img {
        height: 26px;
    }

    .logo-placeholder {
        width: 80px;
        height: 24px;
        font-size: 14px;
    }

    .btn-login,
    .btn-trial {
        font-size: 12px;
        padding: 5px 12px;
        height: 28px;
    }

     .btn-trial {
        display: none;
    }

    .mainblock {
        min-height: 340px;
        padding: 20px 15px;
        margin: 0 10px;
    }

    .mainblock-bg {
        background-size: contain;
        margin-top: 35px;
    }

    .btn_free {
        max-width: 280px;
        height: 48px;
        font-size: 16px;
    }

    .text-wrapper-29 {
        font-size: 16px;
    }

    .footer__inner {
        padding: 0 15px;
    }

    .footer__logo img {
        width: 220px;
    }

    .footer__description {
        font-size: 14px;
    }

    .footer__social-text {
        font-size: 14px;
    }

    .footer__heading {
        font-size: 18px;
    }

    .footer__subheading {
        font-size: 14px;
    }
}

/* ========================================
   PUBLIC MOBILE NAVIGATION
   ======================================== */

.public-mobile-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 8px 0;
}

.public-mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    flex: 1;
    padding: 8px 4px;
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: 11px;
    transition: color 0.2s;
}

.public-mobile-nav-item svg {
    width: 24px;
    height: 24px;
}

.public-mobile-nav-item.active {
    color: var(--primary-blue);
}

.public-mobile-nav-item:hover {
    color: var(--primary-blue);
}

@media (max-width: 768px) {
    .public-mobile-nav {
        display: flex;
    }

    /* Скрыть footer на мобильных */
    .footer {
        display: none;
    }

    /* Добавить отступ снизу для контента */
    main {
        padding-bottom: 70px;
    }
}
