/* ==========================================================================
   КОРНЕВЫЕ ПЕРЕМЕННЫЕ И СБРОС СТИЛЕЙ
   ========================================================================== */
:root {
    /* Фирменная зеленая палитра */
    --primary: #059669;
    --primary-hover: #047857;
    --secondary: #10B981;
    --secondary-light: #E6F4EA;
    --background: #F8FAFC;
    --white: #FFFFFF;
    --text: #0F172A;
    --text-muted: #475569;
    --border: #E2E8F0;
    --danger: #EF4444;
    
    /* Тени и скругления */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 10px 25px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.08);
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --transition: all 0.25s ease-in-out;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    scroll-behavior: smooth;
}

body {
    background-color: var(--background);
    color: var(--text);
    overflow-x: hidden;
    padding-top: 100px; /* Отступ, чтобы фиксированный навбар не перекрывал контент */
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================================================
   КНОПКИ
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    text-decoration: none;
    padding: 12px 24px;
    font-size: 15px;
}
.btn_primary {
    background-color: var(--primary);
    color: var(--white);
}
.btn_primary:hover {
    background-color: var(--primary-hover);
}
.btn_secondary {
    background-color: var(--secondary-light);
    color: var(--primary);
    border: 1px solid var(--border);
}
.btn_secondary:hover {
    background-color: #d1ebd6;
}
.btn_md { padding: 10px 20px; font-size: 14px; }
.btn_lg { padding: 14px 30px; font-size: 16px; font-weight: 700; border-radius: var(--radius-md); }
.btn_block { width: 100%; display: flex; }
.btn:disabled { background-color: #cbd5e1; color: #94a3b8; cursor: not-allowed; }

/* ==========================================================================
   КАПСУЛЬНЫЙ НАВБАР
   ========================================================================== */
.navbar_section {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    background: transparent;
}

.capsule_navbar {
    background: linear-gradient(135deg, #15803D, #4ADE80);
    border: 1px solid rgba(5, 150, 105, 0.3);
    border-radius: 100px;
    padding: 8px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.nav_logo {
    display: flex;
    align-items: center;
    height: 44px;
}
.nav_logo img {
    height: 200px; /* Картинка аккуратно вписывается в высоту навбара */
    width: 200px;
}

.nav_menu {
    display: flex;
    list-style: none;
    gap: 30px;
    margin: 0;
    padding: 0;
}
.nav_link {
    color: #e2e8f0;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
}
.nav_link:hover {
    color: var(--secondary);
}

.nav_actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn_nav_cart {
    background: var(--primary);
    color: #ffffff;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}
.btn_nav_cart:hover {
    background: var(--primary-hover);
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
}

.cart_badge {
    background: #ffffff;
    color: var(--primary);
    font-size: 11px;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 20px;
    min-width: 18px;
    text-align: center;
}

#burgerMenu {
    display: none; /* Скрыт на ПК */
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: var(--transition);
}
#burgerMenu i {
    font-size: 1.6rem;
    color: #ffffff;
    line-height: 1;
}
#burgerMenu:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* ==========================================================================
   ГЛАВНЫЙ БАННЕР (HEADER)
   ========================================================================== */
.header {
    background-color: #ffffff;
    background-image: url('../img/Header.webp'); 
    background-position:center;
    background-repeat: no-repeat;
    background-size: cover;
    padding: 180px 0 100px 0;
    border-bottom: 1px solid var(--border);
}
.about_section{
    padding:100px 0;
    background:#fff;
}

.section_heading{
    max-width:800px;
    margin:0 auto 60px;
    text-align:center;
}

.section_heading span{
    color:#3FAE49;
    font-weight:600;
    letter-spacing:2px;
    text-transform:uppercase;
}

.section_heading h2{
    color:#1F2937;
    font-size:48px;
    font-weight:700;
    margin:15px 0;
}

.section_heading p{
    color:#6B7280;
    font-size:18px;
    line-height:1.8;
}

.about_grid{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:25px;
}

.about_card{
    background:#F7F8FA;
    border:1px solid #E5E7EB;
    border-radius:18px;
    padding:30px;
    transition:.3s;
}

.about_card:hover{
    transform:translateY(-5px);
    border-color:#3FAE49;
    box-shadow:0 15px 35px rgba(63,174,73,.15);
}

.about_card i{
    font-size:40px;
    color:#3FAE49;
}

.about_card h4{
    margin:18px 0 10px;
    color:#1F2937;
    font-size:22px;
}

.about_card p{
    color:#6B7280;
    line-height:1.7;
}

.btn_telegram{
    display:inline-flex;
    align-items:center;
    gap:10px;
    margin:60px auto;
    padding:16px 34px;
    border-radius:50px;
    background:#3FAE49;
    color:#fff;
    text-decoration:none;
    font-weight:600;
    transition:.3s;
}

.btn_telegram:hover{
    background:#2E7D32;
    color:#fff;
}

.stats{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:20px;
    margin-top:30px;
}

.stat{
    background:#F7F8FA;
    border-radius:18px;
    padding:30px;
    text-align:center;
}

.stat h2{
    color:#3FAE49;
    font-size:42px;
    font-weight:700;
    margin-bottom:10px;
}

.stat span{
    color:#6B7280;
}

@media(max-width:992px){

.about_grid{
grid-template-columns:1fr;
}

.stats{
grid-template-columns:repeat(2,1fr);
}

}

@media(max-width:576px){

.section_heading h2{
font-size:34px;
}


.section_heading p{
font-size:16px;
}

.stats{
grid-template-columns:1fr;
}

.btn_telegram{
width:100%;
justify-content:center;
}

}
.header_content_wrapper {
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.header_text_block {
    max-width: 630px;
    width: 100%;
    text-align: left;
    display: flex;
    flex-direction: column;
}

.header_subtitle { 
    color: var(--primary); 
    font-weight: 700; 
    font-size: 14px; 
    text-transform: uppercase; 
    letter-spacing: 1px; 
    margin-bottom: 15px; 
}
.header_title { 
    font-size: 42px; 
    font-weight: 900; 
    color: var(--text); 
    line-height: 1.2; 
    margin-bottom: 20px; 
}
.header_description { 
    font-size: 16px; 
    color: var(--text-muted); 
    line-height: 1.6; 
    margin-bottom: 35px; 
}
.header_btns { 
    display: flex; 
    gap: 12px; 
    justify-content: flex-start;
    flex-wrap: wrap; 
}

/* ==========================================================================
   ИНФОРМАЦИОННЫЕ СЕКЦИИ И СТАТИСТИКА
   ========================================================================== */
.info_section { padding: 80px 0; }
.section_title { text-align: center; margin-bottom: 40px; }
.section_title h2 { font-size: 30px; font-weight: 800; color: var(--text); }
.section_subtitle { color: var(--text-muted); margin-top: 8px; font-size: 16px; }
.title_line { width: 60px; height: 4px; background-color: var(--primary); margin: 12px auto 0 auto; border-radius: 2px; }

.stats_grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 40px; text-align: center; }
.stat_item { background: var(--white); padding: 25px 15px; border-radius: var(--radius-md); box-shadow: var(--shadow-sm); border: 1px solid var(--border); }
.stat_num { font-size: 32px; font-weight: 900; color: var(--primary); display: block; margin-bottom: 5px; }
.stat_lbl { font-size: 14px; color: var(--text-muted); font-weight: 500; }

/* ==========================================================================
   КАТАЛОГ И КАРТОЧКИ ТОВАРОВ
   ========================================================================== */
.catalog_section { padding: 80px 0; background-color: var(--white); }
.catalog_filter { display: flex; justify-content: center; gap: 12px; margin-bottom: 45px; flex-wrap: wrap; }
.filter_btn { padding: 10px 24px; font-size: 14px; font-weight: 500; border-radius: 30px; background-color: var(--background); border: 1px solid var(--border); color: var(--text-muted); cursor: pointer; transition: var(--transition); }
.filter_btn:hover { border-color: var(--primary); color: var(--primary); }
.filter_btn.active { background-color: var(--primary); border-color: var(--primary); color: var(--white); box-shadow: 0 4px 12px rgba(5, 150, 105, 0.2); }

#productsGrid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    padding: 20px 0;
}

.product_card {
    background: #ffffff;
    border: 1px solid #eef2f5;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.product_card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
}
.product_img_wrap {
    width: 100%;
    height: 220px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #fdfdfd;
    padding: 15px;
}
.product_img_wrap img { max-width: 100%; max-height: 100%; object-fit: contain; }

.product_info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
}
.product_header_block { margin-bottom: 20px; }
.product_title { font-size: 1.15rem; font-weight: 600; color: #1a1a1a; text-align: center; margin: 0 0 12px 0; }
.product_description_full { font-size: 0.88rem; color: #666666; line-height: 1.5; text-align: left; margin: 0; }

.product_footer_block {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin-top: auto;
}
.product_meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin: 0 0 15px 0;
    width: 100%;
}
.product_price { font-size: 1.25rem; font-weight: 700; color: var(--primary); }
.product_badge { background: #f0f4f8; color: #4a5568; font-size: 0.78rem; font-weight: 600; padding: 4px 10px; border-radius: 6px; white-space: nowrap; }
.product_actions { width: 100%; display: flex; justify-content: center; margin: 0; padding: 0; }
.product_dosage{
    background: #f0f4f8; color: #4a5568; font-size: 0.78rem; font-weight: 600; padding: 4px 10px; border-radius: 6px; white-space: nowrap; 
}
.btn_catalog_cart {
    width: 85%;
    max-width: 240px;
    padding: 10px 20px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    border: none;
    background-color: var(--primary);
    color: #fff;
    cursor: pointer;
    transition: var(--transition);
    display: block;
    margin: 0 auto;
    text-align: center;
}
.btn_catalog_cart:hover { background-color: var(--primary-hover); }

/* ==========================================
   B2B И КЛИНИКА
   ========================================== */
.b2b_bg { background-color: var(--background); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.max_w_800 { max-width: 800px; }
.b2b_features { display: grid; grid-template-columns: 1fr; gap: 15px; margin: 25px 0 35px 0; }
.b2b_feat_item { display: flex; gap: 15px; align-items: flex-start; background: #fff; padding: 15px 20px; border-radius: var(--radius-md); border: 1px solid var(--border); }
.b2b_feat_item i { font-size: 22px; color: var(--primary); }
.b2b_feat_item b { color: var(--text); }

.clinic_bg { background-color: var(--white); border-top: 1px solid var(--border); }
.clinic_box { max-width: 800px; margin: 0 auto; text-align: center; }
.clinic_p1 { font-size: 19px; color: var(--text); font-weight: 700; margin-bottom: 12px; }
.clinic_p2 { color: var(--text-muted); line-height: 1.7; margin-bottom: 25px;}
 
/* ==========================================
   КАЛЬКУЛЯТОР ДОЗИРОВОК
   ========================================== */
.calculator_section { padding: 60px 0; background-color: #fcfdfe; border-top: 1px solid #edf2f7; }
.calc_grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; margin-top: 30px; }

.calc_step_block { background: #ffffff; border: 1px solid #f0f4f8; border-radius: 12px; padding: 20px; margin-bottom: 20px; box-shadow: 0 2px 10px rgba(0,0,0,0.01); }
.step_title { display: block; font-weight: 600; color: #2d3748; margin-bottom: 12px; font-size: 1.05rem; }

.syringe_selector { display: flex; gap: 15px; }
.syringe_option { flex: 1; border: 2px solid #e2e8f0; border-radius: 10px; padding: 12px; text-align: center; cursor: pointer; transition: var(--transition); font-weight: 500; background: #fff; }
.syringe_option.active { border-color: var(--primary); background-color: var(--secondary-light); color: var(--primary); }

.btn_group_calc { display: grid; grid-template-columns: repeat(auto-fill, minmax(85px, 1fr)); gap: 10px; }
.calc_btn { padding: 10px 5px; border: 1px solid #cbd5e0; background: #fff; border-radius: 8px; cursor: pointer; font-weight: 500; font-size: 0.9rem; color: #4a5568; transition: all 0.15s ease; text-align: center; }
.calc_btn:hover { background: #f7fafc; border-color: #a0aec0; }
.calc_btn.active { background: var(--primary) !important; border-color: var(--primary) !important; color: var(--white) !important; font-weight: 600; box-shadow: 0 4px 12px rgba(5, 150, 105, 0.2); }

.calc_results_wrapper { display: flex; flex-direction: column; gap: 20px; }
.results_card { background: #ffffff; border: 2px dashed #cbd5e0; border-radius: 16px; padding: 30px 20px; text-align: center; }
.result_text_main { font-size: 1.2rem; font-weight: 600; color: #2d3748; line-height: 1.5; margin-bottom: 40px; }

/* Интерактивный шприц */
.visual_syringe_container { background: #f7fafc; border: 2px solid var(--border); border-radius: 50px; height: 80px; padding: 15px 30px 25px 30px; display: flex; align-items: flex-start; position: relative; margin: 20px 0; }
.ticks_wrapper { display: flex; justify-content: space-between; width: 100%; height: 30px; align-items: flex-start; position: relative; }
.syringe_tick { width: 2px; background-color: #a0aec0; position: relative; height: 15px; transition: var(--transition); }
.minor_tick { height: 12px; }
.major_tick { height: 25px; background-color: var(--text-muted); }

.tick_label { position: absolute; bottom: -22px; left: 50%; transform: translateX(-50%); font-size: 0.75rem; font-weight: 600; color: var(--text-muted); }
.syringe_tick.filled_liquid { background-color: #f6ad55; box-shadow: 0 0 4px #f6ad55; }
.syringe_tick.major_tick.filled_liquid { background-color: #e67e22; }

.calc_info_card { background: var(--background); border-radius: var(--radius-md); padding: 20px; border-left: 4px solid var(--primary); }
.calc_info_card h4 { margin: 0 0 10px 0; color: var(--primary); font-size: 1.05rem; }
.calc_info_card p { font-size: 0.88rem; color: #718096; line-height: 1.5; margin: 0 0 10px 0; }
.formula_view { text-align: center; background: #fff; padding: 10px; border-radius: 6px; border: 1px solid #e2e8f0; margin: 15px 0 0 0; }

/* ==========================================
   КОРЗИНА, МОДАЛКИ И ФОРМЫ
   ========================================== */
.cart_overlay, .modal_overlay { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: rgba(15, 23, 42, 0.6); z-index: 1000; display: none; backdrop-filter: blur(4px); }
.cart_overlay.active, .modal_overlay.active { display: block; }

.cart_sidebar { position: fixed; top: 0; right: -400px; width: 400px; height: 100vh; background: var(--white); z-index: 1001; box-shadow: var(--shadow-lg); display: flex; flex-direction: column; transition: right 0.3s ease-in-out; }
.cart_sidebar.active { right: 0; }

.cart_header { padding: 20px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
.cart_close, .modal_close { cursor: pointer; font-size: 20px; color: var(--text-muted); transition: var(--transition); }
.cart_close:hover, .modal_close:hover { color: var(--danger); }
.cart_items { padding: 20px; flex-grow: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 15px; }

.cart_item { display: flex; gap: 15px; align-items: center; padding-bottom: 15px; border-bottom: 1px solid var(--border); position: relative; }
.cart_item_img { width: 60px; height: 60px; background: #fff; padding: 5px; border-radius: var(--radius-sm); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; }
.cart_item_img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.cart_item_info { flex-grow: 1; }
.cart_item_title { font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.cart_item_price { font-size: 15px; color: var(--primary); font-weight: 900; margin-bottom: 8px; }
.cart_item_ctrl { display: flex; align-items: center; gap: 12px; }
.cart_ctrl_btn { border: 1px solid var(--border); background: var(--background); width: 26px; height: 26px; display: flex; align-items: center; justify-content: center; border-radius: 4px; cursor: pointer; font-weight: bold; }
.cart_item_qty { font-size: 14px; font-weight: 700; }
.cart_item_remove { cursor: pointer; color: #94a3b8; font-size: 18px; transition: var(--transition); }
.cart_item_remove:hover { color: var(--danger); }

.cart_empty_state { text-align: center; color: var(--text-muted); padding: 40px 0; }
.cart_empty_state i { font-size: 48px; display: block; margin-bottom: 10px; color: #cbd5e1; }

.cart_footer { padding: 20px; border-top: 1px solid var(--border); background: var(--background); }
.cart_total { display: flex; justify-content: space-between; font-size: 18px; font-weight: 800; color: var(--text); margin-bottom: 15px; }
#cartTotalSum { color: var(--primary); }

.modal_window { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); background: var(--white); z-index: 1002; width: 90%; max-width: 750px; border-radius: var(--radius-lg); padding: 35px; box-shadow: var(--shadow-lg); display: none; }
.modal_window.active { display: block; }
.modal_window.modal_small { max-width: 450px; }
.modal_close { position: absolute; top: 20px; right: 20px; }

.form_group { margin-bottom: 15px; }
.form_group label { display: block; font-size: 13px; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.form_group input, .form_group textarea { width: 100%; padding: 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 14px; background: var(--background); outline: none; }
.form_group input:focus, .form_group textarea:focus { border-color: var(--primary); background: #fff; }

/* ==========================================
   ТОСТЫ И АНИМАЦИИ
   ========================================== */
.toast_container { position: fixed; bottom: 20px; right: 20px; z-index: 2000; display: flex; flex-direction: column; gap: 10px; }
.toast { background: #0f172a; color: #fff; padding: 14px 24px; border-radius: var(--radius-md); box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 500; min-width: 300px; animation: slideIn 0.3s ease-out; }
.toast.error { background: var(--danger); }
.toast i { font-size: 18px; }

@keyframes slideIn { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* ==========================================
   ФУТЕР
   ========================================== */
.footer { background-color: var(--text); color: #94a3b8; padding: 40px 0; font-size: 14px; border-top: 1px solid #334155; }
.footer_content { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; }
.footer_socials a { color: #94a3b8; font-size: 22px; transition: var(--transition); }
.footer_socials a:hover { color: var(--secondary); }

/* ==========================================================================
   АДАПТИВНОСТЬ (МЕДИА-ЗАПРОСЫ)
   ========================================================================== */
@media (max-width: 992px) {
    .calc_grid { 
        grid-template-columns: 1fr; 
    }

    /* Мобильный баннер: картинка уходит вниз по центру */
    .header {
        background-image: url(../img/Header.webp);
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
    }
    .header_text_block {
        max-width: 100%;
        text-align: center;
    }
    .header_btns {
        justify-content: center;
    }

    /* Мобильный капсульный навбар */
    #burgerMenu {
        display: flex !important; 
    }
    .capsule_navbar {
        border-radius: 35px;
        padding: 8px 16px;
        position: relative;
    }
    .nav_logo img{
        width: 90px;
        height: 90px;
    }

    /* Меню выпадает строго под капсулой */
    .nav_menu {
        display: none; 
        flex-direction: column;
        position: absolute;
        top: 75px; 
        left: 0;
        width: 100%;
        background: #0b1511;
        border: 1px solid rgba(5, 150, 105, 0.3);
        border-radius: 24px;
        padding: 20px;
        box-shadow: 0 10px 25px rgba(0,0,0,0.5);
        gap: 15px;
        box-sizing: border-box; 
    }
    .nav_menu.mobile_active {
        display: flex !important;
    }
}

@media (max-width: 768px) {
    .stats_grid { 
        grid-template-columns: repeat(2, 1fr); 
    }
    .cart_sidebar { 
        width: 100%; 
        right: -100%; 
    }
}

@media (max-width: 576px) {
    .header {
        background-image: url(../img/Header.webp);
        background-size:cover;
        background-position: center;
        background-repeat: no-repeat;
    }
    .header_title {
        font-size: 30px;
    }
}