/* === Глобальные переменные и стили === */
:root {
    --primary-color: #005A9C;
    --secondary-color: #00AEEF;
    --text-color: #212529;
    --text-light: #6c757d;
    --bg-color: #FFFFFF;
    --light-gray-bg: #f8f9fa;
    --footer-bg: #1a253c;
    --premium-shadow: 0 4px 6px rgba(0, 90, 156, 0.04), 0 10px 30px rgba(0, 90, 156, 0.08);
    --hover-shadow: 0 7px 14px rgba(0, 90, 156, 0.08), 0 20px 40px rgba(0, 90, 156, 0.12);
    --transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.7;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

body.no-scroll {
    overflow: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

h1,
h2,
h3,
h4 {
    line-height: 1.3;
    font-weight: 600;
    color: var(--primary-color);
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

section {
    padding: 120px 0;
}

.section-header {
    max-width: 800px;
    margin: 0 auto 60px;
    text-align: center;
}

/* --- */

/* === Шапка === */
.header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
}

.header.scrolled {
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    padding: 15px 0;
}

.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    text-decoration: none;
    display: flex;
    align-items: center;
}

.header-logo-img {
    height: 35px;
    width: auto;
    vertical-align: middle;
}

.nav-links {
    display: flex;
    list-style: none;
    transition: all 0.5s ease-in-out;
}

.nav-links li {
    margin-left: 35px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    position: relative;
    padding-bottom: 5px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-left: 35px;
}

/* Mobile menu toggle (hamburger icon) */
.menu-toggle {
    display: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    position: relative;
    z-index: 1001;
}

.menu-toggle .bar {
    height: 3px;
    width: 100%;
    background-color: var(--primary-color);
    border-radius: 10px;
    transition: all 0.3s ease-in-out;
}

/* --- */

/* === Главный экран === */
.hero-section {
    background: radial-gradient(circle, #f8f9fa 0%, #e9ecef 100%);
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hero-content {
    max-width: 50%;
}

.hero-title {
    font-weight: 700;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 15px;
    flex-wrap: wrap;
}

.hero-title-main-logo {
    height: 200px;
    width: auto;
    vertical-align: middle;
}

.mdr {
    height: 70px;
    width: auto;
    vertical-align: middle;
}

.hero-title-innate-logo {
    height: 45px;
    width: auto;
    vertical-align: middle;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: 500;
    margin: 1.5rem 0;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 2.5rem;
}

/* Добавленные стили для выравнивания кнопки и плашки */
.hero-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 50px;
}

.btn {
    display: inline-block;
    padding: 15px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(45deg, var(--secondary-color), var(--primary-color));
    color: var(--bg-color);
    box-shadow: 0 4px 15px rgba(0, 174, 239, 0.3);
}

.btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 174, 239, 0.4);
}

/* Стили для новой плашки */
.compliance-badge {
    background: linear-gradient(45deg, #f0f8ff, #e6f3ff);
    padding: 15px 25px;
    border-radius: 50px;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.compliance-badge:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.compliance-icon {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.hero-image-wrapper {
    position: relative;
    width: 45%;
}

.hero-product-image {
    width: 100%;
    position: relative;
    z-index: 2;
    animation: float 6s ease-in-out infinite;
}

.hero-image-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: var(--secondary-color);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    filter: blur(100px);
    opacity: 0.2;
    z-index: 1;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* Итальянское происхождение и MDR - ОБНОВЛЕННЫЕ СТИЛИ */
.origin-and-compliance {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 30px;
    align-items: center;
    justify-content: flex-start;
}

.origin-item {
    display: flex;
    align-items: center;
    background-color: var(--light-gray-bg);
    border-radius: 50px;
    padding: 10px 25px;
    font-size: 0.95rem;
    color: var(--text-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.origin-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.flag-circle {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

.flag-icon {
    width: 100%;
    height: 100%;
    object-fit: cover;
    vertical-align: middle;
}

.mdr-icon {
    height: 35px;
    width: auto;
    margin-right: 15px;
    vertical-align: middle;
    flex-shrink: 0;
}

/* --- */

/* === Продукты === */
.products-section {
    background-color: var(--bg-color);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.product-card {
    background: var(--bg-color);
    border-radius: 20px;
    box-shadow: var(--premium-shadow);
    padding: 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--hover-shadow);
}

.product-card img {
    max-width: 100%;
    height: 200px;
    object-fit: contain;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.product-image-link:hover img {
    transform: scale(1.05);
}

.product-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.product-card p {
    margin-bottom: 25px;
    flex-grow: 1;
    font-size: 0.95rem;
    color: var(--text-light);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--bg-color);
}

.annual-course-note {
    text-align: center;
    margin-top: 40px;
    font-size: 1.1rem;
    color: var(--text-color);
    font-weight: 500;
}

.joint-localization {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-top: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.joint-localization img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: contain;
    background-color: var(--light-gray-bg);

    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.joint-localization img:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

/* --- */

/* === Применение === */
.application-section {
    background-color: var(--light-gray-bg);
    text-align: center;
}

.application-text {
    max-width: 900px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-light);
}

/* --- */

/* === Преимущества === */
.features-section {
    background-color: var(--bg-color);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.feature-card {
    background: var(--light-gray-bg);
    border: 1px solid #e9ecef;
    border-radius: 16px;
    padding: 30px;
    transition: var(--transition);
    text-align: left;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--premium-shadow);
    border-color: transparent;
    background: var(--bg-color);
}

.feature-icon {
    margin-bottom: 20px;
    height: 60px;
}

.feature-icon img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    filter: drop-shadow(0 5px 10px rgba(0, 174, 239, 0.3));
}

.feature-card h4 {
    margin-bottom: 10px;
    color: var(--primary-color);
    font-size: 1.25rem;
}

.feature-card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

.feature-card sup {
    vertical-align: super;
    font-size: 0.6em;
    margin-left: 2px;
    white-space: nowrap;
}

.feature-card sup a.footnote-link {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 700;
    cursor: pointer;
    transition: color 0.2s ease;
}

.feature-card sup a.footnote-link:hover {
    color: var(--primary-color);
}

/* --- */

/* === Инструкция (новый раздел) === */
.instruction-section {
    background-color: var(--light-gray-bg);
    text-align: center;
}

.instruction-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.instruction-card {
    background: var(--bg-color);
    border-radius: 16px;
    box-shadow: var(--premium-shadow);
    padding: 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    transition: var(--transition);
}

.instruction-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--hover-shadow);
}

.instruction-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.instruction-card p {
    color: var(--text-light);
    margin-bottom: 25px;
    flex-grow: 1;
    font-size: 0.95rem;
}

.instruction-card .btn-secondary {
    width: fit-content;
    margin-top: auto;
}

/* --- */

/* === Клинические исследования === */

.evidence-intro {
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 40px;
}

.evidence-list {
    list-style: none;
    counter-reset: evidence-counter;
    padding-left: 0;
    max-width: 900px;
    margin: 0 auto;
}

.evidence-list li {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 15px;
    line-height: 1.6;
    padding-left: 35px;
    position: relative;
    transition: background-color 0.4s ease, border-left-color 0.4s ease, padding-left 0.4s ease;
}

.evidence-list li::before {
    counter-increment: evidence-counter;
    content: counter(evidence-counter);
    position: absolute;
    left: 0;
    top: 0;
    width: 24px;
    height: 24px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    text-align: center;
    font-size: 0.8rem;
    line-height: 24px;
    font-weight: 600;
}

.evidence-list li.highlighted-study {
    background-color: rgba(0, 174, 239, 0.15);
    border-left: 5px solid var(--secondary-color);
    padding-left: 30px;
    animation: highlightFade 3.5s forwards;
}

@keyframes highlightFade {
    0% {
        background-color: rgba(0, 174, 239, 0.25);
        border-left-color: var(--secondary-color);
        padding-left: 30px;
    }

    70% {
        background-color: rgba(0, 174, 239, 0.1);
        border-left-color: var(--secondary-color);
        padding-left: 30px;
    }

    100% {
        background-color: transparent;
        border-left-color: transparent;
        padding-left: 35px;
    }
}

/* --- */

/* === Информация для специалистов === */
.info-section {
    background: linear-gradient(45deg, var(--primary-color), #1a253c);
    color: var(--bg-color);
    text-align: center;
}

.info-section h3 {
    font-size: 1.8rem;
}

.info-section p {
    max-width: 800px;
    margin: 1rem auto 1.5rem;
    opacity: 0.9;
}

.reg-number {
    display: inline-block;
    padding: 10px 20px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    font-size: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* --- */

/* === Футер === */
.footer {
    background-color: var(--footer-bg);
    color: rgba(255, 255, 255, 0.7);
    padding: 70px 0;
}

.footer-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 60px;
    text-align: center;
}

.footer-col {
    max-width: 450px;
    flex: 1 1 300px;
}

.footer-col h4 {
    color: var(--bg-color);
    margin-bottom: 20px;
}

.footer-col p,
.footer-col a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-col a:hover {
    color: var(--secondary-color);
}

/* --- */

/* === Hero Actions & Znachki === */
.hero-main-action {
    display: flex;
    align-items: center;
    gap: 20px;
}

.hero-znachki img {
    width: 300px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.1));
}

/* === Секция Компания === */
.company-section {
    background-color: var(--light-gray-bg);
}

.company-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.company-content p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 25px;
    line-height: 1.8;
}

.linkedin-links {
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
}

.linkedin-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background-color: #0077b5;
    color: white !important;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: var(--transition);
}

.linkedin-btn:hover {
    background-color: #005582;
    transform: translateY(-2px);
}

/* --- */

/* === Анимация появления === */
.fade-in {
    opacity: 0;
    transform: translateY(30px) scale(0.98);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    transition-delay: var(--delay, 0s);
}

.fade-in.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* --- */

/* === Адаптивность === */
@media (max-width: 992px) {
    h1 {
        font-size: 2.8rem;
    }

    h2 {
        font-size: 2.2rem;
    }

    section {
        padding: 100px 0;
    }

    .hero-container {
        flex-direction: column;
        text-align: center;
    }

    .hero-content {
        max-width: 100%;
        order: 2;
    }

    .hero-image-wrapper {
        width: 60%;
        order: 1;
        margin-bottom: 40px;
    }

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

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .origin-and-compliance {
        justify-content: center;
    }

    .hero-title {
        justify-content: center;
    }

    /* Добавленные медиа-запросы для hero */
    .hero-actions {
        justify-content: center;
    }

    .compliance-badge {
        font-size: 0.85rem;
        padding: 12px 20px;
    }

    .compliance-icon {
        width: 100px;
        height: 100px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background-color: var(--bg-color);
        padding-top: 100px;
        align-items: center;
        justify-content: center;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
        z-index: 999;
        overflow-y: auto;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        margin: 20px 0;
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.4s ease-out, transform 0.4s ease-out;
        transition-delay: var(--delay);
    }

    .nav-links.active li {
        opacity: 1;
        transform: translateY(0);
    }

    .nav-links.active li:nth-child(1) {
        --delay: 0.1s;
    }

    .nav-links.active li:nth-child(2) {
        --delay: 0.2s;
    }

    .nav-links.active li:nth-child(3) {
        --delay: 0.3s;
    }

    .nav-links.active li:nth-child(4) {
        --delay: 0.4s;
    }

    .nav-links.active li:nth-child(5) {
        --delay: 0.5s;
    }

    .nav-links.active li:nth-child(6) {
        --delay: 0.6s;
    }


    .nav-links a {
        font-size: 1.8rem;
        color: var(--primary-color);
        padding: 10px 0;
    }

    .menu-toggle {
        display: flex;
    }

    /* Animation for hamburger icon */
    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    /* Ensure logo and toggle are correctly spaced */
    .main-nav {
        justify-content: space-between;
    }

    .hero-title-main-logo {
        height: 125px;
    }

    .hero-title-innate-logo {
        height: 45px;
    }

    /* Адаптивность для карточек инструкций */
    .instruction-grid {
        grid-template-columns: 1fr;
    }

    /* Дополнительная проверка, что продукты и преимущества тоже 1fr */
    .products-grid,
    .features-grid {
        grid-template-columns: 1fr;
    }

    /* Добавленные медиа-запросы для hero */
    .hero-actions {
        flex-direction: column;
    }

    .compliance-badge {
        text-align: center;
        flex-direction: row;
        justify-content: center;
    }

    .hero-znachki img {
        width: 300px;
        max-width: 100%;
    }

    .hero-main-action {
        flex-direction: column;
        gap: 15px;
    }
}

/* Стили для переключателя языка */
.lang-item {
    display: flex;
    align-items: center;
}

.lang-switcher {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px !important;
    border: 1px solid var(--primary-color);
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition) !important;
    color: var(--primary-color) !important;
}

/* Убираем эффект подчеркивания для кнопки языка */
.lang-switcher::after {
    display: none !important;
}

.lang-switcher:hover {
    background-color: var(--primary-color);
    color: #fff !important;
}

.lang-icon {
    display: flex;
    align-items: center;
}

/* Адаптив для мобильных устройств */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-actions {
        margin-left: 0;
    }

    .lang-item {
        margin-left: 0;
        margin-top: 0;
    }

    .lang-switcher {
        font-size: 14px;
        padding: 5px 12px !important;
    }
}