@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap');

/* ── Reset & tokens ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --teal:      #10b9a3;
    --teal-dark: #0b8b7c;
    --teal-deep: #064e44;
    --mint:      #eafaf6;
    --mint-2:    #d6f5ec;
    --sky:       #2f8fef;
    --coral:     #ff7a59;
    --coral-dark:#e85d3c;
    --ink:       #0e2a33;
    --ink-2:     #3d5a63;
    --ink-3:     #6f8a92;
    --line:      #e2efec;
    --white:     #ffffff;
    --bg:        #f5fbf9;
    --grad:      linear-gradient(135deg, #10b9a3 0%, #18c0d6 55%, #2f8fef 100%);
    --grad-warm: linear-gradient(135deg, #ff8a5b 0%, #ff6b6b 100%);
    --shadow:    0 10px 30px rgba(16,120,108,0.10);
    --shadow-sm: 0 4px 14px rgba(16,120,108,0.08);
    --shadow-lg: 0 18px 44px rgba(16,120,108,0.16);
    --font:      'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --max:       1200px;
    --radius:    18px;
    --radius-sm: 12px;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
    font-family: var(--font);
    color: var(--ink);
    background: var(--bg);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; transition: color .15s; }
a:hover { color: var(--teal-dark); }
img { display: block; max-width: 100%; height: auto; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 1.5rem; }

/* ── Top trust bar ── */
.topbar { background: var(--grad); color: #fff; font-size: .82rem; font-weight: 600; }
.topbar-inner { display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: center; justify-content: center; padding: .5rem 0; }
.topbar-item { display: inline-flex; align-items: center; gap: .4rem; opacity: .97; }
.topbar-item svg { width: 16px; height: 16px; flex: none; }

/* ── Header ── */
.site-header { background: var(--white); position: sticky; top: 0; z-index: 50; box-shadow: 0 2px 18px rgba(16,120,108,.06); }
.header-top { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 1rem 0; }

.brand { display: inline-flex; align-items: center; gap: .7rem; }
.brand-mark {
    width: 44px; height: 44px; border-radius: 14px; background: var(--grad);
    display: grid; place-items: center; color: #fff; flex: none; box-shadow: var(--shadow-sm);
}
.brand-mark svg { width: 26px; height: 26px; }
.site-name { font-size: 1.7rem; font-weight: 800; letter-spacing: -.02em; color: var(--ink); line-height: 1; }
.site-name a { color: inherit; }
.site-name b { color: var(--teal); }
.site-logo img { max-height: 46px; width: auto; }

.search-form { display: flex; align-items: center; background: var(--mint); border: 1.5px solid var(--mint-2); border-radius: 999px; padding: .25rem .25rem .25rem 1rem; min-width: 230px; }
.search-form input { border: 0; background: transparent; font: inherit; font-size: .9rem; color: var(--ink); width: 100%; outline: none; }
.search-form input::placeholder { color: var(--ink-3); }
.search-form button { border: 0; cursor: pointer; width: 34px; height: 34px; border-radius: 999px; background: var(--grad); color: #fff; font-size: 1rem; display: grid; place-items: center; flex: none; }

/* ── Nav ── */
.site-nav { border-top: 1px solid var(--line); }
.nav-inner { display: flex; flex-wrap: wrap; gap: .3rem; padding: .55rem 0; }
.site-nav a {
    font-size: .82rem; font-weight: 700; letter-spacing: .01em; color: var(--ink-2);
    padding: .45rem .95rem; border-radius: 999px; white-space: nowrap; transition: all .15s;
}
.site-nav a:hover { background: var(--mint); color: var(--teal-dark); }

/* ── Layout grid ── */
.site-main { padding: 2.25rem 0 3rem; }
.main-grid { display: grid; grid-template-columns: minmax(0,1fr) 320px; gap: 2.25rem; }

/* ── Category pill ── */
.article-category {
    display: inline-block; font-size: .68rem; font-weight: 800; text-transform: uppercase;
    letter-spacing: .06em; color: var(--teal-deep); background: var(--mint-2);
    padding: .3rem .7rem; border-radius: 999px;
}

/* ── Featured ── */
.featured-article {
    background: var(--white); border-radius: var(--radius); overflow: hidden;
    box-shadow: var(--shadow); margin-bottom: 2rem; border: 1px solid var(--line);
}
.featured-image { display: block; aspect-ratio: 16/8; overflow: hidden; }
.featured-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.featured-article:hover .featured-image img { transform: scale(1.03); }
.featured-article > .article-category { margin: 1.5rem 1.5rem 0; }
.featured-article .article-title { font-size: 2rem; font-weight: 800; line-height: 1.15; letter-spacing: -.02em; margin: .75rem 1.5rem .5rem; }
.featured-article .article-excerpt { color: var(--ink-2); font-size: 1.05rem; margin: 0 1.5rem; }
.featured-article .article-meta { margin: 1rem 1.5rem 1.5rem; }

/* ── Article meta ── */
.article-meta { font-size: .82rem; color: var(--ink-3); font-weight: 600; display: flex; gap: .8rem; flex-wrap: wrap; align-items: center; }
.article-meta .byline { color: var(--teal-dark); }

.read-more {
    display: inline-flex; align-items: center; gap: .4rem; margin: 0 1.5rem 1.5rem;
    background: var(--grad); color: #fff; font-weight: 700; font-size: .9rem;
    padding: .6rem 1.3rem; border-radius: 999px; box-shadow: var(--shadow-sm);
}
.read-more:hover { color: #fff; filter: brightness(1.05); }

/* ── Cards grid ── */
.articles-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px,1fr)); gap: 1.5rem; }
.article-card {
    background: var(--white); border-radius: var(--radius-sm); overflow: hidden;
    border: 1px solid var(--line); box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
    transition: transform .2s, box-shadow .2s;
}
.article-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-image { display: block; aspect-ratio: 16/10; overflow: hidden; }
.card-image img { width: 100%; height: 100%; object-fit: cover; }
.article-card .card-body { padding: 1rem 1.1rem 1.2rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.article-card .article-title { font-size: 1.05rem; font-weight: 700; line-height: 1.3; letter-spacing: -.01em; }
.article-card .article-excerpt { font-size: .88rem; color: var(--ink-2); flex: 1; }
.article-card .article-meta { font-size: .76rem; }

/* ── Pagination ── */
.pagination { display: flex; gap: .75rem; justify-content: center; margin-top: 2.5rem; }
.pagination a {
    background: var(--white); border: 1.5px solid var(--mint-2); color: var(--teal-dark);
    font-weight: 700; font-size: .85rem; padding: .55rem 1.2rem; border-radius: 999px; box-shadow: var(--shadow-sm);
}
.pagination a:hover { background: var(--grad); color: #fff; border-color: transparent; }

/* ── Sidebar ── */
.sidebar { display: flex; flex-direction: column; gap: 1.5rem; }
.sidebar-block { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1.25rem 1.3rem; box-shadow: var(--shadow-sm); }
.sidebar-title { font-size: 1rem; font-weight: 800; color: var(--ink); margin-bottom: .9rem; padding-bottom: .7rem; border-bottom: 2px solid var(--mint-2); display: flex; align-items: center; gap: .5rem; }
.sidebar-title::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--grad); }
.sidebar-list { list-style: none; display: flex; flex-direction: column; }
.sidebar-list li { padding: .6rem 0; border-bottom: 1px solid var(--line); }
.sidebar-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.sidebar-list li:first-child { padding-top: 0; }
.item-title { font-size: .92rem; font-weight: 700; line-height: 1.35; }
.item-title a:hover { color: var(--teal-dark); }
.item-meta { font-size: .74rem; color: var(--ink-3); font-weight: 600; margin-top: .2rem; }

/* ── Health tip callout ── */
.health-tip { background: var(--grad); color: #fff; border-radius: var(--radius-sm); padding: 1.4rem; box-shadow: var(--shadow); }
.health-tip .tip-label { font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; opacity: .9; display: flex; align-items: center; gap: .4rem; }
.health-tip .tip-label svg { width: 16px; height: 16px; }
.health-tip h3 { font-size: 1.15rem; font-weight: 800; margin: .5rem 0; line-height: 1.25; }
.health-tip p { font-size: .9rem; opacity: .95; }

/* ── Verified badge ── */
.verified { display: inline-flex; align-items: center; gap: .35rem; font-size: .74rem; font-weight: 700; color: var(--teal-dark); background: var(--mint); padding: .25rem .65rem; border-radius: 999px; }
.verified svg { width: 14px; height: 14px; }

/* ── Single article ── */
.article-single { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem 2.25rem 2.5rem; box-shadow: var(--shadow-sm); }
.breadcrumbs { font-size: .8rem; color: var(--ink-3); font-weight: 600; margin-bottom: 1.25rem; display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.breadcrumbs a:hover { color: var(--teal-dark); }
.breadcrumbs .sep { color: var(--mint-2); }
.breadcrumbs .current { color: var(--ink-2); }
.article-single .article-title { font-size: 2.1rem; font-weight: 800; line-height: 1.15; letter-spacing: -.02em; margin: .6rem 0 .9rem; }
.article-single > .article-meta { margin-bottom: 1.5rem; }
.article-hero { margin: 0 0 1.75rem; border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--shadow-sm); }
.article-hero img { width: 100%; }

.article-body { font-size: 1.08rem; line-height: 1.8; color: var(--ink); }
.article-body p { margin: 0 0 1.25rem; }
.article-body h2 { font-size: 1.5rem; font-weight: 800; margin: 2rem 0 .9rem; color: var(--ink); }
.article-body h3 { font-size: 1.2rem; font-weight: 700; margin: 1.5rem 0 .7rem; }
.article-body ul, .article-body ol { margin: 0 0 1.25rem 1.25rem; }
.article-body li { margin-bottom: .5rem; }
.article-body a { color: var(--sky); font-weight: 600; text-decoration: underline; text-decoration-color: var(--mint-2); text-underline-offset: 3px; }
.article-body a:hover { text-decoration-color: var(--sky); }
.article-body blockquote { border-left: 4px solid var(--teal); background: var(--mint); padding: 1rem 1.25rem; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin: 0 0 1.25rem; color: var(--ink-2); font-style: italic; }
.article-body img { border-radius: var(--radius-sm); margin: 1.25rem 0; }

/* ── Related ── */
.related-list { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(180px,1fr)); gap: 1rem; margin: 1rem 0 2rem; }
.article-single h2 { font-size: 1.3rem; font-weight: 800; margin-top: 2rem; }
.related-list li { background: var(--mint); border-radius: var(--radius-sm); padding: .9rem 1rem; font-weight: 700; font-size: .92rem; line-height: 1.3; transition: background .15s; }
.related-list li:hover { background: var(--mint-2); }

/* ── Team (redaktsiya) ── */
.team { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px,1fr)); gap: 1.25rem; margin: 1.25rem 0 2rem; }
.team-member { background: var(--mint); border-radius: var(--radius-sm); padding: 1.25rem; border: 1px solid var(--mint-2); }
.team-member .avatar { width: 48px; height: 48px; border-radius: 14px; background: var(--grad); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 1.1rem; margin-bottom: .75rem; }
.team-member .role { font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--teal-dark); }
.team-member .name { font-size: 1.1rem; font-weight: 800; margin: .15rem 0 .5rem; }
.team-member p { font-size: .88rem; color: var(--ink-2); }

/* ── Footer ── */
.site-footer { background: var(--teal-deep); color: #cdeee7; margin-top: 2rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; padding: 2.75rem 0 2rem; }
.footer-brand .site-name { color: #fff; margin-bottom: .6rem; }
.footer-brand .site-name b { color: #6ff0db; }
.footer-brand p { font-size: .9rem; color: #9fd6cc; max-width: 30ch; }
.footer-nav-title { font-size: .8rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: #fff; margin-bottom: .9rem; }
.footer-nav { list-style: none; display: flex; flex-direction: column; gap: .55rem; }
.footer-nav a { font-size: .9rem; color: #b9e4db; }
.footer-nav a:hover { color: #fff; }
.footer-disclaimer { font-size: .8rem; color: #7fc4b8; border-top: 1px solid rgba(255,255,255,.12); padding: 1.1rem 0; line-height: 1.6; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .75rem; font-size: .8rem; color: #7fc4b8; padding: 1.1rem 0 2rem; border-top: 1px solid rgba(255,255,255,.12); }

/* ── Search heading ── */
.search-heading { font-size: 1.6rem; font-weight: 800; margin-bottom: 1.5rem; }

/* ── Responsive ── */
@media (max-width: 980px) {
    .main-grid { grid-template-columns: 1fr; }
    .sidebar { flex-direction: row; flex-wrap: wrap; }
    .sidebar-block, .health-tip { flex: 1 1 240px; }
}
@media (max-width: 680px) {
    .header-top { flex-wrap: wrap; }
    .search-form { order: 3; width: 100%; min-width: 0; }
    .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .featured-article .article-title { font-size: 1.5rem; }
    .article-single { padding: 1.4rem 1.25rem 1.75rem; }
    .article-single .article-title { font-size: 1.6rem; }
    .topbar-inner { gap: 1rem; font-size: .74rem; }
}