﻿
body {
    margin: 0;
    font-family: Arial, sans-serif;
    color: #333;
}

header {
    background: #03625e;
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
    header a {
        color: inherit; /* Наследует цвет текста родителя */
        text-decoration: none; /* Убирает подчеркивание */
    }

    header h1 {
        margin: 0;
    }

nav a {
    color: white;
    margin-left: 20px;
    text-decoration: none;
    font-weight: bold;
}

.hero {
    background: #f5f5f5;
    padding: 80px 20px;
    text-align: center;
}

    .hero h2 {
        font-size: 2.4em;
        margin-bottom: 20px;
    }

    .hero p {
        font-size: 1.3em;
        margin-bottom: 40px;
        max-width: 800px;
        margin-left: auto;
        margin-right: auto;
    }

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

    .hero-buttons a {
        padding: 15px 30px;
        background: #03625e;
        color: white;
        border: none;
        border-radius: 4px;
        font-size: 1em;
        text-decoration: none;
        transition: background 0.3s ease;
    }

        .hero-buttons a:hover {
            background: #024f4b;
        }

        .hero-buttons a.secondary {
            background: #6c757d;
        }

            .hero-buttons a.secondary:hover {
                background: #5a6268;
            }

.section {
    padding: 40px 20px;
    max-width: 900px;
    margin: auto;
}

    .section h3 {
        margin-top: 0;
    }

.bg-light {
    background: #f9f9f9;
}

.benefits {
    list-style: none;
    padding: 0;
}

    .benefits li::before {
        content: "✔ ";
        color: #03625e;
        font-weight: bold;
    }

.grid-icons {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between; /* или space-around / center */
    gap: 20px;
    padding: 40px 20px;
    max-width: 900px;
    margin: 0 auto;
}

    .grid-icons .icon-box {
        flex: 1 1 260px; /* базовая ширина + адаптация */
        max-width: 260px;
        text-align: center;
    }

        .grid-icons .icon-box img {
            width: 180px;
            height: 180px;
            margin-bottom: 15px;
        }

        .grid-icons .icon-box p {
            font-size: 1em;
            color: #444;
        }


footer {
    background: #222;
    color: #bbb;
    padding: 20px;
    text-align: center;
}





.solution-two-column {
    margin-top: 60px;
}

    .solution-two-column h3 {
        margin-bottom: 40px;
    }

.solution-row {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

    .solution-row.reverse {
        flex-direction: row-reverse;
    }

    .solution-row img {
        width: 100%;
        max-width: 480px;
        border-radius: 8px;
    }

.solution-text {
    flex: 1;
    min-width: 280px;
}

    .solution-text h4 {
        font-size: 1.4em;
        margin-bottom: 15px;
        color: #333;
    }

    .solution-text p {
        font-size: 1.1em;
        line-height: 1.6;
        margin-bottom: 20px;
        color: #444;
    }

.btn-rounded {
    display: inline-block;
    background-color: #00897b;
    color: white;
    padding: 12px 24px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

    .btn-rounded:hover {
        background-color: #00776a;
    }





.news-row {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: space-between;
}

.news-card {
    background: #f0f0f0;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    flex: 1 1 calc(33.333% - 20px);
    max-width: calc(33.333% - 20px);
    transition: box-shadow 0.3s ease;
}

    .news-card:hover {
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    }.news-row {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: space-between;
}

.news-card {
  background: #f0f0f0;
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  flex: 1 1 calc(33.333% - 20px);
  max-width: calc(33.333% - 20px);
  transition: box-shadow 0.3s ease;
}

.news-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.news-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.news-content {
  padding: 20px;
  background: #f5f5f5;
}

.news-content h4 {
  margin: 0 0 10px;
  font-size: 1.1em;
  color: #03625e;
}

.news-content p {
  margin: 0;
  font-size: 0.95em;
  color: #444;
}


    .news-card img {
        width: 100%;
        height: 180px;
        object-fit: cover;
    }

.news-content {
    padding: 20px;
    background: #f5f5f5;
}

    .news-content h4 {
        margin: 0 0 10px;
        font-size: 1.1em;
        color: #03625e;
    }

    .news-content p {
        margin: 0;
        font-size: 0.95em;
        color: #444;
    }





.faq {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid #ddd;
    padding: 15px 0;
}

.faq-question {
    background: none;
    border: none;
    font-size: 1.1em;
    font-weight: bold;
    text-align: left;
    width: 100%;
    cursor: pointer;
    padding: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #03625e;
    transition: color 0.3s ease;
}

    .faq-question:hover {
        color: #024f4b;
    }

    .faq-question .arrow {
        transition: transform 0.3s ease;
    }

    .faq-question.active .arrow {
        transform: rotate(180deg);
    }

.faq-answer {
    max-height: 0;
    overflow: hidden; /* это ок, потому что при открытии мы задаем max-height */
    transition: max-height 0.5s ease, padding-top 0.4s ease;
    color: #444;
    font-size: 1em;
    line-height: 1.6;
    padding-top: 0;
}

    .faq-answer.open {
        padding-top: 10px;
        
    }
    .faq-answer li {
        display: block;
    }






.testimonial-blockquote {
    max-width: 700px;
    margin: 0 auto;
    padding: 40px 20px;
    background: #f9f9f9;
    border-left: 4px solid #00897b;
    border-radius: 8px;
    font-style: italic;
    color: #444;
}

    .testimonial-blockquote footer {
        margin-top: 15px;
        font-weight: bold;
        color: #f9f9f9;
    }




.team-carousel {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 20px;
    padding: 20px 0;
}

.team-member {
    flex: 0 0 auto;
    scroll-snap-align: center;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    text-align: center;
    padding: 15px;
    max-width: 240px;
}

    .team-member img {
        width: 100%;
        height: auto;
        border-radius: 50%;
        margin-bottom: 10px;
    }




    /*Блок продажи*/
/*.pricing-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

.pricing-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 20px;
    flex: 1 1 300px;
    max-width: 350px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}*/


.pricing-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

.pricing-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 20px;
    flex: 1 1 calc(33.333% - 30px); /* три колонки с отступами */
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

@media (max-width: 992px) {
    .pricing-card {
        flex: 1 1 calc(50% - 30px); /* две колонки */
    }
}

@media (max-width: 600px) {
    .pricing-card {
        flex: 1 1 100%; /* одна колонка */
    }
}




    .pricing-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 18px rgba(0,0,0,0.1);
    }

    .pricing-card h4 {
        margin-top: 0;
        font-size: 1.4em;
        color: #03625e;
    }

    .pricing-card ul {
        list-style: none;
        padding: 0;
        margin: 20px 0;
    }

        .pricing-card ul li {
            margin-bottom: 8px;
            position: relative;
            padding-left: 20px;
        }

            .pricing-card ul li::before {
                content: "✔";
                position: absolute;
                left: 0;
                color: #00897b;
                font-weight: bold;
            }

.price {
    font-size: 1.3em;
    font-weight: bold;
    color: #00897b;
}

.pricing-card.highlighted {
    border: 2px solid #00897b;
    background: #f0fdfc;
}

.small {
    font-size: 0.85em;
    color: #666;
}

    /*Блок продажи*/










/*Анкетирование пациента*/
/* Обертка формы */
.section form {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    padding: 30px;
    animation: fadeIn 0.4s ease;
}

/* Анимация плавного появления */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Прогресс-бар */
.progress-bar-wrapper {
    background: #e6f0ef;
    border-radius: 8px;
    height: 10px;
    margin-bottom: 25px;
}

.progress-bar {
    background: #00897b;
    height: 10px;
    border-radius: 8px;
    width: 0;
    transition: width 0.4s ease;
}

/* Заголовки */
.form-step h3 {
    font-size: 1.4em;
    color: #03625e;
    border-left: 4px solid #00897b;
    padding-left: 10px;
    margin-bottom: 20px;
}

/* Поля формы */
.section input[type="text"],
.section input[type="date"],
.section select,
.section textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #ccc;
    border-radius: 8px;
    margin-bottom: 15px;
    font-size: 1em;
    transition: border-color 0.3s, box-shadow 0.3s;
}

    .section input:focus,
    .section select:focus,
    .section textarea:focus {
        border-color: #00897b;
        box-shadow: 0 0 6px rgba(0,137,123,0.3);
        outline: none;
    }

/* Кнопки навигации */
.form-navigation button {
    background: #00897b;
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.3s ease;
}

    .form-navigation button:hover {
        background: #00776a;
    }

.form-navigation #prevBtn {
    background: #6c757d;
}

    .form-navigation #prevBtn:hover {
        background: #5a6268;
    }



.form-step {
    display: none;
}

    .form-step.active {
        display: block;
    }

.form-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.progress-bar-wrapper {
    background: #eee;
    border-radius: 8px;
    height: 8px;
    margin-bottom: 20px;
}

.progress-bar {
    background: #03625e;
    height: 8px;
    border-radius: 8px;
    width: 0;
    transition: width 0.3s ease;
}




label {
    font-weight: bold;
    display: block;
    margin-bottom: 6px;
}

.tooltip-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #00897b;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 16px;
    cursor: pointer;
    margin-left: 6px;
    position: relative;
}

    .tooltip-icon::after {
        content: attr(data-tooltip);
        position: absolute;
        left: 50%;
        bottom: 125%;
        transform: translateX(-50%);
        background: #03625e;
        color: #fff;
        padding: 8px 10px;
        border-radius: 6px;
        font-size: 0.85em;
        white-space: normal; /* теперь текст переносится */
        max-width: 250px; /* ограничиваем ширину */
        line-height: 1.4; /* делаем текст более читаемым */
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.25s ease, transform 0.25s ease;
        z-index: 999;

    }

    .tooltip-icon:hover::after {
        opacity: 1;
        transform: translateX(-50%) translateY(-4px);
    }




/*загрузка справок*/
.file-upload {
    border: 2px dashed #00897b;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    background: #f8f9fa;
    transition: border-color 0.3s ease;
    cursor: pointer;
}

    .file-upload:hover {
        border-color: #006f62;
    }

.upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.upload-icon {
    font-size: 2rem;
}

input[type="file"] {
    display: none;
}

.file-list {
    margin-top: 15px;
    font-size: 0.9em;
    color: #555;
}

/*загрузка справок*/

/*Анкетирование пациента*/


/*Регистрация - авторизация*/
.auth-form {
    max-width: 450px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

    .auth-form input {
        padding: 12px;
        border: 1px solid #ccc;
        border-radius: 6px;
    }

    .auth-form button {
        margin-top: 15px;
    }
/*Регистрация - авторизация*/


/*loginPartial*/
.nav-login {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 15px;
}

    .nav-login li {
        display: flex;
        align-items: center;
    }

.welcome-text {
    font-size: 0.95em;
    color: #fff;
    margin-right: 10px;
}

.btn-login, .btn-register {
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 0.9em;
    font-weight: bold;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-login {
    background-color: #03625e;
    color: #fff;
}

    .btn-login:hover {
        background-color: #024f4b;
    }

.btn-register {
    background-color: #6c757d;
    color: #fff;
}

    .btn-register:hover {
        background-color: #5a6268;
    }

.logout-form {
    margin: 0;
}





/* База (как раньше) */
.nav-login-wrapper {
    display: flex;
    align-items: center;
}

.mika-dropdown {
    position: relative;
}

.mika-dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #03625e;
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: 8px 14px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease;
    line-height: 1;
    min-height: 36px;
}

    .mika-dropdown-toggle:hover {
        background: #024f4b;
    }

.mika-user-initial {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #00897b;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9em;
}

.mika-dropdown-menu {
    display: none;
    border: none;
    border-radius: 12px;
    padding: 8px;
    box-shadow: 0 8px 18px rgba(0,0,0,0.12);
    min-width: 220px;
    background: #fff;
    max-height: 70vh;
    overflow: auto; /* прокрутка при переполнении */
}

    .mika-dropdown-menu.show {
        display: block;
    }

.mika-dropdown-header {
    padding: 10px 12px;
    font-size: 0.95em;
    color: #666;
}

.mika-dropdown-item,
.mika-dropdown-item-btn {
    display: block;
    width: 100%;
    text-align: left;
    background: transparent;
    border: none;
    cursor: pointer;
    text-decoration: none;
    color: #333;
    padding: 12px 14px;
    border-radius: 8px;
    transition: background 0.2s ease, color 0.2s ease;
    font: inherit;
    min-height: 44px; /* комфортный тап-таргет */
}

    .mika-dropdown-item:hover,
    .mika-dropdown-item-btn:hover {
        background: #f5f5f5;
        color: #03625e;
    }

.mika-dropdown-divider {
    height: 1px;
    background: #eee;
    margin: 6px 8px;
}

.main-header .mika-dropdown-toggle {
    background: #00897b;
}

    .main-header .mika-dropdown-toggle:hover {
        background: #00776a;
    }

/* Мобильная адаптация */
@media (max-width: 768px) {
    .nav-login-wrapper {
        margin-left: auto;
    }

    /* Крупнее триггер и имя скрываем, оставляем инициалы + “Войти” коротко */
    .mika-dropdown-toggle {
        padding: 10px 14px;
        min-height: 42px;
    }

    .mika-user-name {
        display: none; /* экономим место, можно включить если нужно */
    }

    /* Меню — чуть шире и с безопасными отступами */
    .mika-dropdown-menu {
        min-width: 260px;
        margin-top: 10px;
        padding-bottom: calc(8px + env(safe-area-inset-bottom)); /* iOS safe-area */
    }

    /* Пункты — крупнее, удобнее тапать */
    .mika-dropdown-item,
    .mika-dropdown-item-btn {
        padding: 14px 16px;
        font-size: 1rem;
        min-height: 48px;
    }
}

/* Очень узкие экраны */
@media (max-width: 360px) {
    .mika-dropdown-menu {
        min-width: 220px;
    }
}









/*loginPartial*/

/*Авторизация*/
.auth-section {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px 20px;
    background: #f5f5f5;
}

.auth-card {
    background: #fff;
    padding: 40px 30px;
    border-radius: 16px;
    max-width: 420px;
    width: 100%;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    text-align: center;
}

    .auth-card h2 {
        margin-bottom: 10px;
        font-size: 1.8em;
        color: #03625e;
    }

    .auth-card p {
        margin-bottom: 30px;
        color: #666;
    }

    .auth-card .form-group {
        margin-bottom: 20px;
        text-align: left;
    }

    .auth-card label {
        font-weight: bold;
        margin-bottom: 5px;
        display: block;
        color: #333;
    }

    .auth-card .form-control {
        width: 100%;
        padding: 10px 14px;
        border: 1px solid #ccc;
        border-radius: 8px;
        font-size: 1em;
    }

    .auth-card .form-check {
        text-align: left;
        margin-bottom: 20px;
    }

.btn-auth {
    background-color: #03625e;
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: 12px 24px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease;
    width: 100%;
}

    .btn-auth:hover {
        background-color: #024f4b;
    }

.auth-links {
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
}

    .auth-links a {
        color: #03625e;
        text-decoration: none;
        font-size: 0.9em;
    }

        .auth-links a:hover {
            text-decoration: underline;
        }

/*Авторизация*/


/*Дашборд с исследованиями*/
/* Сетка карточек */
.trials-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    max-width: 1000px; /* Ограничиваем ширину контейнера */
    margin: 0 auto;
}

/* Карточка исследования */
.trial-card {
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    flex: 1 1 calc(33.333% - 20px); /* по 3 в ряд */
    max-width: 300px; /* ограничение сверху */
    min-width: 260px; /* чтобы на маленьких экранах красиво ломалось */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: left;
}

    .trial-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    }

    .trial-card h3 {
        font-size: 1.2em;
        color: #03625e;
        margin-bottom: 10px;
    }

    .trial-card ul {
        list-style: none;
        padding: 0;
        margin: 0 0 10px;
        font-size: 0.95em;
        color: #444;
    }

        .trial-card ul li {
            margin-bottom: 5px;
        }

    .trial-card p {
        font-size: 0.9em;
        color: #444;
        margin-bottom: 15px;
        flex-grow: 1;
    }

    .trial-card .btn-rounded {
        align-self: center;
    }

/* Адаптивность */
@media (max-width: 992px) {
    .trial-card {
        flex: 1 1 calc(50% - 20px); /* 2 в ряд на планшетах */
    }
}

@media (max-width: 600px) {
    .trial-card {
        flex: 1 1 100%; /* 1 в ряд на телефонах */
    }
}



/* Сетка для дашборда спонсора */
.trials-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    max-width: 1000px;
    margin: 0 auto;
}

/* Карточка исследования */
.trial-card {
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    flex: 1 1 calc(33.333% - 20px);
    max-width: 300px;
    min-width: 260px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: left;
}

.trial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.trial-card h3 {
    font-size: 1.2em;
    color: #03625e;
    margin-bottom: 15px;
}

/* Список данных */
.trial-card ul {
    list-style: none;
    padding: 0;
    margin: 0 0 15px;
    font-size: 0.95em;
    color: #444;
}

.trial-card ul li {
    margin-bottom: 5px;
}




.btn-split {
    display: flex;
    width: 100%;
    border-radius: 6px;
    overflow: hidden; /* чтобы углы выглядели цельно */
    margin-top: auto;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

    .btn-split a {
        flex: 1;
        text-align: center;
        padding: 10px 0;
        font-size: 0.9em;
        font-weight: bold;
        text-decoration: none;
        color: #fff;
        transition: background 0.3s ease;
    }

.btn-split-left {
    background: #03625e;
}

    .btn-split-left:hover {
        background: #024f4b;
    }

.btn-split-right {
    background: #6c757d;
}

    .btn-split-right:hover {
        background: #5a6268;
    }















@media (max-width: 768px) {
    .main-header {
        flex-direction: column;
        align-items: flex-start;
        padding: 15px;
    }

        .main-header nav {
            width: 100%;
            display: flex;
            flex-direction: column;
            margin-top: 15px;
        }

    nav a {
        margin: 5px 0;
        padding: 10px;
        border-left: 3px solid #00897b;
        background: rgba(255,255,255,0.05);
    }

    .nav-login-wrapper {
        width: 100%;
        margin-top: 10px;
    }
}











/* Кнопки внутри списка документов */
/*.documents-list .btn {
    font-size: 0.8em !important;*/ /* уменьшенный текст */
    /*padding: 4px 8px !important;*/ /* компактные отступы */
    /*border-radius: 4px !important;*/ /* лёгкие скругления */
    /*line-height: 1.2 !important;*/ /* плотность */
    /*height: auto !important;*/ /* сброс фиксированной высоты */
    /*min-width: unset !important;*/ /* без минимальной ширины */
    /*display: inline-block !important;
    width: auto !important;*/ /* не тянем на всю ширину */
/*}*/

/* Варианты цветов */
/*.documents-list .btn-outline-primary {
    background: #03625e;
    color: #fff;
    border: none;
}

    .documents-list .btn-outline-primary:hover {
        background: #024f4b;
    }

.documents-list .btn-outline-danger {
    background: #dc3545;
    color: #fff;
    border: none;
}

    .documents-list .btn-outline-danger:hover {
        background: #bb2d3b;
    }*/

