/* =============================================================
   BIOPROMIN — unified dark-green design system
   Reference: biol/index.php (BIOL premium theme)
   Mobile-first, responsive (small → very large displays)
   NOTE: shared header/footer chrome lives in css/chrome.css
   ============================================================= */

/* ---------- Play font (shared copy) ---------- */
@font-face {
    font-family: 'Play';
    font-style: normal;
    font-weight: 400;
    src: url('/fonts/Play-Regular.woff2') format('woff2');
    font-display: swap;
}
@font-face {
    font-family: 'Play';
    font-style: normal;
    font-weight: 700;
    src: url('/fonts/Play-Bold.woff2') format('woff2');
    font-display: swap;
}

/* ---------- Design tokens ---------- */
/* Responsive scale (use these values in ALL project CSS, never invent ad-hoc widths):
   SMALL   phones          0 – 599px     max-width: 599px
   MEDIUM  tablets         600 – 1023px  min-width: 600px  / max-width: 1023px
   LARGE   laptops/desktop 1024 – 1439px min-width: 1024px
   XL      wide displays   1440px+       min-width: 1440px
*/
:root {
    --bg:          #f7faf5;
    --bg-dark:     #eef5ea;
    --bg-card:     #ffffff;
    --bg-elevated: #f0f7ec;

    --accent:      #4c8c2b;
    --accent-2:    #5fa83c;
    --accent-light:#3f7a2b;

    --ink:         #12301f;   /* headings */
    --text:        #2c3f34;   /* body */
    --text-muted:  #5d6e63;

    --border:      rgba(76, 140, 43, .22);
    --border-strong: rgba(76, 140, 43, .42);

    --radius-card: 28px;
    --radius:      18px;
    --radius-sm:   12px;
    --radius-pill: 40px;

    --shadow-sm:   0 4px 14px rgba(20, 40, 25, .08);
    --shadow:      0 12px 32px rgba(20, 40, 25, .10);
    --shadow-lg:   0 24px 60px rgba(20, 40, 25, .16);

    --grad-ink:    linear-gradient(135deg, #12301f, #4c8c2b);
    --grad-accent: linear-gradient(135deg, #3f7a2b, #8bc34a);

    /* Light outlined button (see "Дізнатися більше" / "Уся продукція" / "Надіслати") */
    --btn-light-bg:     #eef6ea;
    --btn-light-bg-hover: #e2efdb;
    --btn-light-border: #9fc68d;
    --btn-light-border-hover: #4c8c2b;

    --container:   1280px;
    --container-wide: 1440px;
    --header-h:    66px;
    --gutter:      16px;

    --font: 'Play', 'Noto Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
    --t-fast: .2s ease;
    --t: .3s ease;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    padding: 0;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--bg);
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-light); }

h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; }
p { margin: 0 0 1rem; }

:focus-visible {
    outline: 3px solid rgba(76, 140, 43, .55);
    outline-offset: 2px;
    border-radius: 4px;
}

main { display: block; padding-top: var(--header-h); }

/* Gradient section/hero headings */
.page-title,
.title-service, .title-mhms, .title-products, .title-news,
.text-content h2, .title-mobile-health-care {
    background: var(--grad-ink);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* =============================================================
   HOMEPAGE HERO
   ============================================================= */
.header-hero-wrapper {
    position: relative;
    width: 100%;
    min-height: calc(100vh - var(--header-h));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: var(--bg-dark);
}
/* Legacy horizontal nav inside the hero -> unified to the shared topbar */
.header-hero-wrapper > header { display: none; }

.header-hero-wrapper .hero {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: clamp(30px, 6vw, 80px) var(--gutter);
    max-width: 900px;
    animation: slide-in .6s ease-out;
}
.header-hero-wrapper .hero h1 {
    font-size: clamp(2rem, 6vw, 3.4rem);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
    margin: 0 0 18px;
    background: var(--grad-ink);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.header-hero-wrapper .hero p {
    font-size: clamp(1rem, 2.4vw, 1.2rem);
    margin: 0 auto 30px;
    max-width: 620px;
    color: var(--text-muted);
}
@keyframes slide-in { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }

/* =============================================================
   VERTICAL SECTION NAV (01–0x dots) — desktop only
   ============================================================= */
.vertical-menu {
    position: fixed;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    width: 60px;
    z-index: 900;
    display: none;
}
.vertical-menu ul { list-style: none; padding: 0; margin: 0; }
.vertical-menu li { margin: 12px 0; text-align: center; }
.vertical-menu li a {
    font-size: .9rem;
    color: var(--text-muted);
    text-decoration: none;
    display: block;
    padding: 6px;
    border-radius: var(--radius-sm);
    transition: color var(--t-fast), background var(--t-fast);
}
.vertical-menu li a:hover { color: var(--ink); }
.vertical-menu li a.active { color: #0a2a1a; background: var(--accent); font-weight: 700; }

/* =============================================================
   BUTTONS
   ============================================================= */
button { font-family: inherit; cursor: pointer; }

.news-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 12px 30px;
    max-width: 100%;
    text-decoration: none;
    background: var(--btn-light-bg);
    border: 2px solid var(--btn-light-border);
    color: var(--ink);
    font-size: .95rem;
    font-weight: 700;
    letter-spacing: .5px;
    border-radius: var(--radius);
    transition: transform var(--t), box-shadow var(--t), background var(--t), border-color var(--t);
}
.news-link:hover { background: var(--btn-light-bg-hover); border-color: var(--btn-light-border-hover); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(20, 40, 25, .12); }

/* Product-page primary/ghost pills */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 28px;
    background: var(--accent);
    color: #0a2a1a;
    font-weight: 700;
    border: 2px solid var(--accent);
    border-radius: var(--radius-pill);
    text-decoration: none;
    cursor: pointer;
    transition: transform var(--t), box-shadow var(--t), background var(--t), color var(--t);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(20, 40, 25, .18); background: var(--accent-2); }
.btn-ghost, .btn.btn-ghost {
    background: var(--btn-light-bg);
    color: var(--ink);
    border: 2px solid var(--btn-light-border);
    border-radius: var(--radius);
}
.btn-ghost:hover { background: var(--btn-light-bg-hover); border-color: var(--btn-light-border-hover); color: var(--ink); }

/* "Show more" arrow link (btn--style) */
.btn--style {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    background: transparent;
    border: none;
    padding: 8px 0;
    text-decoration: none;
    cursor: pointer;
    transition: gap var(--t);
    width: auto;
    min-height: 0;
}
.btn--style:hover { gap: 20px; background: transparent; transform: none; box-shadow: none; }
.btn__text {
    color: var(--accent-light);
    text-transform: uppercase;
    font-size: .72rem;
    letter-spacing: 2px;
    font-weight: 700;
    transition: color var(--t);
}
.btn--style:hover .btn__text { color: var(--ink); }
.btn__icon { width: 42px; height: 10px; fill: var(--accent); flex-shrink: 0; transition: fill var(--t); }

/* =============================================================
   INNER PAGE SHELL
   ============================================================= */
.page-container {
    max-width: var(--container);
    margin: 0 auto;
    padding: clamp(24px, 4vw, 48px) clamp(16px, 4vw, 32px) 72px;
}

.breadcrumbs {
    list-style: none;
    padding: 0;
    margin: 0 0 22px;
    text-align: center;
    font-size: .8rem;
    color: var(--text-muted);
    letter-spacing: .5px;
}
.breadcrumb-item { display: inline; margin: 0 6px; text-transform: uppercase; }
.breadcrumb-link { text-decoration: none; color: var(--text-muted); transition: color var(--t-fast); }
.breadcrumbs a:hover { color: var(--accent); }

.page-title {
    margin: 0 auto 44px;
    text-align: center;
    font-size: clamp(1.9rem, 4vw, 2.8rem);
    font-weight: 700;
    position: relative;
    padding-bottom: 18px;
}
.page-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 70px;
    height: 4px;
    border-radius: 4px;
    background: var(--accent);
}

/* Shared section titles */
.title-service, .title-mhms, .title-products, .title-news,
.contact-region h2, .service-remote-service h1, .features-service h1,
.company-info-about_us h1, .products-text-about_us h2, .certificates-about_us h2 {
    text-align: center;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: 26px;
    color: var(--ink);
}

/* Generic card surfaces */
.contact-content,
.services-service,
.faq-section-faq,
.contact-form-faq {
    background: var(--bg-card);
    padding: clamp(22px, 4vw, 40px);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}
.contact-container { max-width: var(--container); margin: 0 auto; }

/* Long-form legal/text pages (privacy, gdpr) */
.contact-content > p,
.contact-content > strong { color: var(--text); }
.contact-content h1, .contact-content h2, .contact-content h3 { color: var(--ink); }

.legal-doc { line-height: 1.75; }
.legal-doc h2 {
    font-size: 1.25rem;
    margin: 32px 0 12px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    color: var(--ink);
}
.legal-doc h2:first-of-type { border-top: none; padding-top: 0; }
.legal-doc p, .legal-doc .legal-block { color: var(--text); margin: 0 0 14px; }
.legal-doc ul { margin: 10px 0 14px; padding-left: 22px; }
.legal-doc li { margin-bottom: 8px; color: var(--text); }
.legal-doc a { color: var(--accent-light); text-decoration: underline; }
.legal-doc a:hover { color: var(--accent); }
.legal-doc .legal-updated { font-size: .85rem; color: var(--text-muted); margin-bottom: 24px; }
.legal-doc strong { color: var(--ink); }

/* =============================================================
   HOMEPAGE — SCREENING
   ============================================================= */
.screening-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
    padding: clamp(48px, 8vw, 80px) var(--gutter);
    background-color: var(--bg-dark);
    opacity: 0;
    transform: translateY(30px);
    transition: opacity .8s ease, transform .8s ease;
}
.screening-section.visible { opacity: 1; transform: translateY(0); }
.image-container { position: relative; max-width: 520px; width: 100%; }
.image-container img { border-radius: var(--radius-card); box-shadow: var(--shadow); border: 1px solid var(--border); }
.text-content { text-align: center; max-width: 560px; }
.text-content h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); font-weight: 700; margin-bottom: 16px; }
.text-content p { line-height: 1.7; margin-bottom: 28px; color: var(--text-muted); }

/* =============================================================
   HOMEPAGE — MOBILE HEALTH CARE
   ============================================================= */
.section-mobile-health-care { background-color: var(--bg); padding: clamp(48px, 8vw, 80px) 0; }
.container-mobile-health-care {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 clamp(16px, 4vw, 32px);
    display: flex;
    flex-direction: column;
    gap: 32px;
    align-items: center;
}
.text-content-mobile-health-care { flex: 1; text-align: center; }
.title-mobile-health-care { font-size: clamp(1.6rem, 4vw, 2.2rem); font-weight: 700; margin-bottom: 20px; }
.list-mobile-health-care { list-style: none; padding: 0; margin: 0 0 28px; }
.item-mobile-health-care { font-size: 1.05rem; margin-bottom: 10px; color: var(--text-muted); }
.image-content-mobile-health-care { flex: 1; position: relative; width: 100%; }
.image-mobile-health-care { border-radius: var(--radius-card); box-shadow: var(--shadow); border: 1px solid var(--border); margin: 0 auto; }

/* =============================================================
   HOMEPAGE — PRODUCTS
   ============================================================= */
.section-products { background-color: var(--bg-dark); padding: clamp(48px, 8vw, 80px) 0; }
.container-products { max-width: var(--container); margin: 0 auto; padding: 0 clamp(16px, 4vw, 32px); text-align: center; }
.products-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
    margin-bottom: 48px;
}
.product-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 26px;
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    background: var(--bg-card);
    transition: transform var(--t-fast), box-shadow var(--t-fast), border-color var(--t-fast);
}
.product-item:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--border-strong); }
.prod-rl { text-decoration: none; color: var(--ink); display: flex; flex-direction: column; align-items: center; }
.product-image { height: 180px; max-height: 200px; width: 100%; margin-bottom: 18px; object-fit: contain; }
.product-title { font-size: 1.35rem; margin: 0; }
.all-products-link { margin-bottom: 56px; }

.logos-container { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: clamp(16px, 4vw, 32px); }
/* Certification marks — identical white rounded squares, logo centred/contained */
.logo_skin {
    width: 104px;
    height: 104px;
    object-fit: contain;
    background: #fff;
    border-radius: 18px;
    padding: 16px;
    box-shadow: var(--shadow-sm);
}
.news-source {
    max-width: 96px;
    height: auto;
    background: #fff;
    border-radius: 12px;
    padding: 10px 14px;
    box-shadow: var(--shadow-sm);
}

/* =============================================================
   HOMEPAGE — NEWS
   ============================================================= */
.section-news { background-color: var(--bg); padding: clamp(48px, 8vw, 80px) 0; }
.container-news { max-width: var(--container); margin: 0 auto; padding: 0 clamp(16px, 4vw, 32px); }
.title-news { margin-bottom: 40px; }
.news-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: center;
    margin-bottom: 48px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    padding: 24px;
}
.news-image { flex: 1; width: 100%; }
.news-image-item { border-radius: var(--radius); width: 100%; object-fit: cover; }
.news-text { flex: 1; }
.news-date { font-size: .9rem; color: var(--text-muted); display: block; margin-bottom: 12px; }
.news-title { font-size: 1.35rem; margin-bottom: 20px; }
.news-sources { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: clamp(16px, 4vw, 40px); margin-bottom: 48px; }
.all-news-link { text-align: center; }

/* =============================================================
   PRODUCTS PAGE
   ============================================================= */
.products-grid-prod { display: grid; grid-template-columns: 1fr; gap: 24px; }
.product-item-prod {
    padding: 26px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-sm);
    transition: transform var(--t-fast), box-shadow var(--t-fast);
}
.product-item-prod:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.product-image-prod { max-width: 160px; width: 100%; height: 130px; object-fit: contain; }
.product-content-prod { flex: 1; }
.product-title-prod { margin: 0 0 12px; color: var(--ink); }
.product-description-prod { font-size: .95rem; line-height: 1.6; margin-bottom: 20px; color: var(--text-muted); }

/* =============================================================
   ABOUT US
   ============================================================= */
.company-info-about_us { margin-bottom: 40px; text-align: center; }
.company-info-about_us img { border-radius: var(--radius-card); box-shadow: var(--shadow-sm); border: 1px solid var(--border); margin: 0 auto 24px; }
.company-info-about_us h1 { font-size: clamp(1.4rem, 3vw, 1.85rem); font-weight: 700; text-transform: uppercase; margin-bottom: 20px; }
.company-info-about_us p, .products-text-about_us p, .certificates-about_us p { font-size: 1rem; line-height: 1.75; text-align: left; color: var(--text); }
.products-about_us { padding: 40px 0; margin-bottom: 45px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.products-container-about_us { display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }
.products-container-about_us img { border-radius: var(--radius-card); box-shadow: var(--shadow-sm); border: 1px solid var(--border); }
.products-text-about_us h2 { font-size: clamp(1.4rem, 3vw, 1.85rem); font-weight: 700; text-transform: uppercase; margin-bottom: 20px; }
.certificates-about_us { margin-bottom: 40px; }

/* Certificates slider + modal */
.certificates-wrapper { position: relative; max-width: 100%; }
.certificates-slider-about_us { display: flex; gap: 14px; overflow-x: auto; scroll-behavior: smooth; padding: 12px 0; scrollbar-width: thin; }
.certificates-slider-about_us img,
.certificates-slider-about_us iframe {
    width: 200px; height: 280px; object-fit: cover;
    border-radius: var(--radius); border: 1px solid var(--border);
    cursor: pointer; flex-shrink: 0; background: #fff; transition: transform var(--t-fast);
}
.certificates-slider-about_us img:hover { transform: scale(1.03); }
.slider-prev, .slider-next {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: rgba(10, 47, 31, .8); color: #fff; border: 1px solid var(--border-strong);
    width: 44px; height: 44px; cursor: pointer; font-size: 1.1rem; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; transition: background var(--t-fast);
}
.slider-prev { left: 6px; } .slider-next { right: 6px; }
.slider-prev:hover, .slider-next:hover { background: var(--accent); color: #0a2a1a; }

.modal { display: none; position: fixed; inset: 0; background: rgba(4, 18, 11, .9); z-index: 5000; justify-content: center; align-items: center; padding: 24px; }
.modal-content { position: relative; max-width: 92%; max-height: 90vh; }
#modalImage { max-width: 100%; max-height: 90vh; display: block; border-radius: var(--radius); }
.close-modal { position: absolute; top: -40px; right: 0; color: #fff; font-size: 2rem; cursor: pointer; line-height: 1; }

/* =============================================================
   SERVICE
   ============================================================= */
.service-support-service, .service-warranties-service, .service-repair-service {
    display: flex; flex-direction: column; gap: 24px; align-items: flex-start;
    margin-bottom: 40px; padding-bottom: 40px; border-bottom: 1px solid var(--border);
}
.service-content-service { width: 100%; }
.service-image-service { width: 100%; }
.service-image-service img { width: 100%; border-radius: var(--radius-card); box-shadow: var(--shadow-sm); border: 1px solid var(--border); }
.service-content-service h2 { font-size: 1.35rem; margin-bottom: 16px; }
.service-content-service p { line-height: 1.75; color: var(--text); }
.steps-service { display: flex; flex-direction: column; gap: 20px; }
.step-service { display: flex; align-items: flex-start; gap: 18px; }
.step-number-service {
    display: flex; justify-content: center; align-items: center;
    width: 48px; height: 48px; border-radius: 50%;
    background-color: var(--accent); color: #0a2a1a; font-weight: 700;
    font-size: .85rem; flex-shrink: 0; text-align: center; line-height: 1.1;
}
.step-description-service { flex: 1; }
.step-service ol { font-size: .95rem; line-height: 1.75; margin: 0; padding-left: 18px; color: var(--text); }
.service-remote-service { margin-top: 8px; }
.service-remote-service-text { padding: 24px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); line-height: 1.75; margin-bottom: 32px; color: var(--text); }
.features-service { display: grid; grid-template-columns: 1fr; gap: 24px; }
.features-service > h1, .features-service > h2 { grid-column: 1 / -1; }
.service-feature-service { text-align: center; padding: 22px; background: var(--bg-elevated); border-radius: var(--radius-card); border: 1px solid var(--border); }
.service-feature-service img { width: 84px; height: 84px; margin: 0 auto 14px; object-fit: contain; background: #fff; border-radius: 12px; padding: 8px; }
.service-feature-service p { color: var(--text-muted); }

/* =============================================================
   FAQ + CONTACT FORM
   ============================================================= */
.container-faq { max-width: var(--container); margin: 0 auto; }
.faq-section-faq { margin-bottom: 30px; }
.faq-list-faq { margin-top: 8px; }
.faq-item-faq { border-bottom: 1px solid var(--border); padding: 6px 0; cursor: pointer; }
.question-container-faq { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px 0; }
.question-faq { margin: 0; font-size: 1.05rem; color: var(--ink); font-weight: 700; }
.expand-faq { color: var(--accent); font-size: 1.5rem; font-weight: 700; line-height: 1; flex-shrink: 0; }
.answer-faq { display: none; padding: 0 0 16px; font-size: .95rem; color: var(--text-muted); line-height: 1.7; }
.answer-faq.show-faq { display: block; animation: fade-in .3s; }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

.contact-form-faq { position: relative; }
.contact-form-faq h1 { text-align: center; font-size: clamp(1.2rem, 4.5vw, 1.5rem); margin-bottom: 24px; padding: 0 44px; }
.form-grid-faq { display: grid; grid-template-columns: 1fr; gap: 16px; margin-bottom: 16px; }
.form-column-faq { display: flex; flex-direction: column; gap: 14px; }
#contactForm-faq label { font-size: .85rem; color: var(--text-muted); display: block; margin-bottom: 4px; font-weight: 700; }
#contactForm-faq input,
#contactForm-faq select,
#contactForm-faq textarea {
    width: 100%; padding: 12px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
    font-size: .95rem; font-family: inherit; color: var(--ink); background: var(--bg-elevated);
    transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
#contactForm-faq input::placeholder, #contactForm-faq textarea::placeholder { color: var(--text-muted); }
#contactForm-faq input:focus, #contactForm-faq select:focus, #contactForm-faq textarea:focus {
    outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(76, 140, 43, .25);
}
#contactForm-faq select option { color: #0a2a1a; }
#contactForm-faq textarea { height: 120px; resize: vertical; }
#privacy-faq { width: auto !important; margin-right: 8px; }
#contactForm-faq button {
    background-color: var(--btn-light-bg); color: var(--ink); border: 2px solid var(--btn-light-border); padding: 15px;
    border-radius: var(--radius); font-size: 1rem; font-weight: 700; letter-spacing: .5px;
    cursor: pointer; width: 100%; margin-top: 16px; transition: background var(--t-fast), border-color var(--t-fast), transform var(--t-fast);
}
#contactForm-faq button:hover { background-color: var(--btn-light-bg-hover); border-color: var(--btn-light-border-hover); transform: translateY(-2px); }

/* Form result notice (success / error) */
.form-notice {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 0 0 18px;
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--bg-elevated);
    color: var(--text);
    font-size: .95rem;
    line-height: 1.5;
}
.form-notice[hidden] { display: none !important; }
.form-notice--success {
    background: #e8f6ec;
    border-color: #7dc48b;
    color: #1d6b2f;
}
.form-notice--error {
    background: #fdeeee;
    border-color: #e29a9a;
    color: #8a1f1f;
}
.form-notice__title {
    display: block;
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 2px;
}
.form-notice__text {
    display: block;
}

/* Required / invalid fields — red frame */
#contactForm-faq .field-invalid,
#contactForm-faq input.field-invalid,
#contactForm-faq select.field-invalid,
#contactForm-faq textarea.field-invalid {
    border-color: #d64545 !important;
    box-shadow: 0 0 0 3px rgba(214, 69, 69, 0.18) !important;
    outline: none;
}
#contactForm-faq input.field-invalid:focus,
#contactForm-faq select.field-invalid:focus,
#contactForm-faq textarea.field-invalid:focus {
    border-color: #d64545 !important;
    box-shadow: 0 0 0 3px rgba(214, 69, 69, 0.28) !important;
}
#contactForm-faq .privacy-check.field-invalid {
    color: #d64545;
    font-weight: 700;
}
#contactForm-faq .privacy-check.field-invalid input[type="checkbox"] {
    outline: 2px solid #d64545;
    outline-offset: 2px;
}

/* Anti-spam captcha */
.antispam-hp {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    pointer-events: none !important;
}
.antispam-row { margin: 12px 0 8px; }
.antispam-row > label {
    display: block;
    font-size: .85rem;
    color: var(--text-muted);
    margin-bottom: 6px;
    font-weight: 700;
}
.antispam-challenge {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}
.antispam-question {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 8px 14px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--ink);
    letter-spacing: .5px;
}
.antispam-challenge input {
    width: 110px;
    min-height: 42px;
    text-align: center;
    font-size: 1.05rem;
    font-weight: 700;
}
.chat-icon-faq {
    position: absolute; top: 20px; right: 20px; width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center; font-size: 1.3rem;
    color: #0a2a1a; background: var(--accent); border-radius: 50%; cursor: pointer; box-shadow: var(--shadow-sm);
}

/* =============================================================
   CONTACT PAGE
   ============================================================= */
.contact-image { text-align: center; margin-bottom: 30px; }
.contact-image img { border-radius: var(--radius-card); border: 1px solid var(--border); margin: 0 auto; }
.contact-office { margin: 20px 0; padding: 24px; background-color: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius-card); }
.contact-office h2 { margin-bottom: 14px; font-size: 1.25rem; }
.contact-office p { margin: 8px 0; color: var(--text-muted); }
.contact-region { margin: 20px 0; padding: 8px 0; }
.contact-region-selects { display: flex; gap: 20px; flex-wrap: wrap; justify-content: center; }
.contact-region-selects-colum { flex: 1; min-width: 240px; }
.contact-region-select {
    padding: 12px 36px 12px 12px; margin: 6px 0; width: 100%;
    border: 1px solid var(--border-strong); border-radius: var(--radius-sm); font-size: 1rem; font-family: inherit;
    background-color: var(--bg-elevated); color: var(--ink); appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg fill="%234c8c2b" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>');
    background-repeat: no-repeat; background-position: right 10px center; cursor: pointer;
}
.contact-region-select option { color: #0a2a1a; }
.contact-region-select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(76, 140, 43, .25); }

/* =============================================================
   EVIDENCE
   ============================================================= */
.image-container-evidence, .video-container-evidence {
    display: grid; grid-template-columns: 1fr; gap: 20px; margin-bottom: 40px;
}
.image-item-evidence, .video-item-evidence { position: relative; overflow: hidden; cursor: pointer; border-radius: var(--radius-card); border: 1px solid var(--border); }
.image-item-evidence img, .video-item-evidence img { width: 100%; display: block; transition: transform var(--t), filter var(--t); }
.image-item-evidence:hover img, .video-item-evidence:hover img { transform: scale(1.08); filter: brightness(55%); }
.image-overlay-evidence {
    position: absolute; inset: auto 0 0 0;
    background: linear-gradient(180deg, transparent, rgba(4, 18, 11, .9)); color: #fff; padding: 20px;
    opacity: 0; transform: translateY(100%); transition: opacity var(--t), transform var(--t);
}
.image-item-evidence:hover .image-overlay-evidence { opacity: 1; transform: translateY(0); }
.image-overlay-evidence h3 { color: #fff; margin: 0 0 8px; }
.image-overlay-evidence .btn__text { color: #fff; }
.youtube-icon-evidence {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 68px; height: 68px; display: flex; align-items: center; justify-content: center;
    color: #0a2a1a; background: rgba(76, 140, 43, .95); border-radius: 50%; font-size: 1.6rem;
    padding-left: 4px; pointer-events: none; transition: transform var(--t-fast);
}
.video-item-evidence:hover .youtube-icon-evidence { transform: translate(-50%, -50%) scale(1.1); }
.video-description-evidence {
    position: absolute; left: 0; right: 0; bottom: 0; padding: 14px; color: #fff;
    background: linear-gradient(180deg, transparent, rgba(4, 18, 11, .85)); font-weight: 700;
}
.video-player-evidence { display: none; position: fixed; inset: 0; background: rgba(4, 18, 11, .92); align-items: center; justify-content: center; z-index: 5000; padding: 20px; }
.video-player-evidence iframe { width: min(90%, 960px); aspect-ratio: 16 / 9; height: auto; border: none; border-radius: var(--radius); }
.video-player-evidence .close-btn { position: absolute; top: 20px; right: 24px; color: #fff; font-size: 2rem; cursor: pointer; line-height: 1; }

/* Evidence documents (stories / clinical leaflet) */
.page-intro { max-width: 820px; margin: -20px auto 36px; text-align: center; color: var(--text-muted); line-height: 1.7; }
.stories-grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
.story-card {
    display: flex; flex-direction: column; overflow: hidden;
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-card); box-shadow: var(--shadow-sm);
    transition: transform var(--t-fast), box-shadow var(--t-fast);
}
.story-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.story-card-preview { display: block; background: var(--bg-elevated); border-bottom: 1px solid var(--border); }
.story-card-preview img { width: 100%; height: 320px; object-fit: contain; object-position: top center; padding: 16px; }
.story-card-pdf { height: 200px; display: flex; align-items: center; justify-content: center; }
.story-card-pdf-label { font-weight: 700; font-size: 1.6rem; color: var(--accent); border: 2px solid var(--accent); border-radius: 12px; padding: 10px 18px; }
.story-card-body { display: flex; flex-direction: column; flex: 1; padding: 22px; }
.story-card-meta { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; font-size: .8rem; color: var(--text-muted); margin-bottom: 12px; }
.story-badge { background: var(--bg-elevated); border: 1px solid var(--border); color: var(--accent-light); border-radius: var(--radius-pill); padding: 3px 10px; font-weight: 700; }
.story-card-title { font-size: 1.2rem; margin: 0 0 12px; }
.story-card-author { font-weight: 700; color: var(--ink); margin-bottom: 4px; }
.story-card-org { color: var(--text-muted); font-size: .9rem; }
.story-card-excerpt { color: var(--text); font-size: .95rem; line-height: 1.65; }
.story-card-link { margin-top: auto; align-self: flex-start; }

/* =============================================================
   HEALTHCARE / MHMS
   ============================================================= */
.image-section-healthcare { position: relative; overflow: hidden; margin: 0 auto 32px; border-radius: var(--radius-card); }
.overlay-container-healthcare { position: relative; display: block; border-radius: var(--radius-card); overflow: hidden; border: 1px solid var(--border); }
.overlay-container-healthcare img { width: 100%; height: auto; display: block; }
.overlay-container-healthcare + div { margin-top: 20px; }
.overlay-healthcare { position: absolute; inset: 0; background: rgba(4, 18, 11, .55); opacity: 0; transition: opacity var(--t); display: flex; align-items: flex-end; }
.overlay-container-healthcare:hover .overlay-healthcare { opacity: 1; }
.overlay-text-healthcare { color: #fff; width: 100%; padding: 24px; transform: translateY(20px); transition: transform var(--t); }
.overlay-container-healthcare:hover .overlay-text-healthcare { transform: translateY(0); }
.overlay-text-healthcare p { margin: 0 0 12px; font-size: clamp(1.25rem, 3vw, 2.1rem); font-weight: 700; color: #fff; }
.overlay-text-healthcare a { color: #fff; text-decoration: none; font-weight: 700; }
.overlay-text-healthcare a:hover { color: var(--accent); }
.overlay-text-healthcare .btn__text { color: #fff; }

.bio-tools-mhms { line-height: 1.75; color: var(--text); }
.tool-item-mhms { display: flex; flex-direction: column; align-items: center; gap: 24px; margin-bottom: 44px; }
.tool-content-mhms { flex: 1; }
.tool-content-mhms h2, .tool-content-mhms h3 { color: var(--ink); margin-bottom: 14px; }
.tool-content-mhms h3 { font-size: 1.3rem; }
.tool-image-mhms { width: 100%; max-width: 420px; }
.tool-image-mhms img { width: 100%; border-radius: var(--radius-card); box-shadow: var(--shadow-sm); border: 1px solid var(--border); }

.text-newsr { font-size: 1rem; line-height: 1.85; color: var(--text); }
.text-newsr p { text-align: left; }
.section .container-news { padding: 0; }

/* =============================================================
   PRODUCT TEMPLATE (includes/product-page.php)
   ============================================================= */
.product-page { }
.product-crumbs { max-width: var(--container); margin: 0 auto; padding: 16px clamp(16px,4vw,24px) 0; }
.hero-split.product-hero {
    display: flex; flex-direction: column; gap: 32px; align-items: center;
    max-width: var(--container); margin: 0 auto; padding: clamp(32px,6vw,64px) clamp(16px,4vw,24px);
}
.hero-copy { flex: 1; }
.hero-copy h1 { font-size: clamp(2rem,5vw,3rem); margin-bottom: 16px; background: var(--grad-ink); -webkit-background-clip: text; background-clip: text; color: transparent; }
.product-tagline { font-size: 1.15rem; color: var(--accent-light); font-weight: 700; margin-bottom: 14px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 22px; }
.hero-photo { flex: 1; width: 100%; }
.hero-photo img { border-radius: var(--radius-card); box-shadow: var(--shadow); width: 100%; }
.hero-photo.product-hero-contain img { background: var(--bg-card); object-fit: contain; }
.product-body { }
.product-facts { display: grid; grid-template-columns: 1fr; gap: 18px; margin-bottom: 44px; }
.product-fact { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; text-align: center; }
.product-fact strong { display: block; font-size: clamp(1.35rem, 5vw, 2rem); line-height: 1.2; margin-bottom: 6px; color: var(--accent); overflow-wrap: anywhere; }
.product-fact span { color: var(--text-muted); font-size: .9rem; }
.product-features { margin: 44px 0; }
.product-feature-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
.product-feature { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-card); padding: 24px; }
.product-feature h3 { margin-bottom: 10px; }
.product-how { margin: 44px 0; }
.product-steps { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 20px; }
.product-steps li { display: flex; flex-direction: column; gap: 16px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-card); padding: 22px; }
.product-steps img { border-radius: var(--radius); width: 100%; }
.product-related-grid { margin-top: 24px; }
.product-manual-note { color: var(--text-muted); font-size: .85rem; text-align: center; margin: 32px 0; }
.product-video-frame { border-radius: var(--radius-card); overflow: hidden; border: 1px solid var(--border); }
.product-video-frame iframe { width: 100%; aspect-ratio: 16/9; height: auto; border: none; display: block; }

/* =============================================================
   RESPONSIVE — SMALL / MEDIUM / LARGE / XL
   Primary scale (use these in all project CSS):
     SMALL   phones            ≤599px     max-width: 599px
     MEDIUM  tablets           600–1023   min-width: 600px
     LARGE   laptops/desktops  1024–1439  min-width: 1024px
     XL      wide displays     ≥1440px    min-width: 1440px
   Intermediate layout switches (intentional, not ad-hoc):
     768px  — row layouts (hero/steps/news) need tablet landscape width
     1200px — product cards go side-by-side
     1400px — section dots only when centred layout leaves a real gutter
   Mobile-first: base = SMALL, each min-width step adds columns/size.
   ============================================================= */

/* ---------- SMALL: phones ≤599px (base) ---------- */
@media (max-width: 599px) {
    :root {
        --header-h: 58px;
        --gutter: 14px;
        --radius-card: 20px;
        --radius: 14px;
    }
    body { font-size: 15px; }
    .page-container { padding: 18px 14px 48px; }
    .page-title { font-size: clamp(1.55rem, 6vw, 2rem); margin-bottom: 28px; }

    .contact-content, .services-service, .faq-section-faq, .contact-form-faq {
        padding: 18px 14px;
        border-radius: 20px;
    }
    .contact-content .contact-form-faq, .contact-content .contact-office { padding: 16px 12px; }
    .chat-icon-faq { top: 12px; right: 12px; }

    .product-image { height: 140px; }
    .product-title { font-size: 1.15rem; }

    .product-item-prod { padding: 18px; }
    .product-image-prod { max-width: 120px; height: 100px; }

    .story-card-preview img { height: 220px; }

    .contact-region-selects-colum { min-width: 0; }

    .news-content { padding: 16px; }
    .news-title { font-size: 1.15rem; }

    .product-facts { gap: 12px; }
    .product-steps li { padding: 16px; }

    .hero-split.product-hero { flex-direction: column; }
    .tool-image-mhms { max-width: 100%; }

    .overlay-healthcare { position: static; opacity: 1; background: var(--bg-card); display: block; }
    .overlay-text-healthcare { transform: none; padding: 16px 18px; color: var(--ink); }
    .overlay-text-healthcare p, .overlay-text-healthcare a { color: var(--ink); }
    .overlay-text-healthcare p { font-size: 1.2rem; }
    .overlay-text-healthcare .btn__text { color: var(--accent-light); }
    .overlay-container-healthcare { background: var(--bg-card); }
}

/* ---------- MEDIUM: tablets 600–1023px (2-column grids) ---------- */
@media (min-width: 600px) {
    :root {
        --header-h: 66px;
        --gutter: 20px;
    }
    .products-grid { grid-template-columns: repeat(2, 1fr); }
    .features-service { grid-template-columns: repeat(2, 1fr); }
    .stories-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .products-grid-prod { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .form-grid-faq { grid-template-columns: 1fr 1fr; }
    .product-facts { grid-template-columns: repeat(2, 1fr); }
    .product-feature-grid { grid-template-columns: repeat(2, 1fr); }
    .image-container-evidence, .video-container-evidence { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- INTERMEDIATE 768px: row layouts (not a primary tier) ---------- */
@media (min-width: 768px) {
    :root { --header-h: 70px; }

    .screening-section { flex-direction: row; justify-content: center; gap: 48px; }
    .screening-section .text-content { text-align: left; }

    .container-mobile-health-care { flex-direction: row; gap: 48px; }
    .text-content-mobile-health-care { text-align: left; padding-right: 20px; }
    .title-mobile-health-care { text-align: left; }

    .products-container-about_us { flex-direction: row; }
    .products-container-about_us img { flex: 1; }
    .products-text-about_us { flex: 1.4; padding-left: 8px; }

    .service-support-service, .service-warranties-service, .service-repair-service { flex-direction: row; }
    .service-warranties-service { flex-direction: row-reverse; }
    .service-content-service { flex: 1.3; }
    .service-image-service { flex: 1; }

    .news-content { flex-direction: row; padding: 0; }
    .news-image { align-self: stretch; }
    .news-image-item { height: 100%; border-radius: 0; }
    .news-text { padding: 32px; }

    .tool-item-mhms { flex-direction: row; text-align: left; }
    .tool-item-mhms.reverse-mhms { flex-direction: row-reverse; }
    .tool-image-mhms { flex: 0 0 42%; }

    .hero-split.product-hero { flex-direction: row; }
    .product-steps li { flex-direction: row; align-items: center; }
    .product-steps img { flex: 0 0 40%; width: 40%; max-width: 40%; }
    .product-steps li > div { flex: 1 1 auto; min-width: 0; }
}

/* ---------- LARGE: desktops 1024–1439px (3–4 column grids) ---------- */
@media (min-width: 1024px) {
    :root {
        --container: 1280px;
        --container-wide: 1440px;
    }
    .hero h1 { font-size: clamp(2.6rem, 5vw, 3.4rem); }
    .tool-image-mhms { flex: 0 0 380px; }
    .products-grid { grid-template-columns: repeat(4, 1fr); }
    .features-service { grid-template-columns: repeat(4, 1fr); }
    .stories-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .product-facts { grid-template-columns: repeat(4, 1fr); }
    .product-feature-grid { grid-template-columns: repeat(3, 1fr); }
    .image-container-evidence, .video-container-evidence { grid-template-columns: repeat(3, 1fr); }
    .page-container { padding-left: 0; padding-right: 0; }
}

/* ---------- INTERMEDIATE 1200px: product cards side-by-side ---------- */
@media (min-width: 1200px) {
    .product-item-prod { flex-direction: row; text-align: left; }
    .product-item-prod .product-content-prod { text-align: left; }
}

/* ---------- INTERMEDIATE 1400px: section dots in the gutter ---------- */
@media (min-width: 1400px) {
    .vertical-menu { display: block; }
}

/* ---------- XL: very large displays ≥1440px ---------- */
@media (min-width: 1440px) {
    :root {
        --container: 1360px;
        --container-wide: 1520px;
    }
    body { font-size: 17px; }
    .hero { max-width: 1000px; }
    .page-container { max-width: var(--container-wide); }
    .product-facts { gap: 22px; }
}

/* Touch screens have no hover: keep card captions/overlays visible */
@media (hover: none) {
    .image-overlay-evidence { opacity: 1; transform: none; }
    .image-item-evidence:hover img { transform: none; filter: none; }
}
@media (hover: none) and (min-width: 600px) {
    .overlay-healthcare { opacity: 1; background: linear-gradient(180deg, transparent 35%, rgba(4, 18, 11, .75)); }
    .overlay-text-healthcare { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
    .screening-section { opacity: 1; transform: none; }
}
