* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: "Inter", "Segoe UI", system-ui, sans-serif;
    background: linear-gradient(180deg, #f7fafc 0%, #edf6f5 100%);
    color: #1f2937;
}
a { color: #0f766e; text-decoration: none; }
a:hover { text-decoration: underline; }
.page-shell { min-height: 100vh; }
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255,255,255,0.92);
    border-bottom: 1px solid rgba(226,232,240,0.85);
    backdrop-filter: blur(12px);
}
.header-wrap {
    max-width: 1240px;
    margin: 0 auto;
    padding: 14px 20px;
    display: grid;
    gap: 12px;
}
.brand-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.brand-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    color: #0f172a;
}
.brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0f766e, #14b8a6);
    color: #fff;
    font-size: 0.9rem;
    letter-spacing: 0.04em;
}
.main-nav, .lang-switcher, .footer-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.main-nav a, .lang-btn, .footer-links a {
    padding: 8px 14px;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid #dbe4ea;
    color: #334155;
    font-weight: 600;
    font-size: 0.9rem;
}
.main-nav a.active, .lang-btn.active {
    background: #0f766e;
    color: white;
    border-color: #0f766e;
    text-decoration: none;
}
.lang-btn { font-size: 0.82rem; }
.container, .content-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 24px 20px 60px;
}
.hero {
    text-align: center;
    margin-bottom: 28px;
}
.hero h1 {
    font-size: 2.35rem;
    line-height: 1.1;
    color: #0f172a;
}
.hero h1 strong { color: #0f766e; }
.hero p {
    max-width: 720px;
    margin: 12px auto 0;
    color: #64748b;
    font-size: 1rem;
}
.card, .section-card, .tool-card, .guide-card, .faq-card, .legal-shell {
    background: rgba(255,255,255,0.98);
    border: 1px solid rgba(226,232,240,0.8);
    border-radius: 28px;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.05);
}
.card, .section-card, .legal-shell {
    padding: 24px;
    margin-bottom: 24px;
}
.card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 2px solid #edf7f5;
}
.card-icon {
    width: 46px;
    height: 46px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ecfeff;
    color: #0f766e;
    font-weight: 800;
}
.card-title {
    font-size: 1.26rem;
    font-weight: 800;
    color: #0f172a;
}
.toggle-row, .export-bar {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 22px;
}
.btn-toggle, .btn-export {
    border: none;
    border-radius: 999px;
    padding: 12px 22px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s ease;
}
.btn-toggle {
    background: #e2e8f0;
    color: #475569;
}
.btn-toggle.active, .btn-export {
    background: #0f766e;
    color: #fff;
    box-shadow: 0 8px 18px rgba(15,118,110,0.24);
}
.btn-toggle:hover, .btn-export:hover {
    transform: translateY(-1px);
    filter: brightness(1.02);
}
.input-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 20px;
}
.double-input-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}
.input-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    position: relative;
}
.input-group label {
    font-size: 0.76rem;
    font-weight: 800;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.input-group input, .input-group select {
    width: 100%;
    padding: 14px 18px;
    border-radius: 18px;
    border: 1.5px solid #dbe4ea;
    font-size: 1rem;
    color: #0f172a;
    background: #fff;
}
.input-group input:focus, .input-group select:focus {
    outline: none;
    border-color: #14b8a6;
    box-shadow: 0 0 0 3px rgba(20,184,166,0.12);
}
.unit-hint {
    position: absolute;
    right: 14px;
    bottom: 14px;
    color: #64748b;
    font-size: 0.82rem;
}
.results-area {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 24px;
    align-items: center;
}
.results-visual {
    background: linear-gradient(180deg, #f0fdfa 0%, #ecfeff 100%);
    border-radius: 24px;
    border: 1px solid #ccfbf1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 280px;
}
.results-data {
    display: grid;
    gap: 14px;
}
.bmi-big-number, .big-num, .big-value {
    font-size: 2.6rem;
    line-height: 1;
    font-weight: 800;
    color: #0f172a;
}
.bmi-category-badge, .risk-badge, .ai-badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.86rem;
}
.badge-underweight { background: #dbeafe; color: #1d4ed8; }
.badge-normal { background: #dcfce7; color: #15803d; }
.badge-overweight { background: #fef3c7; color: #b45309; }
.badge-obese { background: #fee2e2; color: #b91c1c; }
.health-score {
    display: flex;
    align-items: center;
    gap: 14px;
}
.health-score-circle {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.5rem;
    background: #e2e8f0;
    color: #334155;
}
.score-good { background: #dcfce7; color: #15803d; }
.score-medium { background: #fef3c7; color: #b45309; }
.score-high { background: #fee2e2; color: #b91c1c; }
.score-low { background: #dbeafe; color: #1d4ed8; }
.info-rows {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}
.info-item, .ideal-cell, .highlight-box, .faq-card, .mini-note {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 14px;
}
.info-label {
    color: #64748b;
    font-size: 0.82rem;
    font-weight: 700;
}
.info-value {
    color: #0f172a;
    font-size: 1.08rem;
    font-weight: 800;
    margin-top: 4px;
}
.standard-switcher {
    margin-top: 10px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.standard-chip {
    padding: 8px 14px;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid #dbe4ea;
    cursor: pointer;
    font-weight: 700;
    color: #334155;
}
.standard-chip.active {
    background: #0f766e;
    color: white;
    border-color: #0f766e;
}
.ai-advice {
    background: linear-gradient(180deg, #f0fdfa 0%, #ffffff 100%);
    border-left: 5px solid #0f766e;
}
.ai-badge {
    background: #ccfbf1;
    color: #0f766e;
    margin-bottom: 10px;
}
.tools-grid, .new-tools-grid, .guide-grid, .faq-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}
.new-tools-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tool-card, .guide-card, .faq-card {
    padding: 18px;
}
.ideal-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}
.progress-bar {
    height: 12px;
    border-radius: 999px;
    background: #e2e8f0;
    overflow: hidden;
    margin: 10px 0;
}
.progress-fill {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #14b8a6, #0f766e);
    transition: width 0.4s ease;
}
.legal-shell h1, .section-card h1, .content-container h1 {
    font-size: 2rem;
    color: #0f172a;
    margin-bottom: 12px;
}
.section-card h2, .content-container h2, .legal-shell h2 {
    font-size: 1.35rem;
    color: #0f172a;
    margin-bottom: 12px;
}
.section-card h3, .guide-card h3, .faq-card h3 {
    font-size: 1.05rem;
    color: #0f172a;
    margin-bottom: 10px;
}
p, li { color: #475569; line-height: 1.65; }
ul { padding-left: 18px; }
li { margin-bottom: 8px; }
.feature-band {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}
.read-link {
    display: inline-block;
    margin-top: 8px;
    font-weight: 700;
}
.site-footer {
    margin-top: 36px;
    text-align: center;
    color: #64748b;
    font-size: 0.86rem;
    padding: 24px 16px 40px;
}
.consent-banner {
    position: fixed;
    left: 18px;
    right: 18px;
    bottom: 18px;
    z-index: 200;
    background: #0f172a;
    color: #e5e7eb;
    border-radius: 22px;
    padding: 18px;
    box-shadow: 0 18px 42px rgba(15,23,42,0.28);
    display: none;
}
.consent-banner.show { display: block; }
.consent-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 12px;
}
.consent-actions button {
    border: none;
    border-radius: 999px;
    padding: 10px 16px;
    cursor: pointer;
    font-weight: 700;
}
.consent-accept { background: #14b8a6; color: #042f2e; }
.consent-decline, .consent-manage { background: #334155; color: #fff; }
.support-link-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 16px;
}
@media (max-width: 1040px) {
    .input-grid, .feature-band, .new-tools-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
    .results-area, .input-grid, .tools-grid, .new-tools-grid, .guide-grid, .faq-grid, .feature-band, .info-rows {
        grid-template-columns: 1fr;
    }
    .results-visual { min-height: 220px; }
    .hero h1 { font-size: 1.9rem; }
}
@media (max-width: 640px) {
    .container, .content-container { padding: 18px 14px 48px; }
    .card, .section-card, .legal-shell { padding: 18px; }
    .site-header { position: static; }
    .brand-row { align-items: flex-start; }
    .double-input-grid, .ideal-grid { grid-template-columns: 1fr; }
    .bmi-big-number, .big-num, .big-value { font-size: 2rem; }
}