:root {
    --bg: #f6faf9;
    --surface: #ffffff;
    --text: #1c2b2a;
    --text-muted: #5b6b6a;
    --accent: #0f9d78;
    --accent-dark: #0b7a5d;
    --accent-soft: #e3f5ef;
    --border: #e3e9e7;
    --star: #f4a72c;
    --radius: 14px;
    --shadow: 0 2px 10px rgba(20, 40, 35, 0.06);
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
}

a { color: inherit; text-decoration: none; }

/* ---- Root country selector ---- */
.selector-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.selector-inner { max-width: 640px; text-align: center; }
.selector-logo { font-size: 2rem; margin: 0 0 4px; color: var(--accent-dark); }
.selector-sub { color: var(--text-muted); margin: 0 0 28px; }
.country-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
}
.country-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px 10px;
    box-shadow: var(--shadow);
    transition: transform .15s ease, box-shadow .15s ease;
}
.country-card:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(20,40,35,.1); }
.country-flag { display: block; font-size: 2rem; margin-bottom: 6px; }
.country-name { font-weight: 600; font-size: .95rem; }

/* ---- Header ---- */
.site-header {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 14px 0;
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 8px; font-size: 1.3rem; font-weight: 700; color: var(--accent-dark); }
.brand img { width: 28px; height: 28px; display: block; }
.brand span { color: var(--text); font-weight: 400; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* ---- Category tabs ---- */
.category-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 24px 0; }
.category-tabs a {
    padding: 8px 16px;
    border-radius: 999px;
    background: var(--surface);
    border: 1px solid var(--border);
    font-size: .9rem;
    font-weight: 600;
    color: var(--text-muted);
}
.category-tabs a.active,
.category-tabs a:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ---- Review card grid ---- */
.review-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 18px;
    margin: 24px 0 48px;
}
.review-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    transition: transform .15s ease;
}
.review-card:hover { transform: translateY(-3px); }
.review-card img { width: 100%; height: 170px; object-fit: contain; background: #fbfdfc; padding: 12px; }
.review-card-body { padding: 14px 16px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.review-card h3 { margin: 0; font-size: 1.05rem; }
.stars { color: var(--star); font-size: .95rem; letter-spacing: 1px; }
.verdict { color: var(--text-muted); font-size: .88rem; flex: 1; }
.card-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; }
.price { font-weight: 700; color: var(--accent-dark); }
.cta-btn {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    padding: 9px 16px;
    border-radius: 8px;
    font-weight: 600;
    font-size: .88rem;
}
.cta-btn:hover { background: var(--accent-dark); }

/* ---- Article ---- */
.article-hero { background: var(--surface); border-bottom: 1px solid var(--border); padding: 28px 0 36px; }
.article-hero h1 { margin: 0 0 8px; font-size: 1.7rem; max-width: 760px; }
.article-meta { color: var(--text-muted); font-size: .88rem; display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 24px; }
.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: 28px;
    align-items: start;
}
.hero-product-card {
    background: #fbfdfc;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    text-align: center;
}
.hero-product-card img { width: 100%; max-width: 320px; border-radius: 10px; }
.hero-product-verdict { color: var(--text-muted); font-size: .9rem; margin: 14px 4px 0; text-align: left; }
.article-body { max-width: 760px; margin: 28px auto; padding: 0 20px; }
@media (max-width: 760px) {
    .hero-grid { grid-template-columns: 1fr; }
}
.article-body h2 { margin-top: 32px; font-size: 1.3rem; }
.pros-cons { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; margin: 20px 0; }
.pros-cons > div { background: var(--accent-soft); border: 1px solid var(--accent); border-radius: var(--radius); padding: 18px 20px; }
.pros-cons h4 { margin: 0 0 10px; color: var(--accent-dark); }
.pros-cons ul { margin: 0; padding-left: 20px; }
.pros-cons li { margin-bottom: 8px; }
.pros-cons li::marker { color: var(--accent); }
.review-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px 18px;
    margin: 0 0 14px;
    font-style: italic;
}
.review-item footer {
    margin-top: 10px;
    font-style: normal;
    font-weight: 600;
    font-size: .85rem;
    color: var(--accent-dark);
}
.content-photo {
    display: block;
    max-width: 420px;
    width: 100%;
    height: auto;
    border-radius: var(--radius);
    margin: 18px auto;
}
.dosage-schema {
    list-style: none;
    margin: 18px 0;
    padding: 0;
    display: grid;
    gap: 10px;
}
.dosage-schema li {
    background: var(--surface);
    border: 1px solid var(--border);
    border-left: 4px solid var(--accent);
    border-radius: 8px;
    padding: 12px 16px;
}
.dosage-schema strong { color: var(--accent-dark); }
.infographic-wide {
    display: block;
    max-width: 900px;
    width: 100%;
    height: auto;
    border-radius: var(--radius);
    margin: 18px auto;
    border: 1px solid var(--border);
}
.expert-quote {
    background: var(--accent-soft);
    border-left: 4px solid var(--accent);
    border-radius: 8px;
    padding: 16px 18px;
    margin: 24px 0;
    font-style: italic;
}
.expert-quote cite { display: block; margin-top: 8px; font-style: normal; font-weight: 600; font-size: .85rem; color: var(--accent-dark); }
.buy-box {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
    margin: 28px 0;
    box-shadow: var(--shadow);
}
.buy-box .price { font-size: 1.4rem; display: block; margin-bottom: 12px; }

/* ---- Native order form (posts to /lead_handler.php -> cpa.tl lead API) ---- */
.order-form-box {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 26px 24px 20px;
    margin: 28px 0;
    box-shadow: var(--shadow);
}
.order-form-box h2 { margin: 0 0 6px; font-size: 1.25rem; text-align: center; }
.order-form-sub { color: var(--text-muted); font-size: .9rem; margin: 0 0 18px; text-align: center; }
.order-price-row {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 10px;
    background: var(--accent-soft);
    border: 1px solid var(--accent);
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 18px;
}
.order-price-old { color: var(--text-muted); text-decoration: line-through; font-size: 1rem; }
.order-price-new { color: var(--accent-dark); font-weight: 800; font-size: 1.6rem; }
.native-order-form .form-group { margin-bottom: 14px; }
.native-order-form input[type="text"],
.native-order-form input[type="tel"] {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid var(--border);
    background: #fbfdfc;
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    color: var(--text);
    transition: border-color .2s ease, box-shadow .2s ease;
}
.native-order-form input::placeholder { color: #9aa8a6; }
.native-order-form input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}
.native-submit-btn {
    width: 100%;
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 14px;
    font-size: 1.05rem;
    font-weight: 700;
    font-family: inherit;
    border-radius: 8px;
    cursor: pointer;
    transition: background .2s ease, transform .2s ease;
}
.native-submit-btn:hover { background: var(--accent-dark); transform: translateY(-1px); }
.native-submit-btn:disabled { background: #b7c4c1; cursor: not-allowed; transform: none; }
.order-form-note { color: var(--text-muted); font-size: .78rem; margin: 12px 0 0; text-align: center; line-height: 1.5; }
.order-form-note a { color: var(--accent-dark); text-decoration: underline; }
.hero-grid .order-form-box { margin: 0; }

/* ---- Footer ---- */
.site-footer { border-top: 1px solid var(--border); padding: 24px 0; margin-top: 40px; color: var(--text-muted); font-size: .85rem; text-align: center; }
.footer-nav { display: flex; gap: 6px 18px; flex-wrap: wrap; justify-content: center; margin-bottom: 12px; font-size: .85rem; }
.footer-nav a { color: var(--accent-dark); font-weight: 600; }
.footer-nav a:hover { text-decoration: underline; }
.site-footer .footer-legal { margin-top: 4px; }

/* ---- Simple legal/info pages (about/delivery/terms/contacts) ---- */
.legal-body { max-width: 760px; margin: 28px auto; padding: 0 20px; }
.legal-body h1 { font-size: 1.6rem; margin: 8px 0 20px; }
.legal-body h2 { font-size: 1.15rem; margin-top: 28px; }
.legal-body p, .legal-body li { color: var(--text); }
.legal-body address { font-style: normal; line-height: 1.7; }

.breadcrumbs { max-width: 760px; margin: 20px auto 0; padding: 0 20px; font-size: .85rem; color: var(--text-muted); }
.breadcrumbs a { color: var(--accent-dark); }
.page-card {
    max-width: 760px;
    margin: 16px auto 28px;
    padding: 28px 28px 8px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.page-card h1 { text-transform: uppercase; letter-spacing: .5px; font-size: 1.5rem; margin: 0 0 18px; }
.page-card .legal-body { margin: 0; padding: 0; max-width: none; }
.page-card .legal-body h1 { display: none; }
.why-us-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
    margin: 18px 0 24px;
}
.why-us-grid > div {
    background: var(--accent-soft);
    border: 1px solid var(--accent);
    border-radius: 10px;
    padding: 16px 18px;
}
.why-us-grid h4 { margin: 0 0 6px; color: var(--accent-dark); font-size: .98rem; }
.why-us-grid p { margin: 0; font-size: .88rem; color: var(--text-muted); }
.page-disclaimer { font-size: .8rem; color: var(--text-muted); border-top: 1px solid var(--border); padding-top: 14px; margin-top: 8px; }

@media (max-width: 520px) {
    .pros-cons { grid-template-columns: 1fr; }
}
