/* Файл: style.css */

body {
    font-family: "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    color: #333;
    background-color: #ffffff;
}

.top-gradient-bar {
    height: 30px;
    background: linear-gradient(to right, #2a5a5b, #4a8a8b);
    position: relative; /* Добавим для контекста z-index, если потребуется */
    z-index: 1; /* Слой ниже, чем логотип */
}

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

.hero-block-visual {
    background-color: #ffffff;
    padding-top: 0;
    padding-bottom: 10px; /* СИЛЬНО УМЕНЬШИЛИ нижний отступ от геройского блока */
    text-align: left;
    /* border-bottom был убран ранее */
    position: relative;
}

.hero-block-visual .container {
    padding-left: 15px;
    padding-right: 15px;
}

.logo-area {
    margin-top: -12.5px; /* Новое значение: -(новая_высота_логотипа / 2) = -(25px / 2) */
    position: relative;
    z-index: 2;
    margin-bottom: 25px; /* Отступ снизу от логотипа до заголовка */
}

.logo {
    width: 90px; /* Уменьшили ширину в 2 раза */
    height: 25px; /* Уменьшили высоту в 2 раза */
    display: block;
}

.main-headline-visual {
    font-size: 2.2em;
    color: #1d1d1f;
    font-weight: 700;
    line-height: 1.3;
    margin-top: 0; /* Заголовок начнется сразу после margin-bottom у .logo-area */
    margin-bottom: 10px;
}

.expert-intro-line {
    font-size: 1.1em;
    color: #555e67;
    margin-bottom: 15px;
}

.expert-tag-visual {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
}

.expert-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 10px;
}

.expert-name-tag {
    font-size: 0.9em;
    color: #333;
    font-weight: 500;
}

.main-image-container {
    text-align: center;
    margin-top: 20px;
}

.main-hero-image {
    max-width: 100%;
    height: auto;
    border-radius: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .hero-block-visual .container {
        padding-left: 0;
        padding-right: 0;
        width: 100%;
        box-sizing: border-box;
    }

    .logo-area,
    .main-headline-visual,
    .expert-intro-line,
    .expert-tag-visual,
    .main-image-container {
        padding-left: 5px;
        padding-right: 5px;
    }

    /* Если текст должен быть СОВСЕМ от края до края на мобильных, а другие элементы с отступами: */
    /*
    .main-headline-visual,
    .expert-intro-line {
        padding-left: 0; 
        padding-right: 0; 
    }
    .logo-area, .expert-tag-visual, .main-image-container {
         padding-left: 15px; 
         padding-right: 15px;
    }
    */

    .main-headline-visual {
        font-size: 2.2em;
    }

    .expert-intro-line {
        font-size: 1em;
    }
    .main-hero-image {
        margin-bottom: 20px;
    }
}

/* Стили для Блока 2, Части 1: Идентификация боли (финальный текст) */
.pain-intro-section {
    background-color: #ffffff;
    padding: 0px 0 0px 0; /* Оставили уменьшенные отступы, как в прошлый раз */
}

.pain-intro-section .container {
    padding-left: 5px;
    padding-right: 5px;
}

.pain-intro-line {
    font-family: "Helvetica Neue", Arial, sans-serif;
    font-size: 1.2em;
    line-height: 1.65;
    color: #000000; /* ИЗМЕНЕН НА БОЛЕЕ ЧЕРНЫЙ/ТЕМНО-СЕРЫЙ. Вариант: #000000 для чисто черного */
    margin-bottom: 20px;
}

/* Стиль для четвертой, заключающей фразы ("Тогда вы уже «в курсе»...") */
.pain-intro-line.pain-intro-conclusion {
    /* Можно оставить без особых изменений или добавить небольшой акцент, если нужно */
    /* font-weight: 500; */ /* Например, немного выделить */
}

/* Стиль для пятой, обобщающей фразы ("А для тех, кто еще не знает...") */
.pain-intro-line.pain-intro-summary {
    margin-top: 30px; /* Больший отступ перед этой фразой */
    color: #000000; /* Может быть немного другой оттенок для выделения */
}

.pain-intro-line.pain-intro-summary strong {
    font-weight: 600; /* Или 700, в зависимости от желаемой жирности */
    color: #000000; /* Можно сделать выделенный текст абсолютно черным для акцента */
}

/* Адаптивность для этой части Блока 2 */
@media (max-width: 768px) {
    .pain-intro-section .container {
        padding-left: 5px;
        padding-right: 5px;
    }

    .pain-intro-line,
    .pain-intro-line.pain-intro-summary {
        font-size: 1.1em;
        line-height: 1.6;
        margin-bottom: 18px;
        /* color: #1d1d1f; наследуется */
    }
    .pain-intro-line.pain-intro-summary strong {
        /* font-weight и color наследуются или можно переопределить для мобильных */
    }
}

.expert-section {
    background-color: #ffffff;
    display: flex;
    justify-content: center;
}

.expert-card {
    background-color: #eaf7f3;
    border-radius: 24px;
    max-width: 820px;
    width: 100%;
    padding: 0px 40px;
    box-sizing: border-box;
}

.expert-title {
    font-size: 2em;
    font-weight: 800;
    margin-bottom: 24px;
    color: #1c1c1c;
    line-height: 1.3;
}

.expert-content p {
    font-size: 1.1em;
    line-height: 1.65;
    color: #2c2c2c;
    margin-bottom: 16px;
}

.expert-bold {
    font-weight: 700;
    color: #111;
}

.testimonial-block {
    background: #ffffff;
    border-radius: 20px;
    padding: 70px 30px 30px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    margin-top: 40px;
    position: relative;
    text-align: left;
}

.testimonial-avatar {
    position: absolute;
    top: -48px;
    left: 50%;
    transform: translateX(-50%);
}

.testimonial-avatar img {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #fff;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
}

.testimonial-block blockquote {
    font-size: 1.05em;
    line-height: 1.6;
    color: #222;
    margin: 0;
}

.testimonial-name {
    margin-top: 20px;
    font-weight: 600;
    color: #0f7162;
}

.stars {
    color: #f2b01e;
    margin-left: 6px;
}

.disclaimer {
    font-size: 0.85em;
    color: #888;
    text-align: center;
    margin-top: 30px;
}

@media (max-width: 768px) {
    .expert-card {
        padding: 0px 10px;
        border-radius: 20px;
    }

    .expert-title {
        font-size: 2.2rem;
    }

    .expert-content p {
        font-size: 1em;
    }

    .testimonial-block {
        padding: 60px 10px 25px;
    }
}

.slimlex-divider {
    height: 6px;
    width: 100%;
    max-width: 820px;
    margin: 40px auto;
    background: linear-gradient(to right, #00322d, #cfe7df); /* глубокий тёмно-зелёный → светлая дымка */
    border-radius: 3px;
    background-color: #ffffff;
}

/* Вариант заголовка меньшего размера */
.main-headline-visual.small {
    font-size: 2.2rem;
    margin-bottom: 20px;
}

.chart-slimlex {
    margin: 40px 0;
    overflow-x: hidden;
}

.chart-title {
    font-size: 1.3rem;
    text-align: center;
    font-weight: 600;
    margin-bottom: 20px;
}

.chart-wrapper {
    width: 100%;
    overflow-x: hidden;
}

.chart-visual {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    position: relative;
    overflow-x: hidden;
}

.y-axis-label {
    font-size: 14px;
    color: #0a5a55;
    font-weight: 600;
    text-align: left;
    height: 20px;
    margin-bottom: 5px;
    margin-left: 40px;
}

.y-labels {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 220px;
    padding-right: 10px;
    font-size: 14px;
    color: #0a5a55;
    font-weight: 600;
    flex-shrink: 0;
}

.bars {
    display: flex;
    gap: 14px;
    align-items: flex-end;
    height: 240px;
    flex: 1;
    border-left: none;

    background-image: repeating-linear-gradient(to top, transparent, transparent 36px, #eaf5f2 36px, #eaf5f2 37px);
    box-sizing: border-box;
    overflow: visible;
    flex-wrap: nowrap;
    padding-bottom: 28px; /* 👈 решает проблему */
}

.bar {
    width: 13.5%;
    background-color: #0e3c36;
    height: var(--value);
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    border-radius: 2px 2px 0 0;
    transition: all 0.3s ease;
}

.bar span {
    position: absolute;
    bottom: -22px;
    font-size: 14px;
    color: #0a5a55;
    font-weight: 600;
    text-align: center;
    width: 100%;
    white-space: nowrap;
}

.chart-x-label {
    text-align: right;
    margin-top: 0px; /* 👈 было 10px */
    font-size: 16px;
    color: #0a5a55;
    font-weight: 600;
    padding-right: 12px;
}

/* 📱 Мобильная версия */
@media (max-width: 768px) {
    .chart-title {
        font-size: 1.1rem;
    }

    .bar {
        width: 12.5%;
    }

    .bar span {
        font-size: 12px;
        bottom: -18px;
    }

    .y-labels {
        padding-right: 6px;
        font-size: 12px;
    }

    .chart-x-label {
        font-size: 14px;
    }

    .y-axis-label {
        margin-left: 0px;
        font-size: 13px;
    }

    .chart-visual {
        gap: 6px;
    }
}

/* Убираем горизонтальный скролл на всех уровнях */
html,
body {
    overflow-x: hidden;
    max-width: 100vw;
}

.comparison-section {
    max-width: 820px;
    margin: 0 auto;
    padding: 0px 0px;
    font-family: "Helvetica Neue", sans-serif;
}

.comparison-title {
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 30px;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    text-align: center;
    font-family: sans-serif;
}

.comparison-table thead th {
    padding-bottom: 10px;
}

.product-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.product-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background-color: #ccc;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 8px;
}

.green-bg {
    background-color: #123b32;
}

.grey-bg {
    background-color: #ddd;
}

.product-img {
    max-height: 110px;
    width: auto;
    display: block;
}

.product-name {
    font-weight: 600;
    margin: 0;
    font-size: 14px;
}

.comparison-table td,
.comparison-table th {
    padding: 12px 8px;
}

.comparison-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.price-row td {
    font-weight: bold;
    border-top: 1px solid #ccc;
}

.price-label {
    font-weight: 600;
}

.check-icon {
    max-width: 32px;
    height: auto;
}

@media (max-width: 768px) {
    .product-circle {
        width: 80px;
        height: 80px;
    }

    .product-img {
        max-height: 100px;
    }

    .check-icon {
        max-width: 28px;
    }

    .comparison-title {
        font-size: 2rem;
    }
}

.highlight-box {
    background-color: #fffbe6;
    padding-right: 16px;
    border-radius: 6px;
    font-size: 1.1em;
    line-height: 1.6;
    margin: 25px 0;
}

/* ===== Warehouse Clearance Promo Block ===== */
.warehouse-clearance {
    background: #eaf7f3;
    border-radius: 20px;
    padding: 40px 20px;
    text-align: center;
    margin: 40px auto;
    max-width: 820px;
}

.clearance-title {
    font-size: 1.9814rem;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.4;
    max-width: 640px;
    margin: 0 auto 30px;
}

.bottle-visuals {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 12px;
    margin-bottom: 30px;
}

.main-bottle {
    height: 100%;
    width: 100%;
    z-index: 2;
}

.main-bottle {
    height: 70%;
    width: 70%;
    z-index: 2;
}

.side-bottle {
    width: 100px;
    opacity: 0.6;
    transform: scale(0.95);
}

.side-bottle.left {
    transform: rotate(-5deg);
}

.side-bottle.right {
    transform: rotate(5deg);
}

.cta-button {
    display: block;
    max-width: 400px;
    margin: 0 auto 10px;
    padding: 16px;
    font-size: 16px;
    font-weight: 600;
    background: linear-gradient(90deg, #065f52, #30b29c);
    color: white;
    border-radius: 40px;
    text-decoration: none;
    transition: background 0.3s ease;
}

.cta-button:hover {
    background: linear-gradient(90deg, #054a40, #2fa48f);
}

@media (max-width: 768px) {
    .cta-button {
        width: 90%;
        font-size: 16px;
        padding: 16px 0;
    }
}

.disclaimer {
    font-size: 13px;
    color: #555;
    margin-top: 8px;
}

@media screen and (max-width: 768px) {
    .main-bottle {
        height: 100%;
        width: 100%;
    }

    .side-bottle {
        width: 90px;
    }
}

.guarantee-section {
    padding: 0px 0px;
    background-color: #ffffff;
}

.guarantee-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 820px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.guarantee-text {
    flex: 1 1 500px;
}

.guarantee-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #2c2c2c;
}

.guarantee-text p {
    font-size: 18px;
    line-height: 1.6;
    color: #444;
    margin-bottom: 16px;
}

.guarantee-badge {
    flex: 0 0 220px;
    text-align: center;
}

.guarantee-badge img {
    max-width: 100%;
    height: auto;
}

@media (max-width: 768px) {
    .guarantee-container {
        flex-direction: column-reverse; /* картинка станет над заголовком */
        align-items: center;
        text-align: center;
    }

    .guarantee-text {
        flex: 1 1 auto;
    }

    .guarantee-badge {
        flex: 0 0 0px;
        text-align: center;
    }

    .guarantee-badge img {
        max-width: 150px; /* уменьшенный размер */
        height: auto;
    }

    .guarantee-title {
        font-size: 22px;
    }

    .guarantee-text p {
        font-size: 16px;
    }
}

.headline-section {
    text-align: center;
    font-size: 1.6099rem;
    line-height: 1.9375rem;
    color: #244640; /* адаптируй при необходимости */
    font-family: "Helvetica Neue", sans-serif;
    font-weight: 400;
    margin-bottom: 20px;
}

.headline-section strong {
    font-weight: 700;
}

.headline-sub {
    display: block;
    font-weight: 400;
}

.signature-section {
    text-align: center;
    padding: 40px 20px;
}

.signature-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-bottom: 32px;
}

.doctor-photo {
    width: 130px;
    height: 130px;
    border-radius: 20px;
    object-fit: cover;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.doctor-signature {
    max-width: 200px;
    height: auto;
}

.references-section {
    padding: 0px 10px;
    background: #ffffff;
    font-family: "Arial", sans-serif;
}

.references-container {
    max-width: 800px;
    margin: 0 auto;
}

.references-container h3 {
    font-size: 0.9907rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.references-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.references-list li {
    font-size: 0.95rem;
    margin-bottom: 10px;
    word-break: break-all;
}

.footer-section {
    background-color: #0f3f39;
    color: #ffffff;
    padding: 10px 10px;
    font-family: Arial, sans-serif;
    font-size: 6px;
    line-height: 1.4;
    text-align: center;
}

.footer-container {
    max-width: 600px;
    margin: 0 auto;
}

.footer-section .disclaimer {
    font-size: 6px;
    color: #cfe9e5;
    margin-bottom: 12px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 10px;
}

.footer-links a {
    color: #ffffff;
    font-weight: 600;
    text-decoration: none;
    font-size: 6px;
}

.footer-links a:hover {
    text-decoration: underline;
}

.footer-info {
    font-size: 6px;
    color: #cfe9e5;
    line-height: 1.3;
}

/* ===== Плавающая CTA кнопка (унифицированный стиль) ===== */
.floating-button-wrapper {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #ffffff;
    padding: 16px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease-in-out;
    box-sizing: border-box;
}

.floating-button-wrapper.show {
    opacity: 1;
    pointer-events: auto;
}

/* Чтобы кнопка не была слишком крупной на мобилке */
.floating-button-wrapper .cta-button {
    box-shadow: none !important;
    width: 90%;
    max-width: 400px;
    padding: 16px;
    font-size: 16px;
    text-align: center;
    border-radius: 40px;
    font-weight: 600;
    background: linear-gradient(90deg, #065f52, #30b29c);
    color: white;
    text-decoration: none;
    transition: background 0.3s ease;
}

.floating-button-wrapper .cta-button:hover {
    background: #0f7162;
}
