/* ===== CSS RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    font-size: 16px;
    color: #333333;
    background-color: #ffffff;
    overflow-x: hidden;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    color: #1a1a1a;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

p {
    line-height: 1.6;
    margin-bottom: 1rem;
    color: #555555;
}

a {
    text-decoration: none;
    color: #003d82;
    transition: color 0.15s ease;
}

a:hover {
    color: #004499;
}

/* ===== LAYOUT UTILITIES ===== */
.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 clamp(1.5rem, 3vw, 4rem);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.section-header h2 {
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.1rem;
    color: #666666;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border: 2px solid transparent;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.15s ease;
    background: none;
    white-space: nowrap;
}

.btn-primary {
    background-color: #003d82;
    color: #ffffff;
    border-color: #003d82;
}

.btn-primary:hover {
    background-color: #004499;
    border-color: #004499;
    color: #ffffff;
}

.btn-outline {
    background-color: transparent;
    color: #003d82;
    border-color: #003d82;
}

.btn-outline:hover {
    background-color: #003d82;
    color: #ffffff;
}

.btn-white {
    background-color: #ffffff;
    color: #003d82;
    border-color: #d8e4f2;
}

.btn-white:hover {
    background-color: #f5f9ff;
    color: #003d82;
    border-color: #003d82;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1rem;
}


/* ===== LOGO ANIMATION ===== */
@keyframes logoEntry {
    from {
        opacity: 0;
        transform: scale(0.88) translateY(-4px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.logo-img {
    animation: logoEntry 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
    display: block;
    height: 55px;
    width: auto;
}


/* ===== HEADER ===== */
.header {
    background-color: #ffffff;
    border-bottom: 1px solid #e5e5e5;
    position: sticky;
    top: 0;
    z-index: 5000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.nav {
    display: flex;
    align-items: center;
    gap: 2rem;
    min-height: 70px;
    position: relative;
}

.nav-brand .logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: #003d82;
}

.nav-brand .logo i {
    margin-right: 0.5rem;
    font-size: 1.8rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 2rem;
}

.mobile-lang-switcher {
    display: none;
    position: relative;
    align-items: center;
    margin-left: auto;
    margin-right: 0.5rem;
}

.mobile-lang-current {
    min-width: 44px;
    height: 34px;
    padding: 0 0.6rem;
    border: 1px solid #c5d8f1;
    border-radius: 6px;
    background: #ffffff;
    color: #003d82;
    font-size: 0.82rem;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(0, 61, 130, 0.12);
}

.mobile-lang-menu {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    display: none;
    list-style: none;
    background: #ffffff;
    border: 1px solid #c5d8f1;
    border-radius: 6px;
    box-shadow: 0 10px 28px rgba(0,0,0,0.16);
    z-index: 5012;
    padding: 0.25rem 0;
}

.mobile-lang-switcher.open .mobile-lang-menu {
    display: block;
}

.mobile-lang-link {
    display: block;
    align-items: center;
    justify-content: center;
    min-width: 56px;
    padding: 0.45rem 0.75rem;
    color: #333333;
    font-size: 0.8rem;
    font-weight: 600;
    text-align: center;
}

.mobile-lang-link.active {
    color: #003d82;
    background: #f5f9ff;
}

.nav-link {
    color: #333333;
    font-weight: 500;
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    position: relative;
}

.nav-link:hover {
    color: #003d82;
}

.nav-link i {
    margin-left: 0.3rem;
    font-size: 0.8rem;
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.15s ease;
    z-index: 100;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    list-style: none;
}

.dropdown-menu a {
    display: block;
    padding: 0.75rem 1rem;
    color: #333333;
    border-bottom: 1px solid #f5f5f5;
}

.dropdown-menu a:hover {
    background-color: #f8f9fa;
    color: #003d82;
}

/* Navigation Actions */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-left: auto;
}

.language-switcher {
    position: relative;
    cursor: pointer;
}

/* Переключатель языка — текстом, без рамки.
   Раньше это был бокс 28 px рядом с кнопками высотой 44 px: ряд выглядел
   лесенкой, а три рамки подряд перегружали шапку. Теперь высота совпадает
   с кнопками за счёт такого же вертикального padding и прозрачной рамки,
   а стрелка рисуется псевдоэлементом — текст кнопки остаётся одним узлом,
   который build-locales.py спокойно заменяет на EN или RU. */
.current-lang {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.75rem 0.25rem;
    border: 2px solid transparent;
    border-radius: 4px;
    background: transparent;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 500;
    /* та же line-height, что у .btn (наследуется от body), иначе кнопка ниже
       соседей на 9 px и ряд снова выглядит лесенкой */
    line-height: 1.6;
    color: #6b7280;
    transition: color 0.15s ease;
}

.current-lang::after {
    content: "";
    width: 8px;
    height: 8px;
    margin-top: -3px;
    border-right: 1.7px solid currentColor;
    border-bottom: 1.7px solid currentColor;
    transform: rotate(45deg);
    opacity: 0.7;
    transition: transform 0.15s ease;
}

.current-lang:hover,
.language-switcher:hover .current-lang {
    color: #003d82;
}

.current-lang:focus-visible {
    outline: 2px solid #003d82;
    outline-offset: 2px;
}

.language-switcher:hover .current-lang::after,
.current-lang:has(+ .lang-menu.open)::after {
    transform: rotate(-135deg);
    margin-top: 3px;
}

.lang-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-5px);
    transition: all 0.15s ease;
    z-index: 100;
}

.language-switcher:hover .lang-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-menu li {
    list-style: none;
}

.lang-menu a {
    display: block;
    padding: 0.5rem 1rem;
    color: #333333;
    white-space: nowrap;
}

.lang-menu a:hover {
    background-color: #f8f9fa;
    color: #003d82;
}
/* JS-controlled dropdown open state */
.lang-menu.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Active/current language in dropdown */
.lang-menu a.lang-active {
    font-weight: 600;
    color: #003d82;
}


/* Mobile Navigation */
.nav-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 5011;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background-color: #333333;
    margin: 2px 0;
    transition: 0.15s;
}

.nav-toggle.active span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

/* ===== HERO SECTION ===== */
.hero {
    background-color: #ffffff;
    padding: 5rem 0;
    border-bottom: 1px solid #e5e5e5;
}

.hero-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-text h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: #1a1a1a;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: #666666;
    margin-bottom: 2rem;
    line-height: 1.5;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.hero-stats {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    background-color: #f8f9fa;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #003d82;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: #666666;
    font-weight: 500;
}

/* ===== SERVICES SECTION ===== */
.services {
    padding: 3.5rem 0 5rem;
    background-color: #ffffff;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(350px, 100%), 1fr));
    gap: 2rem;
}

.service-card {
    background-color: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    position: relative;
    transition: box-shadow 0.15s ease;
}

.service-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.service-card.featured {
    border-color: #003d82;
    box-shadow: 0 4px 12px rgba(0,102,204,0.1);
}

.service-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #003d82;
    color: #ffffff;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.service-icon {
    /* font-size остался от глифа FontAwesome; теперь внутри <img>, и строчная
       высота от 3rem рисовала пустоту над и под знаком — обнуляем. */
    font-size: 0;
    line-height: 0;
    color: #003d82;
    margin-bottom: 1.25rem;
}

/* Own duotone marks replace the FontAwesome glyphs on the three service cards.
   The SVG carries its own two brand tones, so nothing here sets a colour. */
.service-icon img {
    display: block;
    width: 72px;
    height: 72px;
    margin: 0 auto;
}

.service-card h3 {
    margin-bottom: 0.5rem;
}

.service-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #003d82;
    margin-bottom: 1rem;
}

.service-description {
    margin-bottom: 1.5rem;
    color: #666666;
}

.service-features {
    list-style: none;
    margin-bottom: 2rem;
    text-align: left;
}

.service-features li {
    padding: 0.5rem 0;
    position: relative;
    padding-left: 1.5rem;
}

.service-features li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #003d82;
    font-weight: bold;
}

/* ===== HOW IT WORKS SECTION ===== */
.how-it-works {
    padding: 6rem 0;
    background-color: #f8f9fa;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
    gap: 2rem;
}

.step-item {
    text-align: center;
    padding: 2rem;
}

.step-number {
    width: 60px;
    height: 60px;
    background-color: #003d82;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1.5rem auto;
}

.step-content h3 {
    margin-bottom: 1rem;
}

.step-content p {
    color: #666666;
}

/* ===== EVIDENCE SECTION ===== */
.evidence {
    padding: 6rem 0;
    background-color: #ffffff;
}

.evidence-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.evidence-stat {
    text-align: center;
    padding: 2rem;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.evidence-stat .stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: #003d82;
    margin-bottom: 1rem;
}

.stat-description {
    color: #666666;
    font-size: 0.9rem;
}

.certifications {
    text-align: center;
}

.certifications h3 {
    margin-bottom: 2rem;
}

.cert-badges {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.cert-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    background-color: #f8f9fa;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    font-weight: 600;
    color: #333333;
}

.cert-badge i {
    color: #003d82;
    font-size: 1.2rem;
}

/* ===== PARTNERS SECTION ===== */
.partners {
    padding: 6rem 0;
    background-color: #f8f9fa;
}

.partner-types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
    gap: 2rem;
}

.partner-type {
    text-align: center;
    padding: 2rem;
    background-color: #ffffff;
    border-radius: 8px;
    border: 1px solid #e5e5e5;
}

.partner-type h3 {
    color: #003d82;
    margin-bottom: 1rem;
}

/* ===== CTA SECTION ===== */
.cta-section {
    padding: 6rem 0;
    background-color: #003d82;
    color: #ffffff;
    text-align: center;
}

.cta-content h2 {
    color: #ffffff;
    margin-bottom: 1rem;
}

.cta-content p {
    color: #e6f3ff;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.cta-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.cta-section .btn-primary {
    background-color: #ffffff;
    color: #003d82;
    border-color: #ffffff;
}

.cta-section .btn-primary:hover {
    background-color: #f0f0f0;
}

.cta-section .btn-outline {
    color: #ffffff;
    border-color: #ffffff;
}

.cta-section .btn-outline:hover {
    background-color: #ffffff;
    color: #003d82;
}

/* ===== CONTACT FORM SECTION ===== */
.contact-form-section {
    padding: 6rem 0;
    background-color: #ffffff;
}

.form-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-form {
    background-color: #f8f9fa;
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid #e5e5e5;
}

/* ===== ЕДИНЫЙ СТИЛЬ ПОЛЕЙ ДЛЯ ВСЕХ ФОРМ САЙТА =====
   До 16.09.2026 на сайте жили три разных стиля подписи к полю (КАПС 11,5 px
   в контактной форме, обычный 13 px в анкете для компаний, обычный 16 px в
   базовом) и три вида самого поля с тремя оттенками серой рамки. Теперь это
   один набор значений, а частные скины ниже задают только то, что
   действительно своё: ширину карточки, разделители, чипы.
   Вариант «контур»: белое поле, тонкая рамка, радиус 6 px. */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.9rem;
}

.form-group {
    margin-bottom: 0.9rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.3rem;
    font-size: 0.82rem;
    font-weight: 500;
    color: #4b5563;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.6rem 0.7rem;
    border: 1px solid #d7dde7;
    border-radius: 6px;
    background-color: #ffffff;
    /* textarea и select не наследуют шрифт сами: без этой строки placeholder
       в многострочном поле показывался моноширинным */
    font-family: inherit;
    font-size: 0.92rem;
    color: #15181c;
    transition: border-color 0.12s ease, box-shadow 0.12s ease;
}

.form-group textarea {
    min-height: 64px;
    resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #003d82;
    box-shadow: 0 0 0 3px rgba(0, 61, 130, 0.1);
}

/* родная стрелка у select на каждой платформе своя — рисуем одну для всех форм */
.form-group select,
.newsletter-widget select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%235b6672' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    padding-right: 2.1rem;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin-top: 0.2rem;
}

.checkbox-group label {
    margin-bottom: 0;
    font-size: 0.9rem;
}

.contact-info {
    padding: 2rem;
}

.contact-info h3 {
    margin-bottom: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.contact-item i {
    color: #003d82;
    font-size: 1.2rem;
}

/* ===== FOOTER ===== */
.footer {
    background-color: #1a1a1a;
    color: #ffffff;
    padding: 4rem 0 2rem 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: #ffffff;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #cccccc;
    transition: color 0.15s ease;
}

.footer-section a:hover {
    color: #ffffff;
}

.footer-brand .logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: #003d82;
    margin-bottom: 1rem;
}

.footer-brand .logo i {
    margin-right: 0.5rem;
    font-size: 1.8rem;
}

.footer-brand .logo img {
    height: 55px;
    width: auto;
    margin-right: 0.5rem;
}

.footer-brand p {
    color: #cccccc;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid #333333;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-legal p {
    color: #999999;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.legal-page {
    background: linear-gradient(180deg, #f7fafc 0%, #eef6f4 100%);
    min-height: calc(100vh - 120px);
}

.legal-page-section {
    padding: 4rem 0;
}

.legal-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(148, 163, 184, 0.18);
}

.legal-card-header {
    display: flex;
    gap: 2rem;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.legal-eyebrow {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #0f766e;
    margin-bottom: 0.75rem;
}

.legal-summary {
    max-width: 760px;
    color: #475569;
    margin-top: 1rem;
}

.legal-meta-panel {
    min-width: 240px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.25rem;
    background: #f8fafc;
    border-radius: 18px;
    border: 1px solid #e2e8f0;
}

.legal-meta-block {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.legal-meta-label {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #64748b;
}

.legal-meta-value {
    color: #0f172a;
    font-weight: 600;
}

.legal-language-switcher {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.legal-language-switcher .btn {
    min-width: 72px;
    justify-content: center;
}

.legal-language-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.legal-language-card {
    display: flex;
    min-height: 140px;
    flex-direction: column;
    justify-content: space-between;
    padding: 1.25rem;
    border: 1px solid #dbeafe;
    border-radius: 18px;
    background: #f8fafc;
    color: #0f172a;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.legal-language-card:hover {
    transform: translateY(-2px);
    border-color: #0f766e;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
    color: #0f172a;
}

.legal-language-card-label {
    font-size: 1.25rem;
    font-weight: 700;
}

.legal-language-card-action {
    color: #0f766e;
    font-weight: 700;
}

.legal-notice {
    margin-bottom: 1.5rem;
    padding: 1rem 1.25rem;
    border-radius: 16px;
    background: #ecfeff;
    border: 1px solid #99f6e4;
    color: #155e75;
}

.legal-empty-state {
    margin-top: 1.5rem;
    padding: 2rem;
    border-radius: 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #ecfeff 100%);
    border: 1px dashed #67e8f9;
}

.legal-empty-state h2 {
    margin-bottom: 0.75rem;
}

.legal-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1.25rem;
}

.legal-details-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.legal-detail-card {
    padding: 1.25rem;
    border-radius: 18px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.legal-detail-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: #0f766e;
    margin-bottom: 0.5rem;
}

.legal-detail-value {
    color: #0f172a;
    margin: 0;
}

.legal-sections {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.legal-rich-content {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.legal-section-block {
    padding-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
}

.legal-section-block:first-child {
    padding-top: 0;
    border-top: 0;
}

.legal-section-block h2,
.legal-section-block h3,
.legal-section-block p,
.legal-section-block ul,
.legal-section-block .legal-requisites {
    margin-bottom: 0;
}

.legal-section-block > * + * {
    margin-top: 0.9rem;
}

.legal-section-block h2 {
    margin-bottom: 0;
}

.legal-section-block h3 {
    font-size: 1.125rem;
    line-height: 1.45;
    color: #0f172a;
}

.legal-rich-content ul {
    margin: 0 0 0 1.25rem;
    padding-left: 1rem;
    list-style: disc;
    color: #0f172a;
}

.legal-rich-content li + li {
    margin-top: 0.65rem;
}

.legal-warning-card {
    padding: 1.5rem;
    border-radius: 20px;
    background: #fff7ed;
    border: 1px solid #fdba74;
}

.legal-warning-card h2 {
    color: #9a3412;
}

.legal-requisites {
    margin-top: 0;
    padding: 1.5rem;
    border-radius: 20px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.legal-requisites p {
    margin: 0;
}

.legal-requisites p + p {
    margin-top: 1rem;
}

.contacts-secondary-section {
    margin-top: 3rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #333333;
    color: #ffffff;
    border-radius: 50%;
    transition: background-color 0.15s ease;
}

.social-link:hover {
    background-color: #003d82;
    color: #ffffff;
}

/* ===== SERVICE PAGES STYLES ===== */
.service-hero {
    background-color: #f8f9fa;
    padding: 3rem 0;
    border-bottom: 1px solid #e5e5e5;
}

.service-hero-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: center;
}

.breadcrumb {
    font-size: 0.9rem;
    color: #666666;
    margin-bottom: 1rem;
}

.breadcrumb a {
    color: #003d82;
}

.service-badge {
    display: inline-block;
    background-color: #e6f3ff;
    color: #003d82;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.service-intro h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.service-price {
    font-size: 2rem;
    font-weight: 700;
    color: #003d82;
    margin-bottom: 1rem;
}

.service-price span {
    font-size: 1.2rem;
    color: #666666;
    font-weight: 400;
}

.service-subtitle {
    font-size: 1.1rem;
    color: #666666;
    margin-bottom: 2rem;
    line-height: 1.5;
}

.service-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.service-highlights {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background-color: #ffffff;
    border-radius: 8px;
    border: 1px solid #e5e5e5;
}

.highlight-item i {
    color: #003d82;
    font-size: 1.2rem;
    width: 20px;
    text-align: center;
}

.highlight-item span {
    font-weight: 500;
    color: #333333;
}

.whats-included {
    padding: 4rem 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(350px, 100%), 1fr));
    gap: 2rem;
}

.feature-item {
    background-color: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 2rem;
}

.feature-icon {
    width: 60px;
    height: 60px;
    background-color: #e6f3ff;
    color: #003d82;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.feature-item h3 {
    margin-bottom: 1rem;
    color: #1a1a1a;
}

.feature-item p {
    margin-bottom: 1.5rem;
    color: #666666;
}

.feature-item ul {
    list-style: none;
    padding: 0;
}

.feature-item li {
    padding: 0.5rem 0;
    position: relative;
    padding-left: 1.5rem;
    color: #555555;
}

.feature-item li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: #003d82;
    font-weight: bold;
}

.target-audience {
    padding: 4rem 0;
    background-color: #f8f9fa;
}

.audience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
    gap: 2rem;
}

.audience-item {
    background-color: #ffffff;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #e5e5e5;
}

.audience-icon {
    width: 80px;
    height: 80px;
    background-color: #e6f3ff;
    color: #003d82;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1.5rem auto;
}

.audience-item h3 {
    margin-bottom: 1rem;
}

.audience-item p {
    color: #666666;
}

.how-it-works-service {
    padding: 4rem 0;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
    gap: 2rem;
}

.process-steps .step-item {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 2rem;
    border: 1px solid #e5e5e5;
}

.step-duration {
    background-color: #e6f3ff;
    color: #003d82;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
    margin-top: 1rem;
}

.faq-section {
    padding: 4rem 0;
    background-color: #f8f9fa;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background-color: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.faq-question:hover {
    background-color: #f8f9fa;
}

.faq-question h3 {
    margin: 0;
    font-size: 1.1rem;
    color: #333333;
}

.faq-question i {
    color: #003d82;
    transition: transform 0.3s ease;
}

.faq-answer {
    padding: 0 2rem;
    background-color: #f8f9fa;
}

.faq-answer p {
    padding: 1rem 0 1.5rem 0;
    margin: 0;
    color: #666666;
}

.service-cta {
    padding: 4rem 0;
    background-color: #003d82;
    color: #ffffff;
    text-align: center;
}

.service-cta .cta-content h2 {
    color: #ffffff;
    margin-bottom: 1rem;
}

.service-cta .cta-content p {
    color: #e6f3ff;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.cta-features {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.cta-feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #ffffff;
}

.cta-feature i {
    color: #ffffff;
}

.included-banner {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 3rem;
}

.banner-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.banner-content i {
    color: #155724;
    font-size: 2rem;
}

.banner-content h3 {
    color: #155724;
    margin-bottom: 0.5rem;
}

.banner-content p {
    color: #155724;
    margin: 0;
}

.featured-item {
    border-color: #003d82;
    background: linear-gradient(135deg, #ffffff 0%, #f8fcff 100%);
}

.success-stories {
    padding: 4rem 0;
}

.stories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
    gap: 2rem;
}

.story-item {
    background-color: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
}

.story-stats {
    margin-bottom: 1.5rem;
}

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

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #003d82;
}

.stat-label {
    font-size: 0.9rem;
    color: #666666;
    font-weight: 500;
}

.story-item h3 {
    color: #333333;
    margin-bottom: 1rem;
}

.story-item p {
    color: #666666;
}

.checkup-process {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.process-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e5e5e5;
}

.process-number {
    width: 60px;
    height: 60px;
    background-color: #003d82;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.process-content h3 {
    margin-bottom: 1rem;
}

.process-content p {
    color: #666666;
    margin-bottom: 1rem;
}

.sample-report {
    padding: 4rem 0;
    background-color: #f8f9fa;
}

.report-preview {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.report-sections {
    display: grid;
    gap: 2rem;
}

.report-section {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1.5rem;
    background-color: #ffffff;
    border-radius: 8px;
    border: 1px solid #e5e5e5;
}

.section-icon {
    width: 50px;
    height: 50px;
    background-color: #e6f3ff;
    color: #003d82;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.report-section h3 {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.report-section p {
    color: #666666;
    font-size: 0.9rem;
    margin: 0;
}

.report-sample {
    background-color: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    overflow: hidden;
}

.report-header {
    background-color: #003d82;
    color: #ffffff;
    padding: 1.5rem;
    text-align: center;
}

.report-header h4 {
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.report-header p {
    color: #e6f3ff;
    margin: 0;
    font-size: 0.9rem;
}

.report-content {
    padding: 2rem;
}

.health-score {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e5e5e5;
}

.score-circle {
    width: 100px;
    height: 100px;
    border: 4px solid #003d82;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.score {
    font-size: 1.8rem;
    font-weight: 700;
    color: #003d82;
}

.score-label {
    font-size: 0.7rem;
    color: #666666;
}

.score-description h5 {
    color: #333333;
    margin-bottom: 0.5rem;
}

.score-description p {
    color: #666666;
    margin: 0;
    font-size: 0.9rem;
}

.key-findings, .next-steps {
    margin-bottom: 2rem;
}

.key-findings h5, .next-steps h5 {
    margin-bottom: 1rem;
    color: #333333;
}

.key-findings ul {
    list-style: none;
    padding: 0;
}

.key-findings li {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.5rem 0;
}

.priority {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
}

.priority.high {
    background-color: #f8d7da;
    color: #721c24;
}

.priority.medium {
    background-color: #fff3cd;
    color: #856404;
}

.priority.low {
    background-color: #d1ecf1;
    color: #0c5460;
}

.next-steps ol {
    padding-left: 1rem;
}

.next-steps li {
    padding: 0.25rem 0;
    color: #333333;
}

/* ===== B2B PAGES STYLES ===== */
.nav-link.active {
    color: #003d82;
    font-weight: 600;
}

.b2b-hero {
    background: linear-gradient(135deg, #003d82 0%, #002a5c 100%);
    color: #ffffff;
    padding: 5rem 0;
}

.b2b-hero-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.b2b-hero .hero-text h1 {
    font-size: 3rem;
    color: #ffffff;
    margin-bottom: 1.5rem;
}

.b2b-hero .hero-subtitle {
    font-size: 1.2rem;
    color: #e6f3ff;
    margin-bottom: 2rem;
    line-height: 1.5;
}

.hero-benefits {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #ffffff;
}

.benefit-item i {
    color: #ffffff;
    width: 20px;
    text-align: center;
}

.hero-stats {
    display: grid;
    gap: 2rem;
}

.stat-card {
    background-color: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.2);
}

.stat-card .stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.stat-card .stat-label {
    color: #e6f3ff;
    font-size: 0.9rem;
}

.problem-solution {
    padding: 6rem 0;
    background-color: #f8f9fa;
}

.content-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.problem-section h2 {
    color: #d32f2f;
    margin-bottom: 2rem;
}

.solution-section h2 {
    color: #003d82;
    margin-bottom: 2rem;
}

.problem-list, .solution-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.problem-item, .solution-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.problem-item i {
    color: #d32f2f;
    font-size: 1.5rem;
    margin-top: 0.5rem;
}

.solution-item i {
    color: #003d82;
    font-size: 1.5rem;
    margin-top: 0.5rem;
}

.problem-item h3, .solution-item h3 {
    margin-bottom: 0.5rem;
}

.corporate-programs {
    padding: 6rem 0;
}

.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(350px, 100%), 1fr));
    gap: 2rem;
}

.program-card {
    background-color: #ffffff;
    border: 2px solid #e5e5e5;
    border-radius: 12px;
    padding: 2rem;
    position: relative;
    transition: all 0.3s ease;
}

.program-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.program-card.featured {
    border-color: #003d82;
    transform: scale(1.05);
}

.program-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #003d82;
    color: #ffffff;
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.program-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e5e5e5;
}

.program-header h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

/* Сумма и единица стоят разными строками: в гривне число длиннее, и в одну
   строку «від 11 250 ₴ /співробітник/міс» переносилось уже при ширине окна
   1160 px — карточка Pro становилась выше соседних и ряд переставал быть
   ровным. Так высота блока цены одинакова при любом числе знаков. */
.program-price {
    font-size: 1.9rem;
    font-weight: 700;
    color: #003d82;
    line-height: 1.15;
    margin-bottom: 0.6rem;
}

.program-price-unit {
    display: block;
    margin-top: 0.2rem;
    font-size: 0.85rem;
    font-weight: 400;
    color: #666666;
    line-height: 1.4;
}

.program-subtitle {
    color: #666666;
}

.program-features {
    margin-bottom: 2rem;
}

.feature-category h4 {
    margin-bottom: 1rem;
    color: #333333;
}

.feature-category ul {
    list-style: none;
    padding: 0;
}

.feature-category li {
    padding: 0.5rem 0;
    position: relative;
    padding-left: 1.5rem;
    color: #555555;
}

.feature-category li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #003d82;
    font-weight: bold;
}

.program-footer {
    text-align: center;
    border-top: 1px solid #e5e5e5;
    padding-top: 2rem;
}

.min-users {
    font-size: 0.9rem;
    color: #666666;
    margin-bottom: 1rem;
}

.roi-benefits {
    padding: 6rem 0;
    background-color: #f8f9fa;
}

.roi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
    gap: 2rem;
}

.roi-item {
    background-color: #ffffff;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #e5e5e5;
}

.roi-icon {
    width: 80px;
    height: 80px;
    background-color: #e6f3ff;
    color: #003d82;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1.5rem auto;
}

.roi-stat {
    font-size: 3rem;
    font-weight: 700;
    color: #003d82;
    margin: 1rem 0;
}

.integration {
    padding: 6rem 0;
}

.integration-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.integration-features {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
}

.integration-feature {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.integration-feature i {
    color: #003d82;
    font-size: 1.5rem;
    margin-top: 0.25rem;
}

.integration-feature h4 {
    margin-bottom: 0.5rem;
}

.integration-logos h3 {
    text-align: center;
    margin-bottom: 2rem;
}

.logos-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.logo-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    text-align: center;
}

.logo-item i {
    font-size: 1.5rem;
    color: #003d82;
}

.logo-item span {
    font-size: 0.8rem;
    color: #666666;
}

.case-studies {
    padding: 6rem 0;
    background-color: #f8f9fa;
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(350px, 100%), 1fr));
    gap: 2rem;
}

.case-item {
    background-color: #ffffff;
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid #e5e5e5;
}

.case-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.case-company {
    font-weight: 600;
    color: #333333;
}

.case-industry {
    font-size: 0.8rem;
    color: #666666;
    background-color: #e5e5e5;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
}

.case-results {
    display: flex;
    gap: 2rem;
    margin: 1.5rem 0;
}

.case-stat {
    text-align: center;
}

.case-stat .stat-number {
    font-size: 1.8rem;
    font-weight: 700;
    color: #003d82;
}

.case-stat .stat-label {
    font-size: 0.8rem;
    color: #666666;
}

.implementation {
    padding: 6rem 0;
}

.implementation-timeline {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.timeline-item {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.timeline-step {
    width: 60px;
    height: 60px;
    background-color: #003d82;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    flex-shrink: 0;
}

.timeline-content {
    flex: 1;
    background-color: #f8f9fa;
    padding: 2rem;
    border-radius: 8px;
}

.timeline-duration {
    background-color: #e6f3ff;
    color: #003d82;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
    margin-top: 1rem;
}

.b2b-form-section {
    padding: 6rem 0;
    background-color: #f8f9fa;
}

.form-wrapper {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    align-items: start;
}

.form-info h2 {
    margin-bottom: 1.5rem;
}

.form-benefits {
    margin-top: 2rem;
}

.form-benefit {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-benefit i {
    color: #003d82;
}

.b2b-form {
    background-color: #ffffff;
    padding: 3rem;
    border-radius: 12px;
    border: 1px solid #e5e5e5;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.goals-checkboxes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
    gap: 1rem;
    margin-top: 0.5rem;
}

.goals-checkboxes label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    cursor: pointer;
}

.goals-checkboxes input[type="checkbox"] {
    width: auto;
}

.for-companies-page .b2b-quote-btn {
    white-space: normal;
    text-align: center;
    line-height: 1.35;
}

/* ===== BLOG STYLES ===== */
.blog-hero {
    background-color: #f8f9fa;
    padding: 4rem 0;
    border-bottom: 1px solid #e5e5e5;
}

.blog-hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.blog-hero h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.blog-subtitle {
    font-size: 1.2rem;
    color: #666666;
    margin-bottom: 3rem;
    line-height: 1.5;
}

.blog-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.blog-stat {
    text-align: center;
}

.blog-stat .stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #003d82;
    display: block;
    margin-bottom: 0.5rem;
}

.blog-stat .stat-label {
    color: #666666;
    font-size: 0.9rem;
}

.blog-filters {
    padding: 2rem 0;
    background-color: #ffffff;
    border-bottom: 1px solid #e5e5e5;
    position: sticky;
    top: 70px;
    z-index: 100;
}

.filter-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.filter-group h3 {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.filter-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.5rem 1rem;
    border: 2px solid #e5e5e5;
    background-color: #ffffff;
    color: #666666;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.15s ease;
    font-size: 0.9rem;
}

.filter-btn:hover {
    border-color: #003d82;
    color: #003d82;
}

.filter-btn.active {
    border-color: #003d82;
    background-color: #003d82;
    color: #ffffff;
}

.search-group {
    flex-shrink: 0;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.search-box i {
    position: absolute;
    left: 1rem;
    color: #666666;
}

.search-box input {
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    border: 2px solid #e5e5e5;
    border-radius: 25px;
    width: 300px;
    font-size: 0.9rem;
    transition: border-color 0.15s ease;
}

.search-box input:focus {
    outline: none;
    border-color: #003d82;
}

.featured-article {
    padding: 4rem 0;
    background-color: #ffffff;
}

.featured-post {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: center;
    background-color: #f8f9fa;
    padding: 3rem;
    border-radius: 12px;
    border: 1px solid #e5e5e5;
}

.featured-content h2 {
    margin-bottom: 1rem;
}

.featured-content h2 a {
    color: #333333;
    text-decoration: none;
}

.featured-content h2 a:hover {
    color: #003d82;
}

.post-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

.post-category {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.post-category.cardiology {
    background-color: #ffebee;
    color: #c62828;
}

.post-category.prevention {
    background-color: #e8f5e8;
    color: #2e7d32;
}

.post-category.nutrition {
    background-color: #fff3e0;
    color: #ef6c00;
}

.post-category.mental-health {
    background-color: #f3e5f5;
    color: #7b1fa2;
}

.post-category.neurology {
    background-color: #e3f2fd;
    color: #1565c0;
}

.post-category.endocrinology {
    background-color: #fce4ec;
    color: #ad1457;
}

.post-category.lifestyle {
    background-color: #f1f8e9;
    color: #558b2f;
}

.post-date {
    color: #666666;
    font-size: 0.9rem;
}

.post-read-time {
    color: #666666;
    font-size: 0.9rem;
}

.post-excerpt {
    color: #666666;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.post-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.author-info .author-name {
    font-weight: 600;
    color: #333333;
    margin-bottom: 0.25rem;
}

.author-info .author-title {
    font-size: 0.9rem;
    color: #666666;
}

.featured-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-placeholder {
    width: 100%;
    height: 250px;
    background-color: #f0f0f0;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #999999;
}

.image-placeholder i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.blog-posts {
    padding: 4rem 0;
    background-color: #ffffff;
}

.blog-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(350px, 100%), 1fr));
    gap: 2rem;
}

.post-card {
    background-color: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.post-image {
    position: relative;
    height: 200px;
}

.post-image .image-placeholder {
    height: 100%;
    background-color: #f8f9fa;
    margin: 0;
}

.post-image .image-placeholder i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.post-category-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.post-content {
    padding: 2rem;
}

.post-content h3 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.post-content h3 a {
    color: #333333;
    text-decoration: none;
}

.post-content h3 a:hover {
    color: #003d82;
}

.post-content .post-meta {
    margin-bottom: 1rem;
}

.post-content .post-excerpt {
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    line-height: 1.5;
}

.post-content .post-author {
    margin-bottom: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
}

.post-content .author-name {
    font-size: 0.9rem;
    font-weight: 600;
}

.author-specialty {
    font-size: 0.8rem;
    color: #666666;
}

.blog-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.sidebar-widget {
    background-color: #f8f9fa;
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid #e5e5e5;
}

.sidebar-widget h3 {
    margin-bottom: 1.5rem;
    color: #333333;
}

.topics-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.topic-tag {
    padding: 0.5rem 1rem;
    background-color: #e5e5e5;
    color: #666666;
    border-radius: 15px;
    text-decoration: none;
    font-size: 0.8rem;
    transition: all 0.15s ease;
}

.topic-tag:hover {
    background-color: #003d82;
    color: #ffffff;
}

.authors-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.author-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 50px;
    height: 50px;
    background-color: #e5e5e5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666666;
}

.author-item .author-info .author-name {
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.author-item .author-specialty {
    font-size: 0.8rem;
    color: #666666;
}

.cta-widget {
    background: linear-gradient(135deg, #003d82 0%, #002a5c 100%);
    color: #ffffff;
}

.cta-widget h3 {
    color: #ffffff;
}

.cta-widget p {
    color: #e6f3ff;
    margin-bottom: 1.5rem;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.newsletter-widget form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* поле подписки живёт вне .form-group, поэтому токены повторены здесь */
.newsletter-widget input {
    padding: 0.6rem 0.7rem;
    border: 1px solid #d7dde7;
    border-radius: 6px;
    background-color: #ffffff;
    font-family: inherit;
    font-size: 0.92rem;
    color: #15181c;
    transition: border-color 0.12s ease, box-shadow 0.12s ease;
}

.newsletter-widget input:focus {
    outline: none;
    border-color: #003d82;
    box-shadow: 0 0 0 3px rgba(0, 61, 130, 0.1);
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid #e5e5e5;
}

.pagination-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: 1px solid #e5e5e5;
    background-color: #ffffff;
    color: #333333;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.pagination-btn:hover:not(:disabled) {
    border-color: #003d82;
    color: #003d82;
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-numbers {
    display: flex;
    gap: 0.5rem;
}

.pagination-number {
    width: 40px;
    height: 40px;
    border: 1px solid #e5e5e5;
    background-color: #ffffff;
    color: #333333;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
}

.pagination-number:hover {
    border-color: #003d82;
    color: #003d82;
}

.pagination-number.active {
    background-color: #003d82;
    border-color: #003d82;
    color: #ffffff;
}

.pagination-dots {
    display: flex;
    align-items: center;
    padding: 0 0.5rem;
    color: #666666;
}

.blog-cta {
    padding: 4rem 0;
    background-color: #f8f9fa;
    text-align: center;
}

.blog-cta .cta-content h2 {
    margin-bottom: 1rem;
}

.blog-cta .cta-content p {
    color: #666666;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.blog-cta .cta-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ===== ARTICLE PAGE STYLES ===== */
.article-header {
    background-color: #f8f9fa;
    padding: 3rem 0;
    border-bottom: 1px solid #e5e5e5;
}

.article-header-content {
    max-width: 800px;
    margin: 0 auto;
}

.article-header h1 {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.article-excerpt {
    font-size: 1.1rem;
    color: #666666;
    line-height: 1.6;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background-color: #ffffff;
    border-radius: 8px;
    border-left: 4px solid #003d82;
}

.article-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background-color: #ffffff;
    border-radius: 8px;
    border: 1px solid #e5e5e5;
}

.author-avatar {
    width: 60px;
    height: 60px;
    background-color: #e5e5e5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #003d82;
    font-size: 1.5rem;
}

.author-credentials {
    color: #666666;
    font-size: 0.9rem;
    line-height: 1.4;
}

.article-content {
    padding: 4rem 0;
}

.article-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: start;
}

.article-body {
    max-width: none;
}

.article-body h2 {
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e5e5e5;
}

.article-body h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #003d82;
}

.article-body h4 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.article-body p {
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.article-body ul, .article-body ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.article-body li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.key-points {
    background-color: #e6f3ff;
    border: 1px solid #b3d9ff;
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 3rem;
}

.key-points h3 {
    color: #003d82;
    margin-bottom: 1rem;
    margin-top: 0;
}

.key-points i {
    margin-right: 0.5rem;
}

.info-box, .warning-box, .success-box, .quote-box, .tips-box {
    margin: 2rem 0;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid;
}

.info-box {
    background-color: #f0f9ff;
    border-color: #003d82;
}

.warning-box {
    background-color: #fef3cd;
    border-color: #f59e0b;
}

.success-box {
    background-color: #f0fdf4;
    border-color: #10b981;
}

.quote-box {
    background-color: #f8f9fa;
    border-color: #6b7280;
    font-style: italic;
}

.tips-box {
    background-color: #f3e8ff;
    border-color: #8b5cf6;
}

.info-box h4, .warning-box h4, .success-box h4, .tips-box h4 {
    margin-bottom: 1rem;
    margin-top: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pressure-table table {
    width: 100%;
    margin-top: 1rem;
    border-collapse: collapse;
}

.pressure-table th, .pressure-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #e5e5e5;
}

.pressure-table th {
    background-color: #f8f9fa;
    font-weight: 600;
}

.pressure-table .highlight {
    background-color: #fff5f5;
}

.quote-box blockquote {
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.6;
}

.quote-box cite {
    display: block;
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #666666;
    font-style: normal;
}

.lifestyle-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.lifestyle-item {
    background-color: #f8f9fa;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #e5e5e5;
}

.lifestyle-icon {
    width: 60px;
    height: 60px;
    background-color: #e6f3ff;
    color: #003d82;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 1rem auto;
}

.lifestyle-item h4 {
    margin-bottom: 1rem;
    color: #333333;
}

.lifestyle-item p {
    font-size: 0.9rem;
    color: #666666;
    margin: 0;
}

.article-footer {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 2px solid #e5e5e5;
}

.medical-disclaimer {
    background-color: #fef3cd;
    border: 1px solid #f59e0b;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.medical-disclaimer h4 {
    color: #92400e;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.medical-disclaimer p {
    color: #92400e;
    margin: 0;
}

.article-tags {
    margin-bottom: 2rem;
}

.article-tags h4 {
    margin-bottom: 1rem;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    background-color: #e5e5e5;
    color: #666666;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
}

.share-buttons h4 {
    margin-bottom: 1rem;
}

.share-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.share-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border: 1px solid #e5e5e5;
    border-radius: 20px;
    text-decoration: none;
    color: #666666;
    transition: all 0.15s ease;
    font-size: 0.9rem;
}

.share-btn:hover {
    background-color: #f8f9fa;
    border-color: #003d82;
    color: #003d82;
}

.article-sidebar {
    position: sticky;
    top: 100px;
}

.author-card {
    background-color: #f8f9fa;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    margin-bottom: 2rem;
    border: 1px solid #e5e5e5;
}

.author-avatar-large {
    width: 80px;
    height: 80px;
    background-color: #e5e5e5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #003d82;
    font-size: 2rem;
    margin: 0 auto 1rem auto;
}

.author-card h3 {
    margin-bottom: 0.5rem;
}

.author-card .author-title {
    color: #003d82;
    font-weight: 600;
    margin-bottom: 1rem;
}

.author-bio {
    font-size: 0.9rem;
    color: #666666;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.author-credentials {
    text-align: left;
    margin-bottom: 1.5rem;
}

.credential {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: #666666;
}

.credential i {
    color: #003d82;
    width: 16px;
}

.table-of-contents {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
}

.table-of-contents ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.table-of-contents li {
    margin-bottom: 0.5rem;
}

.table-of-contents a {
    color: #666666;
    text-decoration: none;
    font-size: 0.9rem;
    display: block;
    padding: 0.25rem 0;
    transition: color 0.15s ease;
}

.table-of-contents a:hover {
    color: #003d82;
}

.related-articles {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
}

.related-posts {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.related-post {
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e5e5;
}

.related-post:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.related-post h4 {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.related-post h4 a {
    color: #333333;
    text-decoration: none;
}

.related-post h4 a:hover {
    color: #003d82;
}

.related-date {
    font-size: 0.8rem;
    color: #666666;
}

.related-articles-section {
    padding: 4rem 0;
    background-color: #f8f9fa;
}

.related-articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.more-articles {
    text-align: center;
}

.newsletter-cta {
    padding: 4rem 0;
    background: linear-gradient(135deg, #003d82 0%, #002a5c 100%);
    color: #ffffff;
    text-align: center;
}

.newsletter-content h2 {
    color: #ffffff;
    margin-bottom: 1rem;
}

.newsletter-content p {
    color: #e6f3ff;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.newsletter-form-large {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* форма под статьёй стоит на синем фоне: рамки не видно, но радиус и размер
   текста те же, что и у остальных полей сайта */
.newsletter-form-large input {
    flex: 1;
    padding: 0.75rem 0.85rem;
    border: 1px solid transparent;
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.95rem;
    color: #15181c;
}

.newsletter-form-large input:focus {
    outline: none;
    border-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.35);
}

/* высота кнопки совпадает с полем рядом */
.newsletter-form-large button {
    padding: 0.75rem 1.75rem;
    white-space: nowrap;
}

.newsletter-privacy {
    color: #e6f3ff;
    font-size: 0.9rem;
    margin: 0;
}

/* ===== BLOG PREVIEW ON HOMEPAGE ===== */
.blog-preview {
    padding: 6rem 0;
    background-color: #ffffff;
}

.blog-posts-preview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.blog-preview-card {
    background-color: #f8f9fa;
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid #e5e5e5;
    transition: all 0.3s ease;
}

.blog-preview-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.blog-preview-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.blog-preview-card h3 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.blog-preview-card h3 a {
    color: #333333;
    text-decoration: none;
}

.blog-preview-card h3 a:hover {
    color: #003d82;
}

.blog-preview-card p {
    color: #666666;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.blog-preview-author {
    font-size: 0.9rem;
    color: #003d82;
    font-weight: 500;
}

.blog-preview-actions {
    text-align: center;
}

/* ===== HEALTH MONITORING STYLES ===== */
.health-monitoring {
    padding: 6rem 0;
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 50%, #16213e 100%);
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

.health-monitoring::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 20%, rgba(255,255,255,0.05) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(102,255,204,0.1) 0%, transparent 50%);
    pointer-events: none;
}

.health-monitoring .section-header {
    position: relative;
    z-index: 1;
    margin-bottom: 4rem;
}

.health-monitoring .section-header h2 {
    color: #ffffff;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.health-monitoring .section-header p {
    color: #a0a0a0;
    font-size: 1.1rem;
}

/* Раніше секція мала два заголовки підряд — по центру і одразу під ним зліва, —
   а вузька ліва колонка закінчувалася на пів-екрана раніше за панель справа,
   і збоку лишалася порожня шахта. Тепер заголовок один, переваги стоять рядком
   під ним, а панель звіту займає всю ширину. */
.monitoring-dashboard {
    display: block;
    margin-bottom: 4rem;
    position: relative;
    z-index: 1;
}

.monitoring-points {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.9rem;
    margin-bottom: 1.75rem;
}

.point-card {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.8rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 0.04);
    color: #ffffff;
    font-size: 0.92rem;
}

.point-card i {
    color: #66ffcc;
    font-size: 1rem;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

.monitoring-intro h3 {
    color: #ffffff;
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.monitoring-intro p {
    color: #a0a0a0;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.monitoring-benefits {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.benefit-point {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #ffffff;
}

.benefit-point i {
    color: #66ffcc;
    font-size: 1.2rem;
    width: 20px;
}

.health-metrics-demo {
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.1);
    padding: 2rem;
}

.metrics-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.metrics-header h4 {
    color: #ffffff;
    margin: 0;
    font-size: 1.2rem;
}

.live-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #66ffcc;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: #66ffcc;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
    100% { opacity: 1; transform: scale(1); }
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.metric-card {
    background: rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.3s ease;
}

.metric-card:hover {
    background: rgba(255,255,255,0.12);
    transform: translateY(-2px);
}

.metric-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.metric-label {
    color: #a0a0a0;
    font-size: 0.9rem;
    font-weight: 500;
}

.metric-status {
    font-size: 0.8rem;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.metric-status.optimal { background: rgba(16,185,129,0.2); color: #10b981; }
.metric-status.good { background: rgba(59,130,246,0.2); color: #3b82f6; }
.metric-status.excellent { background: rgba(147,51,234,0.2); color: #9333ea; }
.metric-status.normal { background: rgba(102,255,204,0.2); color: #66ffcc; }

.metric-visual {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}

.circular-progress {
    position: relative;
    width: 80px;
    height: 80px;
}

.metric-value {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #ffffff;
    font-weight: 700;
    font-size: 1.2rem;
}

.recovery-bar {
    width: 100%;
    height: 8px;
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

.recovery-fill {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #10b981);
    border-radius: 4px;
    transition: width 2s ease;
}

.recovery-percentage {
    position: absolute;
    top: -25px;
    right: 0;
    color: #ffffff;
    font-weight: 700;
    font-size: 1.1rem;
}

.sleep-chart {
    width: 100%;
    height: 60px;
    position: relative;
}

.sleep-stages {
    display: flex;
    align-items: end;
    height: 50px;
    gap: 2px;
}

.stage {
    border-radius: 2px 2px 0 0;
    transition: all 0.3s ease;
}

.stage.deep { background: #1e40af; }
.stage.light { background: #3b82f6; }
.stage.rem { background: #9333ea; }
.stage.awake { background: #ef4444; }

.sleep-duration {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    color: #ffffff;
    font-weight: 700;
    font-size: 1.1rem;
}

.hrv-trend {
    position: relative;
    width: 120px;
    height: 60px;
}

.hrv-value {
    position: absolute;
    bottom: -20px;
    right: 0;
    color: #ffffff;
    font-weight: 700;
    font-size: 1.1rem;
}

.metric-insights {
    text-align: center;
}

.metric-insights p {
    color: #a0a0a0;
    font-size: 0.8rem;
    margin: 0;
    line-height: 1.4;
}

/* Блок спостережень вашого спеціаліста. Раніше тут були «рекомендації ШІ»: медичну
   пораду від імені алгоритму довелося прибрати — і через юридичний ризик, і
   тому що машина на місці лікаря підриває довіру саме там, де ми продаємо
   живу команду. Кольорових смуг зліва немає: статус несе крапка. */
.curator-notes {
    margin-top: 1.5rem;
    padding: 1.4rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    background-color: rgba(255, 255, 255, 0.04);
}

.curator-header {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin-bottom: 1rem;
}

.curator-header i {
    color: #66ffcc;
    font-size: 1.1rem;
}

.curator-header h4 {
    margin: 0;
    color: #ffffff;
    font-size: 1rem;
}

.curator-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.curator-note {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.035);
    color: #c9cdd6;
    font-size: 0.89rem;
    line-height: 1.55;
}

.note-dot {
    flex-shrink: 0;
    width: 8px;
    height: 8px;
    margin-top: 0.45rem;
    border-radius: 50%;
}

.note-alert .note-dot { background-color: #ef4444; }
.note-watch .note-dot { background-color: #f59e0b; }
.note-good  .note-dot { background-color: #10b981; }

.curator-foot {
    margin: 0.85rem 0 0;
    color: #98a0ad;
    font-size: 0.8rem;
    line-height: 1.5;
}

.monitoring-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
    position: relative;
    z-index: 1;
}

.monitoring-features .feature-item {
    text-align: center;
    padding: 2rem;
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
}

.monitoring-features .feature-icon {
    width: 80px;
    height: 80px;
    background: rgba(102,255,204,0.1);
    color: #66ffcc;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1.5rem auto;
}

.monitoring-features h4 {
    color: #ffffff;
    margin-bottom: 1rem;
}

.monitoring-features p {
    color: #a0a0a0;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

.monitoring-cta {
    text-align: center;
    padding: 3rem;
    background: rgba(255,255,255,0.05);
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(20px);
    position: relative;
    z-index: 1;
}

.monitoring-cta h3 {
    color: #ffffff;
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.monitoring-cta p {
    color: #a0a0a0;
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.monitoring-cta .btn {
    background: linear-gradient(135deg, #66ffcc, #10b981);
    color: #0f0f23;
    border: none;
    font-weight: 700;
}

.monitoring-cta .btn:hover {
    background: linear-gradient(135deg, #52d9b3, #059669);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102,255,204,0.3);
}

/* ===== PERSONAL DASHBOARD STYLES ===== */
.personal-dashboard {
    padding: 4rem 0;
    background-color: #f8f9fa;
}

.dashboard-preview {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
    overflow: hidden;
    margin-bottom: 3rem;
}

.dashboard-header {
    background: linear-gradient(135deg, #003d82, #002a5c);
    color: #ffffff;
    padding: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.avatar {
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
}

.user-details h3 {
    color: #ffffff;
    margin-bottom: 0.25rem;
}

.user-details span {
    color: rgba(255,255,255,0.8);
    font-size: 0.9rem;
}

.health-score {
    text-align: center;
}

.score-circle {
    width: 80px;
    height: 80px;
    border: 4px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-bottom: 0.5rem;
}

.score {
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
}

.score-max {
    font-size: 1rem;
    color: rgba(255,255,255,0.7);
}

.score-label {
    color: rgba(255,255,255,0.9);
    font-size: 0.9rem;
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 2rem;
    border-bottom: 1px solid #f0f0f0;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.stat-icon.heart-rate { background: rgba(239,68,68,0.1); color: #ef4444; }
.stat-icon.steps { background: rgba(16,185,129,0.1); color: #10b981; }
.stat-icon.sleep { background: rgba(147,51,234,0.1); color: #9333ea; }
.stat-icon.stress { background: rgba(59,130,246,0.1); color: #3b82f6; }

.stat-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333333;
}

.stat-value small {
    font-size: 0.8rem;
    font-weight: 400;
    color: #666666;
}

.stat-label {
    color: #666666;
    font-size: 0.9rem;
}

.stat-trend {
    font-size: 0.8rem;
    font-weight: 500;
}

.stat-trend.positive { color: #10b981; }
.stat-trend.negative { color: #ef4444; }
.stat-trend.neutral { color: #666666; }

.dashboard-alerts {
    padding: 2rem;
    border-bottom: 1px solid #f0f0f0;
}

.dashboard-alerts h4 {
    margin-bottom: 1.5rem;
    color: #333333;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dashboard-alerts h4 i {
    color: #003d82;
}

.alerts-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.alert-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid;
    transition: all 0.3s ease;
}

.alert-item.priority-high {
    background: rgba(239,68,68,0.05);
    border-color: rgba(239,68,68,0.2);
}

.alert-item.priority-medium {
    background: rgba(251,191,36,0.05);
    border-color: rgba(251,191,36,0.2);
}

.alert-item.priority-low {
    background: rgba(16,185,129,0.05);
    border-color: rgba(16,185,129,0.2);
}

.alert-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.alert-item.priority-high .alert-icon {
    background: rgba(239,68,68,0.1);
    color: #ef4444;
}

.alert-item.priority-medium .alert-icon {
    background: rgba(251,191,36,0.1);
    color: #fbbf24;
}

.alert-item.priority-low .alert-icon {
    background: rgba(16,185,129,0.1);
    color: #10b981;
}

.alert-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.alert-title {
    font-weight: 600;
    color: #333333;
}

.alert-description {
    color: #666666;
    font-size: 0.9rem;
}

.alert-time {
    color: #999999;
    font-size: 0.8rem;
}

.alert-action {
    padding: 0.5rem 1rem;
    border: 1px solid #003d82;
    background: #ffffff;
    color: #003d82;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
    font-size: 0.9rem;
    white-space: nowrap;
}

.alert-action:hover {
    background: #003d82;
    color: #ffffff;
}

.care-team {
    padding: 2rem;
}

.care-team h4 {
    margin-bottom: 1.5rem;
    color: #333333;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.care-team h4 i {
    color: #003d82;
}

.team-members {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.team-member {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #e5e5e5;
    transition: all 0.3s ease;
}

.team-member:hover {
    background: #f8f9fa;
    border-color: #003d82;
}

.team-member.primary {
    background: rgba(0,102,204,0.05);
    border-color: #003d82;
}

.member-avatar {
    width: 50px;
    height: 50px;
    background: #e5e5e5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666666;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.team-member.primary .member-avatar {
    background: #003d82;
    color: #ffffff;
}

.member-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.member-name {
    font-weight: 600;
    color: #333333;
}

.member-role {
    color: #666666;
    font-size: 0.9rem;
}

.member-status {
    font-size: 0.8rem;
}

.member-status.online {
    color: #10b981;
}

.contact-btn {
    padding: 0.5rem 1rem;
    border: 1px solid #003d82;
    background: #ffffff;
    color: #003d82;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
    font-size: 0.9rem;
    white-space: nowrap;
}

.contact-btn:hover {
    background: #003d82;
    color: #ffffff;
}

.dashboard-benefits {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.benefit-card {
    background: #ffffff;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    border: 1px solid #e5e5e5;
    transition: all 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.benefit-card .benefit-icon {
    width: 80px;
    height: 80px;
    background: rgba(0,102,204,0.1);
    color: #003d82;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1.5rem auto;
}

.benefit-card h4 {
    margin-bottom: 1rem;
    color: #333333;
}

.benefit-card p {
    color: #666666;
    line-height: 1.5;
    margin: 0;
}

/* ===== RESPONSIBILITY SECTION STYLES ===== */
.responsibility-section {
    padding: 6rem 0;
    background-color: #ffffff;
}

.responsibility-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.responsibility-text h2 {
    font-size: 2.5rem;
    color: #1a1a1a;
    margin-bottom: 1rem;
}

.responsibility-subtitle {
    font-size: 1.2rem;
    color: #666666;
    line-height: 1.5;
    margin-bottom: 3rem;
}

.responsibility-promises {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.promise-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.promise-number {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #003d82, #002a5c);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.promise-content h3 {
    color: #1a1a1a;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.promise-content p {
    color: #666666;
    line-height: 1.5;
    margin: 0;
}

.responsibility-visual {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.care-circle {
    width: 400px;
    height: 400px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.patient-center {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #003d82, #002a5c);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    z-index: 5;
    box-shadow: 0 10px 30px rgba(0,102,204,0.3);
}

.patient-center i {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.care-layer {
    position: absolute;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.care-layer.doctor {
    width: 200px;
    height: 200px;
    border: 2px solid #003d82;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: rotate 20s linear infinite;
}

.care-layer.monitoring {
    width: 260px;
    height: 260px;
    border: 2px solid #10b981;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: rotate 25s linear infinite reverse;
}

.care-layer.ai {
    width: 320px;
    height: 320px;
    border: 2px solid #9333ea;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: rotate 30s linear infinite;
}

.care-layer.team {
    width: 380px;
    height: 380px;
    border: 2px solid #f59e0b;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: rotate 35s linear infinite reverse;
}

@keyframes rotate {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

.care-item {
    position: absolute;
    width: 80px;
    height: 80px;
    background: rgba(255,255,255,0.95);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    font-size: 0.7rem;
    font-weight: 600;
    text-align: center;
    color: #333333;
    line-height: 1.2;
    border: 2px solid #ffffff;
}

.care-layer.doctor .care-item {
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
}

.care-layer.monitoring .care-item {
    top: 50%;
    right: -40px;
    transform: translateY(-50%);
}

.care-layer.ai .care-item {
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
}

.care-layer.team .care-item {
    top: 50%;
    left: -40px;
    transform: translateY(-50%);
}

.care-item i {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
    color: #003d82;
}

.protection-badge {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: linear-gradient(135deg, #10b981, #059669);
    color: #ffffff;
    padding: 1rem 2rem;
    border-radius: 50px;
    box-shadow: 0 8px 25px rgba(16,185,129,0.3);
}

.protection-badge i {
    font-size: 2rem;
}

.protection-badge strong {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.protection-badge span {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* ===== RESPONSIVE DESIGN ===== */
/* ===== ШАПКА: бургер вмикається з 1024 px, а не з 768 =====
   Заміряно: між 769 і ~1030 px десктопна шапка не вміщується — логотип, меню,
   перемикач мови та дві кнопки разом ширші за контейнер, і сторінка їхала
   вбік. На 900 px це 31 зайвий піксель, на 820 px — вже 108, і так на всіх
   дванадцяти сторінках у трьох мовах. Тому правила мобільної навігації
   перенесені сюди: нижче 1024 px показуємо бургер, який і так уже
   працює. Раніше ці правила лежали всередині блоку 768 px. */
@media (max-width: 1024px) {
    .nav-menu {
        display: none;
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        max-width: none;
        max-height: calc(100vh - 64px);
        overflow-y: auto;
        background-color: #ffffff;
        border: 1px solid #dbe6f3;
        border-top: none;
        flex-direction: column;
        align-items: stretch;
        padding: 1rem 0;
        gap: 0;
        box-shadow: 0 12px 28px rgba(0,0,0,0.14);
        z-index: 10010;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-item {
        border-bottom: 1px solid #f5f5f5;
    }

    .nav-link {
        padding: 1rem 2rem;
        justify-content: space-between;
    }

    .nav-toggle {
        display: flex;
        /* Nothing else in the row pushes it right: the desktop nav-actions are
           hidden here and the mobile language switcher is not present on every
           page, so the toggle was left sitting next to the logo. */
        margin-left: auto;
        /* cancel the button's own padding so the icon lines up with the
           container edge while the tap target still reaches toward the corner */
        margin-right: -0.5rem;
    }

    .nav-actions {
        display: none;
    }

    .mobile-lang-switcher {
        display: flex;
        z-index: 10011;
    }

    .mobile-lang-menu {
        z-index: 10012;
    }

}

@media (max-width: 768px) {
    .header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 10000;
        overflow: visible;
    }

    body {
        padding-top: 64px;
    }

    .nav {
        min-height: 64px;
        gap: 0.5rem;
    }

    .nav-brand {
        min-width: 0;
    }

    .nav-brand .logo {
        max-width: calc(100vw - 72px);
        font-size: 1.1rem;
        overflow: hidden;
        white-space: nowrap;
    }

    .nav-brand .logo img {
        height: 42px !important;
        width: auto;
    }

    .nav-brand .logo span {
        margin-left: 4px !important;
        margin-right: 4px !important;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .hero-text h1 {
        font-size: 2rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .hero-stats {
        flex-direction: row;
        justify-content: center;
        gap: 1rem;
    }

    .stat-item {
        flex: 1;
        min-width: 0;
        padding: 1rem;
    }

    .stat-number {
        font-size: 1.8rem;
    }

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

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

    .evidence-stats {
        grid-template-columns: 1fr;
    }

    .partner-types {
        grid-template-columns: 1fr;
    }

    .form-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

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

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .legal-card {
        padding: 1.5rem;
    }

    .legal-card-header {
        flex-direction: column;
    }

    .legal-meta-panel {
        width: 100%;
        min-width: 0;
    }

    .legal-language-grid {
        grid-template-columns: 1fr;
    }

    .legal-details-grid {
        grid-template-columns: 1fr;
    }

    .legal-actions {
        flex-direction: column;
    }

    .cta-actions {
        flex-direction: column;
        align-items: center;
    }

    .cert-badges {
        flex-direction: column;
        align-items: center;
    }

    .container {
        padding: 0 1rem;
    }

    .hero,
    .services,
    .how-it-works,
    .evidence,
    .partners,
    .cta-section,
    .contact-form-section {
        padding: 3rem 0;
    }

    /* B2B Mobile Styles */
    .b2b-hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .b2b-hero .hero-text h1 {
        font-size: 2rem;
    }

    .hero-benefits {
        align-items: flex-start;
    }

    .benefit-item {
        text-align: left;
    }

    .content-split {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

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

    .program-card.featured {
        transform: none;
    }

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

    .integration-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

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

    .case-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .case-results {
        justify-content: space-around;
    }

    .timeline-item {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .timeline-step {
        align-self: center;
    }

    .form-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .b2b-form {
        padding: 2rem;
    }

    .goals-checkboxes {
        grid-template-columns: 1fr;
    }

    .logos-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    /* Service pages mobile */
    .service-hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .service-highlights {
        grid-template-columns: 1fr;
    }

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

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

    .process-steps {
        grid-template-columns: 1fr;
    }

    .checkup-process {
        grid-template-columns: 1fr;
    }

    .report-preview {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

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

    /* Blog Mobile Styles */
    .blog-hero h1 {
        font-size: 2rem;
    }

    .blog-stats {
        flex-direction: column;
        gap: 1.5rem;
    }

    .filter-container {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

    .filter-buttons {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 0.5rem;
    }

    .search-box input {
        width: 100%;
    }

    .featured-post {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .blog-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

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

    .pagination {
        flex-direction: column;
        gap: 1rem;
    }

    .pagination-numbers {
        order: 2;
    }

    .blog-posts-preview {
        grid-template-columns: 1fr;
    }

    .article-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .article-header h1 {
        font-size: 1.8rem;
    }

    .article-author {
        flex-direction: column;
        text-align: center;
    }

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

    .newsletter-form-large {
        flex-direction: column;
    }

    .share-links {
        justify-content: center;
    }

    .related-articles-grid {
        grid-template-columns: 1fr;
    }

    /* Monitoring & Responsibility Mobile */
    .monitoring-dashboard {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

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

    .dashboard-stats {
        grid-template-columns: 1fr;
    }

    .dashboard-benefits {
        grid-template-columns: 1fr;
    }

    .responsibility-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .responsibility-text h2 {
        font-size: 2rem;
    }

    .care-circle {
        width: 300px;
        height: 300px;
    }

    .care-layer.doctor { width: 150px; height: 150px; }
    .care-layer.monitoring { width: 200px; height: 200px; }
    .care-layer.ai { width: 250px; height: 250px; }
    .care-layer.team { width: 280px; height: 280px; }

    .care-item {
        width: 60px;
        height: 60px;
        font-size: 0.6rem;
    }

    .care-item i {
        font-size: 1.2rem;
    }

    .protection-badge {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }

    /* For-companies mobile overflow guards */
    .for-companies-page .b2b-hero,
    .for-companies-page .problem-solution,
    .for-companies-page .corporate-programs,
    .for-companies-page .roi-benefits,
    .for-companies-page .integration,
    .for-companies-page .case-studies,
    .for-companies-page .implementation,
    .for-companies-page .b2b-form-section {
        overflow-x: clip;
    }

    .for-companies-page .program-card,
    .for-companies-page .roi-item,
    .for-companies-page .case-item,
    .for-companies-page .timeline-content,
    .for-companies-page .b2b-form,
    .for-companies-page .integration-feature > div {
        min-width: 0;
    }

    .for-companies-page .hero-actions .btn {
        width: 100%;
        max-width: 340px;
    }

    .for-companies-page .b2b-quote-btn {
        width: 100%;
        max-width: 340px;
    }

    .for-companies-page .case-results {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .for-companies-page .case-company,
    .for-companies-page .case-industry,
    .for-companies-page .program-price,
    .for-companies-page .timeline-content h3,
    .for-companies-page .timeline-content p,
    .for-companies-page .benefit-item span,
    .for-companies-page .form-group label {
        overflow-wrap: anywhere;
        word-break: break-word;
    }
}


/* ===== FLOATING CONTACT BUTTONS ===== */
.float-contacts {
    position: fixed;
    bottom: 2rem;
    right: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    z-index: 9000;
}

/* The scroll-to-top button used to be positioned fixed in the same corner as
   this stack, so it sat underneath the WhatsApp button. It is now a member of
   the stack and the flex column keeps them apart. */
.float-contacts .scroll-to-top {
    order: -1;
    position: static;
    width: 52px;
    height: 52px;
    border: none;
    border-radius: 50%;
    background-color: #1e4fa8;
    color: #ffffff;
    font-size: 1.15rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
    transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.float-contacts .scroll-to-top:hover {
    background-color: #163a80;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.28);
}

.float-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    color: #ffffff;
    font-size: 1.4rem;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(0,0,0,0.22);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.float-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.28);
    color: #ffffff;
}

.float-tg {
    background: #2AABEE;
}

.float-wa {
    background: #25D366;
}

/* ===== APP DOWNLOAD BADGES ===== */
/* ===== FOOTER CONTACT / APP LINKS (minimal stacked list) ===== */
.footer-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
}

.footer-link {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    width: fit-content;
    padding: 0.1rem 0;
    color: rgba(255, 255, 255, 0.72);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.3;
    white-space: nowrap;
    transition: color 0.15s ease;
}

.footer-link:hover,
.footer-link:focus-visible {
    color: #ffffff;
}

.footer-link .fl-icon {
    width: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    line-height: 1;
    flex-shrink: 0;
    opacity: 0.9;
}

.footer-link.fl-tg .fl-icon    { color: #2AABEE; }
.footer-link.fl-wa .fl-icon    { color: #25D366; }
.footer-link.fl-phone .fl-icon { color: rgba(255, 255, 255, 0.85); }
.footer-link.fl-apple .fl-icon,
.footer-link.fl-gp .fl-icon    { color: rgba(255, 255, 255, 0.85); }

/* small breathing room before the app-store pair */
.footer-link.fl-apple { margin-top: 0.35rem; }

/* ===== FORM QUICK CONTACT (inside B2B form) ===== */
.form-contact-quick {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.contact-quick-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: #0056b3;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.15s ease;
}

.contact-quick-link:hover {
    color: #003d82;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .float-contacts {
        bottom: 1.25rem;
        right: 1rem;
    }

    .float-btn,
    .float-contacts .scroll-to-top {
        width: 46px;
        height: 46px;
        font-size: 1.2rem;
    }

    .footer-links {
        gap: 0.7rem;
    }
}


/* btn-outline on dark hero backgrounds.
   Scoped to .b2b-hero, the only hero with a dark ground. The old selector was
   [class*="hero"], which also caught .hero (white), .service-hero and
   .blog-hero (both #f8f9fa) and painted their outline buttons white on white —
   "Порівняти тарифи" was invisible on all three service pages. */
.b2b-hero .btn-outline {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.55);
    background: transparent;
}
.b2b-hero .btn-outline:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.8);
    color: #ffffff;
}

/* ===== 404 PAGE ===== */
.error-page {
    background: var(--bg-light, #f8f9fa);
}

.error-page .error-code {
    font-size: clamp(3.5rem, 10vw, 5.5rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.03em;
    margin: 0 0 1rem;
    opacity: 0.15;
}

.error-page .error-links {
    margin-top: 3rem;
    text-align: left;
    display: inline-block;
}

.error-page .error-links h2 {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    opacity: 0.45;
    margin: 0 0 0.9rem;
}

.error-page .error-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

/* ===== CONTACT SHEET =====
   "Зв'язатись зараз" in the footer used to be a bare tel: link, with Telegram
   and WhatsApp listed beside it. The list is gone; the button now opens this
   panel so the visitor picks a channel instead of being dialled at. */
.contact-sheet-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(10, 20, 35, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.18s ease;
}
.contact-sheet-backdrop.is-open { opacity: 1; }

.contact-sheet {
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    width: 100%;
    max-width: 360px;
    padding: 1.5rem;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.22);
    transform: translateY(8px);
    transition: transform 0.18s ease;
}
.contact-sheet-backdrop.is-open .contact-sheet { transform: none; }

.contact-sheet-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
}
.contact-sheet-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 0.2rem;
    line-height: 1.3;
}
.contact-sheet-sub {
    font-size: 0.85rem;
    color: #5b6672;
    margin: 0;
    line-height: 1.4;
}
.contact-sheet-close {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    color: #5b6672;
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
    border-radius: 6px;
}
.contact-sheet-close:hover { background: #f1f3f6; color: #1a1a1a; }

.contact-sheet-options { display: flex; flex-direction: column; gap: 0.6rem; }

.contact-option {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.85rem 1rem;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    text-decoration: none;
    color: #1a1a1a;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}
.contact-option:hover,
.contact-option:focus-visible {
    border-color: #003d82;
    background-color: #f7f9fc;
    outline: none;
}
.contact-option .co-icon {
    width: 24px;
    display: flex;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
}
.contact-option .co-label { font-weight: 600; font-size: 0.95rem; display: block; }
.contact-option .co-sub { font-size: 0.8rem; color: #5b6672; display: block; margin-top: 1px; }
.contact-option.co-phone .co-icon { color: #003d82; }
.contact-option.co-tg    .co-icon { color: #2AABEE; }
.contact-option.co-wa    .co-icon { color: #25D366; }

/* the trigger is a <button> now, so it must not inherit button chrome */
button.footer-link {
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    color: inherit;
    cursor: pointer;
    text-align: left;
}

@media (prefers-reduced-motion: reduce) {
    .contact-sheet-backdrop,
    .contact-sheet { transition: none; }
}

/* on a phone it reads better rising from the bottom edge */
@media (max-width: 480px) {
    .contact-sheet-backdrop { align-items: flex-end; padding: 0; }
    .contact-sheet {
        max-width: none;
        border-radius: 8px 8px 0 0;
        border-bottom: none;
        padding: 1.25rem 1.25rem calc(1.5rem + env(safe-area-inset-bottom, 0px));
        transform: translateY(16px);
    }
}

/* ===== ЗАЯВКА НА СУПРОВІД — своё у этой формы =====
   Подписи и поля берутся из общего блока выше. Здесь остаётся только то,
   что принадлежит именно этой форме: строка согласия и подпись под кнопкой. */
.contact-form textarea { min-height: 84px; }

/* согласие — юридическая строка, а не поле: она не должна кричать */
.contact-form .checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    margin: 1.1rem 0 1.25rem;
}
.contact-form .checkbox-group input[type="checkbox"] {
    width: 15px;
    height: 15px;
    margin-top: 0.15rem;
    flex-shrink: 0;
    accent-color: #003d82;
}
.contact-form .checkbox-group label {
    font-size: 0.8rem;
    line-height: 1.45;
    font-weight: 400;
    color: #5b6672;
    margin: 0;
}

.contact-form .form-submit {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
}
.contact-form .form-reassure {
    font-size: 0.75rem;
    color: #5b6672;
    text-align: center;
    margin: 0;
}

/* ===== ENQUIRY DIALOG ===== */
.enquiry-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(10, 20, 35, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    z-index: 10001;
    overflow-y: auto;
    opacity: 0;
    transition: opacity 0.18s ease;
}
.enquiry-backdrop.is-open { opacity: 1; }

.enquiry-panel {
    position: relative;
    background: #ffffff;
    border: 1px solid #e2e6ea;
    border-radius: 10px;
    width: 100%;
    max-width: 520px;
    padding: 1.9rem;
    box-shadow: 0 18px 54px rgba(0, 0, 0, 0.24);
    margin: auto;
    transform: translateY(10px);
    transition: transform 0.18s ease;
}
.enquiry-backdrop.is-open .enquiry-panel { transform: none; }

.enquiry-close {
    position: absolute;
    top: 0.85rem;
    right: 0.85rem;
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    color: #5b6672;
    font-size: 1.3rem;
    line-height: 1;
    cursor: pointer;
    border-radius: 6px;
}
.enquiry-close:hover { background: #f1f3f6; color: #15181c; }

.enquiry-title { font-size: 1.05rem; font-weight: 700; margin: 0 0 0.25rem; padding-right: 2rem; }
.enquiry-sub { font-size: 0.85rem; color: #5b6672; margin: 0 0 1.4rem; }

@media (prefers-reduced-motion: reduce) {
    .enquiry-backdrop, .enquiry-panel { transition: none; }
}

@media (max-width: 560px) {
    .enquiry-backdrop { padding: 0; align-items: flex-end; }
    .enquiry-panel {
        max-width: none;
        border-radius: 10px 10px 0 0;
        border-bottom: none;
        padding: 1.5rem 1.25rem calc(1.5rem + env(safe-area-inset-bottom, 0px));
        transform: translateY(20px);
    }
    .contact-form .form-row { grid-template-columns: 1fr; }
}

/* A class selector beats the `hidden` attribute's built-in display:none, so a
   closed overlay stayed in the layout at opacity 0 — invisible, full-screen and
   swallowing every click on the page until a reload. Both overlays need this. */
.contact-sheet-backdrop[hidden],
.enquiry-backdrop[hidden] { display: none !important; }

/* Inside the dialog the form is the panel: its own card background, border and
   padding would render a box within a box. */
.enquiry-panel .contact-form {
    background: none;
    border: none;
    padding: 0;
    box-shadow: none;
}

/* Корпоративная анкета шире обычной заявки: в ней две колонки полей и строка
   с целями, в 520 px они складываются в лесенку. */
.enquiry-panel--wide { max-width: 680px; }

.enquiry-panel .b2b-form {
    background: none;
    border: none;
    padding: 0;
    box-shadow: none;
}

/* Оглавление статьи прыгает к заголовку, а шапка сайта закреплена сверху —
   без этого отступа заголовок уезжает под неё и читатель видит середину
   абзаца вместо начала раздела. */
.article-content h2[id],
.article-content h3[id] {
    scroll-margin-top: 100px;
}

/* ===== Сторінка «Наші послуги» ===== */
.services-hero{padding:72px 0 44px;background:linear-gradient(180deg,#f4f8fd 0%,#fff 100%);border-bottom:1px solid #e5e5e5}
.services-hero .legal-eyebrow{color:#5b6672;font-size:.8rem;letter-spacing:.12em;text-transform:uppercase;margin:0 0 10px;font-weight:600}
.services-hero h1{font-size:2.6rem;line-height:1.15;color:#1a1a1a;margin:0 0 16px;letter-spacing:-.02em}
.services-hero-sub{max-width:62ch;color:#666;font-size:1.06rem;line-height:1.65;margin:0}

.services-compare{padding:64px 0;background:#fff}
.compare-wrap{overflow-x:auto;border:1px solid #e5e5e5;border-radius:10px;background:#fff}
.compare-table{width:100%;border-collapse:collapse;min-width:760px;font-size:.95rem}
.compare-table th,.compare-table td{padding:14px 18px;text-align:left;border-bottom:1px solid #eef1f4;vertical-align:top}
.compare-table thead th{background:#f8f9fa;color:#003d82;font-weight:700;font-size:.97rem;border-bottom:2px solid #e5e5e5;white-space:nowrap}
.compare-table thead th.is-featured{background:#e6f3ff}
.compare-table tbody th{font-weight:500;color:#333;width:34%}
.compare-table tbody tr:last-child th,.compare-table tbody tr:last-child td{border-bottom:none}
.compare-table tbody tr:hover td,.compare-table tbody tr:hover th{background:#fafbfc}
.compare-table td.is-featured{background:#f5faff}
.compare-table td.y{color:#0b7a55;font-weight:600}
.compare-table td.n{color:#a0a0a0}
.compare-table td.t{color:#444}
.compare-price{display:block;font-weight:500;font-size:.82rem;color:#5b6672;margin-top:3px}
.compare-note{margin:16px 0 0;font-size:.88rem;color:#666;line-height:1.6}
.compare-note a{color:#003d82}

.services-choose{padding:64px 0;background:#f8f9fa}
.choose-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(272px, 100%), 1fr));gap:20px}
.choose-card{background:#fff;border:1px solid #e5e5e5;border-radius:10px;padding:26px 24px}
.choose-num{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;border-radius:8px;background:#003d82;color:#fff;font-weight:700;font-size:.92rem;margin-bottom:14px}
.choose-card h3{font-size:1.1rem;color:#1a1a1a;margin:0 0 10px}
.choose-card p{color:#666;line-height:1.65;margin:0;font-size:.95rem}
.choose-card strong{color:#003d82}

.services-cta{padding:64px 0;background:#003d82;text-align:center}
.services-cta h2{color:#fff;font-size:1.9rem;margin:0 0 12px}
.services-cta p{color:#cfe0f3;margin:0 0 26px;font-size:1.02rem}
.services-cta .btn-primary{background:#fff;color:#003d82;border-color:#fff}
.services-cta .btn-primary:hover{background:#e6f3ff;color:#002a5c}

@media (max-width:768px){
  .services-hero{padding:48px 0 34px}
  .services-hero h1{font-size:1.95rem}
  .services-compare,.services-choose,.services-cta{padding:44px 0}
}

/* Кнопки на карточках услуг (страница /services.html) */
.services-grid .card-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.services-grid .card-actions .btn {
    flex: 1 1 auto;
    text-align: center;
}

@media (max-width: 480px) {
    .services-grid .card-actions {
        flex-direction: column;
    }
}

/* ===== ЦЕНА: гривна на виду, доллар — в подсказке по наведению =====
   Сумма в гривне остаётся единственным текстом цены, поэтому карточка не
   разъезжается на две строки. Приблизительный эквивалент в долларах живёт в
   атрибуте data-usd и показывается только там, где есть настоящее наведение
   мышью, и только на украинской и русской версиях: англоязычному посетителю
   пересчёт не нужен. */
.service-price[data-usd],
.compare-price[data-usd],
.program-price[data-usd] {
    position: relative;
}

@media (hover: hover) and (pointer: fine) {
    .service-price[data-usd]::after,
    .compare-price[data-usd]::after,
    .program-price[data-usd]::after {
        content: attr(data-usd);
        position: absolute;
        left: 50%;
        top: calc(100% + 0.4rem);
        transform: translateX(-50%) translateY(-3px);
        padding: 0.2rem 0.55rem;
        border: 1px solid rgba(30, 79, 168, 0.14);
        border-radius: 8px;
        background: #ffffff;
        box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
        color: #5b6577;
        font-size: 0.78rem;
        font-weight: 500;
        line-height: 1.4;
        letter-spacing: 0.01em;
        white-space: nowrap;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.15s ease, transform 0.15s ease;
        z-index: 5;
    }

    .service-price[data-usd]:hover::after,
    .compare-price[data-usd]:hover::after,
    .program-price[data-usd]:hover::after {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }

    /* англоязычная версия обходится без пересчёта */
    html[lang="en"] .service-price[data-usd]::after,
    html[lang="en"] .compare-price[data-usd]::after,
    html[lang="en"] .program-price[data-usd]::after {
        content: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .service-price[data-usd]::after,
    .compare-price[data-usd]::after,
    .program-price[data-usd]::after {
        transition: none;
    }
}

/* Запасная отрисовка кнопки «догори», если на странице нет стека контактов:
   без неё браузер показывал системную серую кнопку поверх WhatsApp. */
.scroll-to-top {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border: none;
    border-radius: 50%;
    background-color: #1e4fa8;
    color: #ffffff;
    font-size: 1.15rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
    transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.scroll-to-top[hidden] {
    display: none;
}

.scroll-to-top:hover {
    background-color: #163a80;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.28);
}

/* ===== АНКЕТА ДЛЯ КОМПАНИЙ — компактная раскладка =====
   Форма занимала два экрана: поля-одиночки в двухколоночном ряду, шесть целей
   отдельными строками и отступы 24 px при 48 px внутренних полей карточки.
   Здесь плотность выше, цели превращены в чипы, а заголовки укорочены до
   одной строки, чтобы ряды не разъезжались лесенкой. */
.b2b-form {
    padding: 2rem;
}

.b2b-form .form-divider {
    height: 1px;
    background-color: #eef1f6;
    margin: 1.15rem 0;
}

.b2b-form .form-legend {
    font-size: 0.82rem;
    font-weight: 600;
    color: #4b5563;
}

.b2b-form .form-optional {
    margin-left: 0.4rem;
    font-size: 0.78rem;
    color: #9aa3b2;
}

.goals-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.55rem;
}

.goals-chips .chip {
    position: relative;
    display: inline-flex;
    margin: 0;
}

.goals-chips .chip input {
    position: absolute;
    width: 0;
    height: 0;
    opacity: 0;
}

.goals-chips .chip span {
    display: inline-block;
    padding: 0.4rem 0.75rem;
    border: 1px solid #d7dde7;
    border-radius: 8px;
    background-color: #ffffff;
    color: #4b5563;
    font-size: 0.84rem;
    line-height: 1.4;
    cursor: pointer;
    user-select: none;
    transition: border-color 0.12s ease, background-color 0.12s ease, color 0.12s ease;
}

.goals-chips .chip span:hover {
    border-color: #b9c6da;
}

.goals-chips .chip input:checked + span {
    border-color: #003d82;
    background-color: #f2f7ff;
    color: #003d82;
    font-weight: 500;
}

.goals-chips .chip input:focus-visible + span {
    outline: 2px solid #003d82;
    outline-offset: 2px;
}

.b2b-form .form-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1.1rem;
}

.b2b-form .checkbox-inline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    font-size: 0.86rem;
    color: #6b7280;
    cursor: pointer;
}

.b2b-form .checkbox-inline input {
    width: auto;
    margin: 0;
}

@media (max-width: 768px) {
    .b2b-form {
        padding: 1.5rem;
    }

    .b2b-form .form-actions .btn {
        width: 100%;
    }
}

/* Кнопка подписки стоит на тёмно-синей секции: синяя на синем почти не читалась.
   На тёмном фоне она белая — то же правило, что у кнопки «Вхід» в шапке. */
.newsletter-form-large .btn-primary {
    background-color: #ffffff;
    border-color: #ffffff;
    color: #003d82;
}

.newsletter-form-large .btn-primary:hover {
    background-color: #eaf2ff;
    border-color: #eaf2ff;
    color: #003d82;
}

/* Подзаголовки тарифов разной длины разводили горизонтальные линии
   по разной высоте. Резервируем две строки, пока карточки стоят в ряд. */
@media (min-width: 769px) {
    .program-subtitle {
        min-height: 3.2em;
    }
}

/* ===== СВЯЗИ МЕЖДУ ПРОНУМЕРОВАННЫМИ ШАГАМИ =====
   Три блока с нумерацией — «Як це працює» на главной, «Як працює Personal Care»
   на странице тарифа и «Етапи впровадження» на корпоративной — читались как
   набор отдельных объектов. Линия со стрелкой связывает их в один путь и
   показывает направление. Цвет светлее и текста, и кружков: связь видна, но не
   спорит с цифрами за внимание.

   Горизонтальные связи включаются только там, где все четыре шага гарантированно
   стоят в одну строку: сетка auto-fit при более узком контейнере переносит их, и
   линия уходила бы в пустоту. Порог 1200 px посчитан от ширины контейнера:
   4 × 250 + 3 × 32 = 1096 px минимально нужной ширины. */
:root {
    --step-link: #b9cee9;
}

.steps-grid .step-item,
.process-steps .step-item,
.timeline-item {
    position: relative;
}

@media (min-width: 1200px) {
    /* фиксируем четыре колонки, чтобы геометрия связи была предсказуемой */
    .steps-grid,
    .process-steps {
        grid-template-columns: repeat(4, 1fr);
    }

    /* линия со стрелкой между открытыми шагами (главная) */
    .steps-grid .step-item:not(:last-child)::after {
        content: "";
        position: absolute;
        top: calc(2rem + 24px);
        left: calc(50% + 38px);
        width: calc(100% - 44px);
        height: 12px;
        background:
            url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='12' viewBox='0 0 8 12'%3E%3Cpath d='M1 1l5 5-5 5' fill='none' stroke='%23b9cee9' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right center / 8px 12px no-repeat,
            linear-gradient(var(--step-link), var(--step-link)) left center / calc(100% - 12px) 2px no-repeat;
    }

    /* между карточками линию через рамку не тянем — только стрелка в промежутке */
    .process-steps .step-item:not(:last-child)::after {
        content: "";
        position: absolute;
        top: calc(2rem + 23px);
        right: -1rem;
        transform: translateX(50%);
        width: 10px;
        height: 14px;
        background: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='14' viewBox='0 0 10 14'%3E%3Cpath d='M2 1l6 6-6 6' fill='none' stroke='%23b9cee9' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 10px 14px no-repeat;
    }
}

/* вертикальная связь на корпоративной странице */
@media (min-width: 769px) {
    .timeline-item:not(:last-child)::after {
        content: "";
        position: absolute;
        left: 29px;
        top: 64px;
        bottom: -2rem;
        width: 2px;
        background-color: var(--step-link);
    }

    .timeline-item:not(:last-child)::before {
        content: "";
        position: absolute;
        left: 24px;
        bottom: calc(-2rem + 1px);
        width: 12px;
        height: 8px;
        z-index: 1;
        background: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23b9cee9' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px 8px no-repeat;
    }
}

/* Панель звіту тепер займає всю ширину секції, тому на широкому екрані
   чотири показники стають в один ряд, а не тісняться по двоє. */
@media (min-width: 1100px) {
    .metrics-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .monitoring-points {
        grid-template-columns: 1fr;
    }
}

/* Підпис помилки під конкретним полем. Повідомлення згори екрана людина
   часто не бачить і не розуміє, яке саме поле заповнене не так. */
.field-error {
    margin: 0.25rem 0 0;
    color: #b91c1c;
    font-size: 0.8rem;
    line-height: 1.4;
}

.form-group input.is-invalid,
.form-group select.is-invalid,
.form-group textarea.is-invalid {
    border-color: #dc2626;
}

.form-group input.is-invalid:focus,
.form-group select.is-invalid:focus,
.form-group textarea.is-invalid:focus {
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
}

/* ===== МАЛЕНЬКІ ЕКРАНИ: 360–414 px =====
   Заміряно: на 390 px сторінка їхала вбік на 33 px, на 360 px — на 63 px.
   Причина — колонки контактної секції: елемент ґрату за замовчуванням має
   min-width:auto, тому довгий нерозривний рядок (пошта, кнопка) розпирав
   колонку до 407 px при екрані 360. Плюс кнопка з довгим підписом не
   переносилася. */
@media (max-width: 480px) {
    .contact-content > *,
    .contact-form,
    .contact-info,
    .form-row > *,
    .form-group {
        min-width: 0;
    }

    .contact-form,
    .contact-info {
        padding: 1.25rem;
    }

    .btn-large {
        padding: 0.9rem 1.25rem;
        font-size: 0.95rem;
        white-space: normal;
        text-align: center;
        line-height: 1.35;
    }

    .form-submit .btn,
    .hero-actions .btn,
    .cta-actions .btn {
        width: 100%;
    }

    .contact-item,
    .footer-links a {
        overflow-wrap: anywhere;
    }
}

/* ===== ПАЛЬЦЕВІ ЦІЛІ НА СЕНСОРНИХ ЕКРАНАХ =====
   Посилання в підвалі, контакти та бейджі застосунків мали висоту 18–24 px:
   пальцем у них важко влучити. Рекомендований мінімум — 44 px. */
@media (max-width: 1024px) {
    .footer-links a,
    .footer-links button,
    .footer-link,
    .contact-item a,
    .contact-item,
    .social-links a,
    .app-badges a,
    .contact-option {
        display: inline-flex;
        align-items: center;
        min-height: 44px;
    }

    .contact-item {
        gap: 0.6rem;
    }

    .footer-section ul a,
    .breadcrumb a {
        display: inline-flex;
        align-items: center;
        min-height: 40px;
    }
}

/* Посилання всередині суцільного тексту — «політикою конфіденційності»,
   «Публічній оферті», назви статей у картках — навмисно лишаються як є:
   розтягувати їх до 44 px не можна, це розірве рядок. */

/* ===== ПЛАНШЕТ 769–1024 px: перший екран =====
   Заміряно: на 820 px сторінка їхала вбік на 70 px. Причина — перший екран
   лишався у дві колонки (2fr 1fr), і вузька права колонка з картками
   показників не вміщувалася: текст у них не переносився. Нижче 1024 px
   перший екран стає в одну колонку, а картки стають рядком — так само, як
   це вже працює на телефоні. */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .hero-stats {
        flex-direction: row;
        justify-content: center;
        gap: 1rem;
    }

    .stat-item {
        flex: 1 1 0;
        min-width: 0;
    }

    .stat-label,
    .stat-number {
        overflow-wrap: anywhere;
    }
}

/* Останній залишок горизонтальної прокрутки: на 820 px сітка переваг
   всередині вузької колонки не вміщувалася на 6 px. */
@media (max-width: 1024px) {
    .service-highlights {
        grid-template-columns: 1fr;
    }

    .highlight-item {
        min-width: 0;
    }
}


/* ===== ПЕРШИЙ ЕКРАН: висота і вирівнювання ===== */
/* Заміряно до правки: висоту першого блока задавав лише його вміст, а екран у
   всіх різний. На «Послугах» під блоком лишалося 714 px наступного розділу —
   обрізані картки читались як друга сторінка; на «Для компаній» лише 22 px, і
   екран здавався порожнім. Тепер перший блок займає екран мінус шапка мінус
   96 px. 96 px — це верхній відступ усіх розділів, тож знизу завжди видно
   рівно смугу відступу і початок заголовка, і ніколи обрізану картку.
   min-height, а не height: якщо тексту більше, блок росте, нічого не ріжеться.
   --header-h уточнює main.js за реальною висотою шапки: вона різна на різних
   ширинах і трохи різна в різних мовах. */
:root {
    --header-h: 71px;
    --next-peek: 96px;
}

/* Перший екран на всю висоту виправданий тільки на головній: там він і є
   пропозицією. На внутрішніх сторінках угорі стоять надзаголовок, заголовок
   і абзац — розтягувати їх на весь екран означає змусити людину гортати,
   перш ніж вона побачить пакети чи статті. Тому тільки .hero. */
@media (min-width: 769px) {
    .hero {
        min-height: calc(100vh - var(--header-h) - var(--next-peek));
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .hero > .container {
        width: 100%;
    }
}

/* Тексти першого екрана — по центру, як і заголовки всіх наступних розділів.
   Нижче 1024 px екран уже був в одну колонку; тепер так само на десктопі. */
.hero .hero-content {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
}

.hero .hero-text {
    max-width: 920px;
}

.hero .hero-subtitle {
    max-width: 62ch;
    margin-left: auto;
    margin-right: auto;
}

.hero .hero-actions {
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 0;
}

.hero .hero-stats {
    display: flex;
    flex-direction: row;
    justify-content: center;
    width: 100%;
    gap: 1.5rem;
}

/* display:flex сюди дістається з правил для .dashboard-stats — там .stat-item
   це рядок «іконка + число». У першому екрані картка інша: число над
   підписом, усе по центру. Тому тут повертаємо блок і власні відступи. */
.hero .stat-item {
    display: block;
    flex: 1 1 0;
    min-width: 0;
    max-width: 320px;
    padding: 1.5rem;
    text-align: center;
}

.hero .stat-number {
    margin-bottom: 0.4rem;
}

/* На невисоких екранах (ноутбуки 1280×800) вміст першого блока інколи вищий за
   мету, і смуга наступного розділу стискається: заміряно 22 px на «Для
   компаній» і 69 px на російській головній замість 96 px. Там, де екран
   низький, стискаємо власні відступи першого блока — вміст не ріжеться, а
   край наступного розділу видно так само, як на великому моніторі. */
@media (min-width: 769px) and (max-height: 880px) {
    .hero,
    .b2b-hero,
    .blog-hero {
        padding-top: 2.5rem;
        padding-bottom: 2.5rem;
    }

    .services-hero {
        padding-top: 48px;
        padding-bottom: 32px;
    }
}

/* На телефоні три картки показників в один рядок дають по 116 px: «92 %» рве
   навпіл, а підписи ламаються посеред слова («Сертиф ікова них»). Тому вузьких
   екранах ставимо їх одна під одною — цифра над підписом, слова цілі. */
@media (max-width: 640px) {
    .hero .hero-stats {
        flex-direction: column;
    }

    .hero .stat-item {
        width: 100%;
        max-width: none;
    }

    .hero .stat-number,
    .hero .stat-label {
        overflow-wrap: normal;
        word-break: normal;
    }
}

/* На 360 px сторінка HealthCheckup виїжджала вбік на 13 px (рос.) і 4 px
   (англ.): блоки зразка звіту не вміли стискатися вужче за свій вміст. */
@media (max-width: 1024px) {
    .report-preview,
    .report-sections,
    .report-section,
    .report-sample,
    .report-header,
    .report-content,
    .health-score,
    .report-section > div {
        min-width: 0;
    }

    .report-section h3,
    .report-section p,
    .report-header h4,
    .report-header p {
        overflow-wrap: anywhere;
    }
}

/* Перший екран «Для компаній» — так само по центру, як на головній.
   Список переваг лишається вирівняним по лівому краю всередині себе, але сам
   блок стоїть по центру: інакше іконки «розбігаються» по рядках різної
   довжини і список читається як сходинки. */
.b2b-hero .b2b-hero-content {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
}

/* Ширше за текстову колонку головної: три переваги в рядку разом з іконками
   займають близько 920 px і при вужчій колонці переносяться «2 + 1». */
.b2b-hero .hero-text {
    max-width: 1100px;
}

.b2b-hero .hero-subtitle {
    max-width: 62ch;
    margin-left: auto;
    margin-right: auto;
}

/* Три переваги короткі — ставимо їх у рядок, а не стовпчиком: так блок
   стає на 66 px нижчим і смуга наступного розділу лишається на місці. */
.b2b-hero .hero-benefits {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem 2rem;
}

@media (max-width: 768px) {
    .b2b-hero .hero-benefits {
        flex-direction: column;
        align-items: center;
    }
}

.b2b-hero .hero-actions {
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 0;
}

.b2b-hero .hero-stats {
    display: flex;
    flex-direction: row;
    justify-content: center;
    width: 100%;
    gap: 1.5rem;
}

.b2b-hero .stat-card {
    flex: 1 1 0;
    min-width: 0;
    max-width: 320px;
}

@media (max-width: 640px) {
    .b2b-hero .hero-stats {
        flex-direction: column;
    }

    .b2b-hero .stat-card {
        width: 100%;
        max-width: none;
    }
}

/* В одну колонку блок став вищим за екран (заміряно: −26 px на 1440×900 і
   −46 px на 1280×800 — край наступного розділу зникав). Стискаємо власні
   проміжки блока, а не вміст: нічого не ріжеться, усе лишається на місці. */
.b2b-hero .b2b-hero-content {
    gap: 2rem;
}

.b2b-hero .hero-text h1 {
    margin-bottom: 1rem;
}

.b2b-hero .hero-subtitle {
    margin-bottom: 1.5rem;
}

.b2b-hero .hero-benefits {
    margin-bottom: 1.25rem;
}

@media (min-width: 769px) and (max-height: 880px) {
    .b2b-hero .hero-text h1 {
        font-size: 2.4rem;
    }
}

/* Останні 20 px до рівних 96 px смуги наступного розділу. */
.b2b-hero .stat-card {
    padding: 1.5rem;
}

.b2b-hero .hero-benefits {
    margin-bottom: 1rem;
}

/* Віджет перевірки стоїть над кнопкою відправки. Ширина за контейнером, щоб
   у вузькому вікні заявки він не вилазив за краї. */
.turnstile-holder {
    margin: 0 0 1rem;
    min-height: 65px;
}

.turnstile-holder:empty {
    min-height: 0;
    margin: 0;
}

/* ===== ЧЕК ЗДОРОВ'Я ЗА 2 ХВИЛИНИ =====
   Опитувальник живе на окремій сторінці /health-check.html. Класи з префіксом
   qz-, щоб нічого не зачепити в решті сайту. Кольори — ті самі, що й у макеті:
   фірмовий #003d82, стани — зелений / бурштиновий / цегляний. */
.qz-container { max-width: 760px; padding-block: 2.5rem 4rem; }

.qz {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
}
.qz-progress { height: 3px; background: #e2e8f0; position: relative; }
.qz-progress i {
    position: absolute; inset: 0 auto 0 0; width: 0;
    background: #003d82; transition: width .25s ease;
}
.qz-pad { padding: 2rem 2rem 1.5rem; }
@media (max-width: 560px) { .qz-pad { padding: 1.5rem 1.15rem 1.25rem; } }

.qz-eyebrow {
    display: flex; justify-content: space-between; gap: 1rem;
    font-size: 0.7rem; letter-spacing: 0.09em; text-transform: uppercase;
    color: #7c8b99; margin-bottom: 1rem;
}
.qz-h1 { font-size: 1.85rem; line-height: 1.22; margin-bottom: 1rem; }
.qz-q {
    font-size: 1.28rem; line-height: 1.32; font-weight: 600;
    color: #1a1a1a; margin-bottom: 0.35rem;
}
.qz-hint { font-size: 0.87rem; color: #5a6b7c; margin-bottom: 1.1rem; }
.qz-lead { font-size: 0.98rem; color: #4a5a6a; margin-bottom: 0.9rem; }
.qz-live { font-size: 0.87rem; color: #003d82; margin: 0.9rem 0 0; min-height: 1.2rem; }
.qz-foot { font-size: 0.78rem; color: #7c8b99; }

.qz-note {
    border: 1px solid #e2e8f0; background: #f7f9fb; border-radius: 8px;
    padding: 0.85rem 0.95rem; font-size: 0.83rem; color: #4a5a6a; line-height: 1.55;
}
.qz-note-lg { margin-top: 1.75rem; font-size: 0.85rem; }
.qz-note strong { color: #1a1a1a; }

.qz-opts { display: flex; flex-direction: column; gap: 0.5rem; }
.qz-opts-row { flex-direction: row; flex-wrap: wrap; }
.qz-opts-row .qz-opt { flex: 1 1 140px; }
.qz-opt {
    display: block; width: 100%; text-align: left; font: inherit;
    font-size: 0.95rem; color: #1a1a1a; background: #f7f9fb;
    border: 1px solid #e2e8f0; border-radius: 8px;
    padding: 0.8rem 0.9rem; cursor: pointer;
    transition: border-color .12s ease, background-color .12s ease;
}
.qz-opt:hover { border-color: #b9c6d3; }
.qz-opt[aria-pressed="true"] {
    border-color: #003d82; background: #eaf0f8; font-weight: 500;
}
.qz-opt:focus-visible { outline: 2px solid #003d82; outline-offset: 2px; }

.qz-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.5rem; }
@media (max-width: 420px) { .qz-grid { grid-template-columns: repeat(3, 1fr); } }
.qz-num { text-align: center; font-variant-numeric: tabular-nums; padding: 0.9rem 0.25rem; }

.qz-fields { display: flex; gap: 0.7rem; flex-wrap: wrap; margin-top: 1rem; }
.qz-field { flex: 1 1 150px; min-width: 0; }
.qz-field label {
    display: block; font-size: 0.72rem; letter-spacing: 0.05em;
    text-transform: uppercase; color: #7c8b99; margin-bottom: 0.35rem;
}
.qz-field input {
    width: 100%; font: inherit; font-size: 1.05rem; color: #1a1a1a;
    background: #f7f9fb; border: 1px solid #e2e8f0; border-radius: 8px;
    padding: 0.65rem 0.75rem; font-variant-numeric: tabular-nums;
}
.qz-field input:focus-visible { outline: 2px solid #003d82; outline-offset: 1px; }

.qz-nav {
    display: flex; align-items: center; justify-content: space-between;
    gap: 0.75rem; margin-top: 1.5rem;
}
.qz-count { font-size: 0.78rem; color: #7c8b99; font-variant-numeric: tabular-nums; }

/* ---- результат ---- */
.qz-score { display: flex; align-items: flex-end; gap: 0.9rem; flex-wrap: wrap; }
.qz-num-big { font-variant-numeric: tabular-nums; }
.qz-score .qz-num {
    font-size: 3.9rem; font-weight: 700; line-height: 0.9;
    letter-spacing: -0.03em; font-variant-numeric: tabular-nums;
}
.qz-score .qz-den { font-size: 1.1rem; color: #7c8b99; padding-bottom: 0.4rem; }
.qz-badge {
    margin-left: auto; font-size: 0.68rem; letter-spacing: 0.08em;
    text-transform: uppercase; border: 1px solid currentColor;
    border-radius: 8px; padding: 0.25rem 0.6rem; white-space: nowrap;
}
.qz-partial {
    margin-top: 1rem; font-size: 0.87rem; color: #4a5a6a; line-height: 1.55;
    border-left: 3px solid #a8720a; padding: 0.5rem 0 0.5rem 0.8rem;
}
.qz-partial strong { color: #1a1a1a; }

.qz-sect { margin-top: 1.9rem; }
.qz-sect-h {
    font-size: 0.7rem; letter-spacing: 0.09em; text-transform: uppercase;
    color: #7c8b99; font-weight: 500; margin-bottom: 0.8rem;
}
.qz-table { width: 100%; border-collapse: collapse; font-size: 0.93rem; }
.qz-table th {
    text-align: left; font-size: 0.66rem; letter-spacing: 0.08em;
    text-transform: uppercase; color: #7c8b99; font-weight: 500;
    padding: 0 0 0.5rem;
}
.qz-table th.qz-r, .qz-table td.qz-r { text-align: right; }
.qz-table td {
    padding: 0.7rem 0; border-top: 1px solid #e9eef3; vertical-align: middle;
}
.qz-table td.qz-r { font-variant-numeric: tabular-nums; white-space: nowrap; font-weight: 600; }
.qz-cname { font-weight: 500; color: #1a1a1a; }
.qz-cnote { font-size: 0.78rem; color: #7c8b99; }
.qz-bar {
    display: block; height: 4px; border-radius: 2px;
    background: #e9eef3; margin-top: 0.45rem; overflow: hidden;
}
.qz-bar i { display: block; height: 100%; border-radius: 2px; }

.qz-steps { list-style: none; display: flex; flex-direction: column; gap: 0.65rem; margin: 0; padding: 0; }
.qz-steps li { display: flex; gap: 0.7rem; font-size: 0.95rem; color: #333; align-items: flex-start; }
.qz-steps .qz-n {
    font-size: 0.75rem; color: #003d82; border: 1px solid #c2cdd8;
    border-radius: 8px; padding: 0.1rem 0.45rem; flex: 0 0 auto; margin-top: 0.15rem;
    font-variant-numeric: tabular-nums;
}
.qz-steps strong { color: #1a1a1a; }

.qz-bench { display: flex; flex-direction: column; gap: 0.55rem; }
.qz-bench div { font-size: 0.92rem; color: #4a5a6a; display: flex; gap: 0.6rem; align-items: baseline; }
.qz-bench b { color: #1a1a1a; font-weight: 600; flex: 0 0 auto; font-variant-numeric: tabular-nums; }

.qz-cta .contact-form { margin-top: 1rem; }
.qz-sources { display: block; margin-top: 1.25rem; line-height: 1.7; }

.qz-good { color: #1f7a4d; }
.qz-mid  { color: #a8720a; }
.qz-low  { color: #b23b3b; }
.qz-none { color: #9aa7b4; }
.qz-bar .qz-fill-good { background: #1f7a4d; }
.qz-bar .qz-fill-mid  { background: #a8720a; }
.qz-bar .qz-fill-low  { background: #b23b3b; }
.qz-bar .qz-fill-none { background: #e9eef3; }

/* .qz-nav и .qz-fields объявлены как display:flex, а это правило сильнее, чем
   браузерное [hidden]{display:none}. Без строки ниже кнопки «Назад/Далі»
   остаются на экране результата, а поля ввода тиска и холестерина видны ещё
   до того, как человек выбрал, знает ли он свои цифры. */
.qz [hidden] { display: none !important; }

/* ---- уточнение питания: 16 признаков одним экраном ---- */
.qz-items { display: flex; flex-direction: column; gap: 0.2rem; margin-top: 1.1rem; }
.qz-item { padding: 0.85rem 0; border-top: 1px solid #e9eef3; }
.qz-item:first-child { border-top: 0; padding-top: 0; }
.qz-item-q { font-size: 0.97rem; font-weight: 500; color: #1a1a1a; margin-bottom: 0.2rem; line-height: 1.4; }
.qz-item-h { font-size: 0.8rem; color: #7c8b99; margin-bottom: 0.55rem; }
.qz-item .qz-opts { margin-top: 0.45rem; max-width: 320px; }
.qz-item .qz-opt { padding: 0.55rem 0.8rem; font-size: 0.9rem; text-align: center; }
.qz-refine { border: 1px solid #e2e8f0; border-radius: 10px; padding: 1.1rem 1.15rem; background: #f7f9fb; }
.qz-refine .qz-sect-h { margin-bottom: 0.5rem; }
.qz-refine .qz-lead { font-size: 0.92rem; margin-bottom: 0.9rem; }

/* ---- полоса на главной ---- */
.qz-band { background: #f7f9fb; border-top: 1px solid #e2e8f0; border-bottom: 1px solid #e2e8f0; padding: 2.75rem 0; }
.qz-band-inner {
    display: flex; align-items: center; justify-content: space-between;
    gap: 2rem; flex-wrap: wrap;
}
.qz-band-text { flex: 1 1 420px; min-width: 0; border-left: 3px solid #003d82; padding-left: 1.1rem; }
.qz-band-eyebrow {
    font-size: 0.68rem; letter-spacing: 0.09em; text-transform: uppercase;
    color: #7c8b99; margin-bottom: 0.4rem;
}
.qz-band h2 { font-size: 1.6rem; margin-bottom: 0.5rem; }
.qz-band p:last-of-type { font-size: 0.95rem; color: #5a6b7c; margin-bottom: 0; max-width: 60ch; }
.qz-band .btn { flex: 0 0 auto; }
@media (max-width: 640px) { .qz-band { padding: 2rem 0; } .qz-band h2 { font-size: 1.35rem; } }

/* ===== СЕТКИ НА ПРОМЕЖУТОЧНЫХ ШИРИНАХ =====
   auto-fit сам решает, сколько колонок помещается, и на окне «между» телефоном и
   полным экраном раскладывал три карточки в две колонки, а четыре — в три. Последний
   ряд оставался с дырой: три шага в ряд, четвёртый один под ними. Ровно это видно на
   скриншоте владельца. Ниже число колонок задано явно, и оно всегда делит количество
   карточек нацело: 3 → 3 или 1, 4 → 4, 2 или 1, 6 → 3, 2 или 1. */

/* Три карточки */
@media (min-width: 980px) {
    .services-grid, .programs-grid, .cases-grid, .stories-grid,
    .partner-types, .evidence-stats, .blog-posts-preview, .choose-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 979px) {
    .services-grid, .programs-grid, .cases-grid, .stories-grid,
    .partner-types, .evidence-stats, .blog-posts-preview, .choose-grid {
        grid-template-columns: 1fr;
    }
}

/* Четыре карточки */
@media (min-width: 1120px) {
    .steps-grid, .monitoring-features, .audience-grid, .process-steps, .checkup-process {
        grid-template-columns: repeat(4, 1fr);
    }
}
@media (min-width: 620px) and (max-width: 1119px) {
    .steps-grid, .monitoring-features, .audience-grid, .process-steps, .checkup-process {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 619px) {
    .steps-grid, .monitoring-features, .audience-grid, .process-steps, .checkup-process {
        grid-template-columns: 1fr;
    }
}

/* Шесть карточек */
@media (min-width: 980px) { .roi-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 620px) and (max-width: 979px) { .roi-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 619px) { .roi-grid { grid-template-columns: 1fr; } }

/* Логотипы партнёров сжимались до 92 px в колонке — на такой ширине от логотипа
   остаётся пятно. Даём им минимум и позволяем переноситься свободно. */
.logos-grid { grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); }

/* Длинные слова и адреса в юридических текстах выталкивали страницу вбок
   на узких экранах: вёрстка целая, а строка не переносится. */
body { overflow-wrap: break-word; }
.container, .content, .section, p, li, td, h1, h2, h3, h4 { overflow-wrap: break-word; }

/* Декоративные кружки вокруг картинки первого экрана позиционированы абсолютно
   и на очень узком экране вылезали за край. Ниже 420 px их просто нет. */
@media (max-width: 420px) { .care-item, .care-layer { display: none; } }

/* Элемент грида по умолчанию не сжимается уже своего содержимого (min-width: auto).
   На экране 320 px карточки тарифов и включённых услуг из-за этого оставались
   шире колонки и выталкивали страницу вбок на 20–30 px. */
.services-grid > *, .steps-grid > *, .evidence-stats > *, .partner-types > *,
.features-grid > *, .audience-grid > *, .process-steps > *, .stories-grid > *,
.checkup-process > *, .report-sections > *, .programs-grid > *, .roi-grid > *,
.cases-grid > *, .goals-checkboxes > *, .posts-grid > *, .lifestyle-grid > *,
.related-articles-grid > *, .blog-posts-preview > *, .choose-grid > *,
.monitoring-features > *, .logos-grid > *, .metrics-grid > *, .hero-stats > * {
    min-width: 0;
}

/* Отметка «приймаю статини» и блок эмоционального состояния */
.qz-check { display: flex; gap: 0.6rem; align-items: flex-start; margin-top: 0.9rem; font-size: 0.92rem; color: #333; cursor: pointer; }
.qz-check input { margin-top: 0.25rem; flex: 0 0 auto; }
.qz-mood-low { border-left: 3px solid #a8720a; padding-left: 0.85rem; }

/* ---- активність: частота і хвилини на одному екрані ---- */
.qz-pa { display: flex; flex-direction: column; gap: 1.25rem; }
.qz-pa-lab {
    display: block; font-size: 0.72rem; letter-spacing: 0.05em;
    text-transform: uppercase; color: #7c8b99; margin-bottom: 0.45rem;
}
.qz-opt-2 { line-height: 1.3; }
.qz-opt-2 small {
    display: block; color: #7c8b99; font-size: 0.78rem;
    font-weight: 400; margin-top: 0.15rem;
}
.qz-opt-2[aria-pressed="true"] small { color: #5b6b7a; }
.qz-chips { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.qz-chip {
    width: auto; flex: 0 0 auto; text-align: center;
    font-variant-numeric: tabular-nums; padding: 0.6rem 0.95rem; font-size: 0.95rem;
}

/* ---- анкета зроблена ---- */
.qz-done { text-align: center; }
.qz-done-mark {
    width: 52px; height: 52px; margin: 0 auto 0.9rem; border-radius: 50%;
    background: #e8f4ed; color: #1f6b45; border: 1px solid #b9dcc8;
    font-size: 1.6rem; line-height: 50px;
}
.qz-done .qz-lead { max-width: 46ch; margin-left: auto; margin-right: auto; }
.qz-done-hint { font-size: 0.85rem; color: #7c8b99; margin: 0.6rem 0 1.4rem; }
.qz-done-btns { display: flex; gap: 0.7rem; justify-content: center; flex-wrap: wrap; }
.qz-done-btns .btn { flex: 0 1 auto; }

/* ---- друк результату квізу ---- */
@media print {
    header.header, footer, .footer,
    .float-contacts, .float-btn, .scroll-top, .back-to-top,
    .cookie-banner, .notification, .notification-container,
    main > *:not(.qz-container) { display: none !important; }
    .qz-container > *:not(.qz) { display: none !important; }
    .qz-cta, .qz-done, .qz-progress, .qz-nav, .qz-refine { display: none !important; }
    .qz-screen[hidden] { display: none !important; }
    .qz { border: 0; box-shadow: none; padding: 0; max-width: none; }
    .qz-container { padding: 0 !important; margin: 0 !important; }
    main { padding-top: 0 !important; margin-top: 0 !important; }
    .qz-sect { page-break-inside: avoid; }
    .qz-table { width: 100%; }
    a[href]::after { content: ""; }
    .qz-note, .qz-foot, .qz-hint { color: #333 !important; }
    body { background: #fff !important; }
}

/* ---- шапка на аркуші друку ---- */
.qz-print-head { display: none; }
@media print {
    .qz-print-head {
        display: flex !important; align-items: baseline; gap: 0.6rem;
        padding: 0 0 0.6rem; margin-bottom: 1.4rem;
        border-bottom: 1px solid #c9d4e0;
    }
    .qz-print-head[hidden] { display: flex !important; }
    .qz-print-brand { font-size: 1.05rem; font-weight: 700; color: #003d82; letter-spacing: -0.01em; }
    .qz-print-doc { font-size: 0.8rem; color: #566472; }
    .qz-print-date { margin-left: auto; font-size: 0.8rem; color: #566472; font-variant-numeric: tabular-nums; }
}

/* Обов'язкове застереження: сервіс не надає екстреної медичної допомоги.
   Стоїть унизу кожної сторінки пакета — ТЗ від 21.09.2026. */
.med-disclaimer-wrap { padding: 2.75rem 0; }
.med-disclaimer {
    max-width: 70ch;
    margin: 0 auto;
    padding: 1rem 1.25rem;
    border: 1px solid #e3e6e3;
    border-left: 3px solid #b4551f;
    border-radius: 10px;
    background: #fbf5f1;
    color: #41505e;
    font-size: 0.93rem;
    line-height: 1.6;
}
.med-disclaimer strong { color: #8d4318; }

/* Пояснення під позначкою «Рекомендуємо» — ТЗ від 21.09.2026. */
.service-rec-note {
    margin: 0.5rem 0 0;
    font-size: 0.82rem;
    line-height: 1.5;
    color: #5a6775;
    max-width: 38ch;
}
.service-hero .service-rec-note { margin-top: 0.65rem; max-width: 46ch; }

/* Підпис під ціною на англійській версії: долар — орієнтир, списання у гривні. */
.price-sub {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.68rem;
    font-weight: 400;
    line-height: 1.45;
    letter-spacing: 0.01em;
    color: #8a94a0;
}

/* «Необмежено» завжди з умовою й посиланням на правила сервісу: обмеження
   має бути доступним до покупки, а не лише в договорі. ТЗ від 21.09.2026. */
.service-fineprint {
    margin: 0.9rem 0 0;
    font-size: 0.74rem;
    line-height: 1.5;
    color: #8a94a0;
}
.service-fineprint a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.service-fineprint a:hover { color: #003d82; }

/* ===== ПАКЕТИ: два тарифи поруч, чекап окремою смугою =====
   Затверджено ARCH-00 10.11.2026 (варіант 1 мокапу). Старі .services-grid і
   .service-card лишаються недоторканими: ними користуються інші блоки.

   Чому так, а не трьома однаковими картками. Три картки були комірками grid
   однакової висоти, а вмісту в них 5, 9 і 5 рядків: під двома лишалося
   300-400 px порожнечі, і три пари кнопок стояли на трьох різних рівнях.
   Тепер поруч стоять лише два тарифи з однаковою будовою (назва, ціна,
   обіцянка, лінія, п'ять пунктів, кнопки, виноска), тому кнопки збігаються
   без жодних трюків, а разова оцінка винесена у власну горизонтальну смугу:
   вона інша за природою і в ряду підписок читалася як "найдешевший тариф".

   Радіуси й кнопки лишаються сайтові (8 px картка, 4 px кнопка) - цей блок не
   повинен виламуватися з решти сторінки. */
.pkg-grid {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: repeat(2, 1fr);
}

.pkg-card {
    display: flex;
    flex-direction: column;
    background-color: #ffffff;
    border: 1px solid #e3e9f1;
    border-radius: 8px;
    padding: 1.875rem 1.75rem 1.75rem;
}

/* Рекомендований тариф позначений суцільною заливкою, а не рамкою з пігулкою:
   так його видно з першого погляду, і бейдж більше не висить над межею. */
.pkg-card.is-rec {
    background-color: #012a57;
    border-color: #012a57;
}

.pkg-card.is-rec h3,
.pkg-card.is-rec .pkg-list li { color: #ffffff; }
.pkg-card.is-rec .pkg-promise,
.pkg-card.is-rec .pkg-fine,
.pkg-card.is-rec .pkg-note { color: #cddcee; }

.pkg-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1.125rem;
}

.pkg-top h3 {
    margin-bottom: 0;
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.pkg-kind {
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 700;
    color: #5b6b7a;
    border: 1px solid #e3e9f1;
    border-radius: 4px;
    padding: 0.25rem 0.5rem;
    white-space: nowrap;
}

.pkg-card.is-rec .pkg-kind {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.35);
    background-color: rgba(255, 255, 255, 0.12);
}

/* Ціна - головне число блоку, тому вона більша за заголовок розділу.
   Гривня лишається єдиним джерелом суми (data-uah), одиниця виміру набрана
   тихо. На англійській версії main.js підміняє весь текст абзаца на долари,
   тому великий кегль стоїть на самому абзаці, а не на вкладеному span. */
.pkg-price {
    font-size: 2.75rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.035em;
    font-variant-numeric: tabular-nums;
    color: #003d82;
    margin-bottom: 0;
}

.pkg-card.is-rec .pkg-price { color: #ffffff; }

.pkg-per {
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0;
    color: #5b6b7a;
    white-space: nowrap;
}

.pkg-card.is-rec .pkg-per { color: #cddcee; }

.pkg-fine {
    margin: 0.5rem 0 0;
    font-size: 0.84rem;
    color: #5b6b7a;
}

.pkg-promise {
    margin: 1.125rem 0 0;
    font-size: 0.98rem;
    line-height: 1.55;
    color: #5b6b7a;
}

.pkg-rule {
    height: 1px;
    background-color: #e3e9f1;
    margin: 1.375rem 0;
}

.pkg-card.is-rec .pkg-rule { background-color: rgba(255, 255, 255, 0.2); }

.pkg-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.75rem;
}

.pkg-list li {
    display: flex;
    gap: 0.7rem;
    padding: 0;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #12181f;
}

.pkg-tick {
    width: 17px;
    height: 17px;
    flex: none;
    margin-top: 0.25rem;
    color: #003d82;
}

.pkg-card.is-rec .pkg-tick { color: #8fc0f2; }

/* Виноска резервує два рядки в обох картках - саме це тримає кнопки на одній
   лінії, коли текст виноски різної довжини. */
.pkg-foot {
    margin-top: auto;
    padding-top: 1.625rem;
    display: grid;
    gap: 0.75rem;
}

.pkg-foot .btn { width: 100%; }

.pkg-card.is-rec .btn-primary {
    background-color: #ffffff;
    color: #003d82;
    border-color: #ffffff;
}

.pkg-card.is-rec .btn-primary:hover {
    background-color: #e8f0fa;
    color: #003d82;
}

.pkg-card.is-rec .btn-outline {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.45);
}

.pkg-card.is-rec .btn-outline:hover {
    background-color: #ffffff;
    color: #012a57;
}

.pkg-note {
    margin: 0.875rem 0 0;
    font-size: 0.8rem;
    line-height: 1.5;
    color: #5b6b7a;
    min-height: 3em;
}

.pkg-note a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* Разова оцінка: горизонтальна смуга. Висоту задає вміст, тож порожнечі
   не виникає в принципі. */
.pkg-strip {
    margin-top: 1.25rem;
    background-color: #f4f7fb;
    border: 1px solid #e3e9f1;
    border-radius: 8px;
    padding: 1.625rem 1.75rem;
    display: grid;
    gap: 1.625rem;
    grid-template-columns: minmax(12rem, 14.5rem) 1fr minmax(11rem, auto);
    align-items: center;
}

.pkg-strip h3 {
    margin-bottom: 0.5rem;
    font-size: 1.12rem;
    font-weight: 700;
}

.pkg-strip .pkg-price { font-size: 2.1rem; }

.pkg-strip-list {
    list-style: none;
    margin: 0;
    padding: 0 0 0 1.625rem;
    border-left: 1px solid #e3e9f1;
    display: grid;
    gap: 0.56rem 1.5rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pkg-strip-list li {
    display: flex;
    gap: 0.56rem;
    padding: 0;
    font-size: 0.88rem;
    line-height: 1.45;
    color: #12181f;
}

.pkg-strip-list .pkg-tick {
    width: 15px;
    height: 15px;
    margin-top: 0.18rem;
}

.pkg-strip-cta {
    display: grid;
    gap: 0.625rem;
}

.pkg-strip-cta .btn { width: 100%; }

/* У місці, де просять гроші, стоять чотири факти про те, як це влаштовано:
   раніше тут не було жодного. */
.pkg-trust {
    margin-top: 2.125rem;
    padding-top: 1.375rem;
    border-top: 1px solid #e3e9f1;
    display: grid;
    gap: 1.125rem 2rem;
    grid-template-columns: repeat(4, 1fr);
}

.pkg-trust dt {
    margin-bottom: 0.19rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: #12181f;
}

.pkg-trust dd {
    margin: 0;
    font-size: 0.82rem;
    line-height: 1.45;
    color: #5b6b7a;
}

/* Підказка з доларом тепер прив'язана до лівого краю: ціна вирівняна ліворуч,
   а не по центру картки, як було. */
@media (hover: hover) and (pointer: fine) {
    .pkg-price[data-usd]::after {
        left: 0;
        transform: translateX(0) translateY(-3px);
    }

    .pkg-price[data-usd]:hover::after {
        transform: translateX(0) translateY(0);
    }
}

@media (max-width: 900px) {
    .pkg-grid { grid-template-columns: 1fr; }
    .pkg-note { min-height: 0; }
    .pkg-strip {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    .pkg-strip-list {
        border-left: 0;
        border-top: 1px solid #e3e9f1;
        padding: 1.125rem 0 0;
    }
    .pkg-trust { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 620px) {
    .pkg-card { padding: 1.5rem 1.25rem; }
    .pkg-price { font-size: 2.35rem; }
    .pkg-top {
        flex-direction: column-reverse;
        align-items: flex-start;
        gap: 0.56rem;
    }
    .pkg-list,
    .pkg-strip-list { grid-template-columns: 1fr; }
    .pkg-trust { grid-template-columns: 1fr; }
}
