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

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

:root {
    --orange:    #ff6a00;
    --orange-d:  #e85d00;
    --amber:     #ffb300;
    --yellow:    #ffd400;
    --steel:     #1d2329;
    --steel-2:   #2a323b;
    --steel-3:   #3a444f;
    --concrete:  #f2f1ed;
    --concrete-2:#e6e4dd;
    --ink:       #16191d;
    --ink-2:     #515963;
    --ink-3:     #828a93;
    --line:      #d9d6cd;
    --white:     #ffffff;
    --hazard:    repeating-linear-gradient(-45deg, #ffd400 0 14px, #1d2329 14px 28px);
    --font:      'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --head:      'Oswald', 'Inter', sans-serif;
    --max:       1220px;
    --shadow:    6px 6px 0 rgba(29,35,41,0.10);
    --shadow-h:  10px 10px 0 var(--orange);
}

html { font-size: 16px; }
body {
    font-family: var(--font);
    color: var(--ink);
    background: var(--concrete);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; transition: color .12s; }
a:hover { color: var(--orange); }
img { display: block; max-width: 100%; height: auto; }

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

h1, h2, h3, .article-title, .site-name, .sidebar-title, .section-tag {
    font-family: var(--head); font-weight: 700; letter-spacing: .01em;
}

/* ── Top bar ── */
.topbar { background: var(--steel); color: #cfd4da; font-size: .8rem; font-weight: 600; border-bottom: 4px solid var(--orange); }
.topbar-inner { display: flex; flex-wrap: wrap; gap: 1.6rem; align-items: center; justify-content: center; padding: .5rem 0; }
.topbar-item { display: inline-flex; align-items: center; gap: .45rem; text-transform: uppercase; letter-spacing: .03em; }
.topbar-item svg { width: 16px; height: 16px; color: var(--amber); flex: none; }

/* ── Hazard strip ── */
.hazard { height: 8px; background: var(--hazard); }

/* ── Header ── */
.site-header { background: var(--white); border-bottom: 3px solid var(--steel); position: sticky; top: 0; z-index: 50; }
.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: .8rem; }
.brand-mark {
    width: 46px; height: 46px; background: var(--orange); color: #fff; display: grid; place-items: center;
    flex: none; box-shadow: 4px 4px 0 var(--steel);
}
.brand-mark svg { width: 28px; height: 28px; }
.site-name { font-size: 1.9rem; font-weight: 700; text-transform: uppercase; line-height: .95; color: var(--steel); }
.site-name a { color: inherit; }
.site-name b { color: var(--orange); }
.site-logo img { max-height: 48px; width: auto; }

.search-form { display: flex; align-items: stretch; border: 2px solid var(--steel); min-width: 240px; }
.search-form input { border: 0; background: var(--white); font: inherit; font-size: .9rem; padding: .5rem .8rem; width: 100%; outline: none; }
.search-form input::placeholder { color: var(--ink-3); }
.search-form button { border: 0; cursor: pointer; width: 42px; background: var(--orange); color: #fff; display: grid; place-items: center; flex: none; }
.search-form button:hover { background: var(--steel); }

/* ── Nav ── */
.site-nav { background: var(--steel); }
.nav-inner { display: flex; flex-wrap: wrap; }
.site-nav a {
    font-family: var(--head); font-size: .92rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em;
    color: #e4e7ea; padding: .7rem 1.1rem; border-right: 1px solid var(--steel-3); white-space: nowrap;
}
.site-nav a:hover { background: var(--orange); color: #fff; }

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

/* ── Category tag ── */
.article-category {
    display: inline-block; font-family: var(--head); font-size: .72rem; font-weight: 600; text-transform: uppercase;
    letter-spacing: .08em; color: #fff; background: var(--orange); padding: .28rem .7rem;
}

/* ── Featured ── */
.featured-article { background: var(--white); border: 2px solid var(--steel); box-shadow: var(--shadow); margin-bottom: 2rem; }
.featured-image { display: block; aspect-ratio: 16/8; overflow: hidden; border-bottom: 4px solid var(--orange); }
.featured-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.featured-article:hover .featured-image img { transform: scale(1.04); }
.featured-article > .article-category { margin: 1.4rem 1.4rem 0; }
.featured-article .article-title { font-size: 2.1rem; line-height: 1.05; text-transform: uppercase; margin: .7rem 1.4rem .5rem; color: var(--steel); }
.featured-article .article-excerpt { color: var(--ink-2); font-size: 1.04rem; margin: 0 1.4rem; }
.featured-article .article-meta { margin: 1rem 1.4rem 1.4rem; }

.article-meta { font-size: .8rem; color: var(--ink-3); font-weight: 600; text-transform: uppercase; letter-spacing: .03em; display: flex; gap: .8rem; flex-wrap: wrap; align-items: center; }
.article-meta .byline { color: var(--orange-d); }

.read-more {
    display: inline-flex; align-items: center; gap: .5rem; margin: 0 1.4rem 1.4rem;
    background: var(--orange); color: #fff; font-family: var(--head); font-weight: 600; text-transform: uppercase;
    letter-spacing: .04em; font-size: .9rem; padding: .65rem 1.4rem; box-shadow: 4px 4px 0 var(--steel);
}
.read-more:hover { color: #fff; background: var(--steel); box-shadow: 4px 4px 0 var(--orange); }

/* ── Cards grid ── */
.articles-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px,1fr)); gap: 1.5rem; }
.article-card { background: var(--white); border: 2px solid var(--steel); border-top: 5px solid var(--orange); display: flex; flex-direction: column; transition: transform .15s, box-shadow .15s; }
.article-card:hover { transform: translate(-3px,-3px); box-shadow: 6px 6px 0 var(--orange); }
.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: .55rem; flex: 1; }
.article-card .article-title { font-size: 1.15rem; line-height: 1.1; text-transform: uppercase; color: var(--steel); }
.article-card .article-title a:hover { color: var(--orange); }
.article-card .article-excerpt { font-size: .88rem; color: var(--ink-2); flex: 1; }
.article-card .article-meta { font-size: .72rem; }

/* ── Pagination ── */
.pagination { display: flex; gap: .75rem; justify-content: center; margin-top: 2.5rem; }
.pagination a { font-family: var(--head); text-transform: uppercase; font-weight: 600; font-size: .85rem; padding: .6rem 1.3rem; background: var(--white); border: 2px solid var(--steel); }
.pagination a:hover { background: var(--orange); color: #fff; border-color: var(--orange); }

/* ── Sidebar ── */
.sidebar { display: flex; flex-direction: column; gap: 1.5rem; }
.sidebar-block { background: var(--white); border: 2px solid var(--steel); padding: 1.2rem 1.3rem; }
.sidebar-title { font-size: 1.1rem; text-transform: uppercase; color: var(--steel); margin-bottom: .9rem; padding-bottom: .6rem; border-bottom: 3px solid var(--orange); }
.sidebar-list { list-style: none; }
.sidebar-list li { padding: .65rem 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-family: var(--head); font-size: .98rem; font-weight: 600; line-height: 1.2; text-transform: uppercase; }
.item-title a:hover { color: var(--orange); }
.item-meta { font-size: .72rem; color: var(--ink-3); font-weight: 600; margin-top: .2rem; text-transform: uppercase; }

/* ── Tip callout ── */
.tip { background: var(--steel); color: #fff; padding: 1.4rem; border-left: 8px solid var(--orange); }
.tip .tip-label { font-family: var(--head); font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--amber); display: flex; align-items: center; gap: .45rem; }
.tip .tip-label svg { width: 16px; height: 16px; }
.tip h3 { font-size: 1.2rem; text-transform: uppercase; margin: .5rem 0; line-height: 1.05; }
.tip p { font-size: .9rem; color: #c8cdd3; }

/* ── Verified badge ── */
.verified { display: inline-flex; align-items: center; gap: .35rem; font-family: var(--head); font-size: .72rem; font-weight: 600; text-transform: uppercase; color: var(--steel); background: var(--yellow); padding: .25rem .6rem; }
.verified svg { width: 14px; height: 14px; }

/* ── Single article ── */
.article-single { background: var(--white); border: 2px solid var(--steel); padding: 2rem 2.25rem 2.5rem; }
.breadcrumbs { font-size: .76rem; color: var(--ink-3); font-weight: 600; text-transform: uppercase; letter-spacing: .03em; margin-bottom: 1.2rem; display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.breadcrumbs a:hover { color: var(--orange); }
.breadcrumbs .sep { color: var(--orange); }
.breadcrumbs .current { color: var(--ink-2); }
.article-single .article-title { font-size: 2.2rem; line-height: 1.05; text-transform: uppercase; margin: .6rem 0 .9rem; color: var(--steel); }
.article-single > .article-meta { margin-bottom: 1.5rem; }
.article-hero { margin: 0 0 1.75rem; border: 2px solid var(--steel); border-bottom: 5px solid var(--orange); }
.article-hero img { width: 100%; }

.article-body { font-size: 1.07rem; line-height: 1.8; color: var(--ink); }
.article-body p { margin: 0 0 1.25rem; }
.article-body h2 { font-size: 1.6rem; text-transform: uppercase; margin: 2rem 0 .9rem; color: var(--steel); border-left: 5px solid var(--orange); padding-left: .7rem; }
.article-body h3 { font-size: 1.25rem; text-transform: uppercase; margin: 1.5rem 0 .7rem; color: var(--steel); }
.article-body ul, .article-body ol { margin: 0 0 1.25rem 1.25rem; }
.article-body li { margin-bottom: .5rem; }
.article-body a { color: var(--orange-d); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.article-body blockquote { border-left: 6px solid var(--orange); background: var(--concrete); padding: 1rem 1.25rem; margin: 0 0 1.25rem; font-weight: 500; }
.article-body table { width: 100%; border-collapse: collapse; margin: 0 0 1.25rem; font-size: .95rem; }
.article-body th { background: var(--steel); color: #fff; font-family: var(--head); text-transform: uppercase; font-size: .8rem; letter-spacing: .03em; padding: .6rem .8rem; text-align: left; }
.article-body td { border: 1px solid var(--line); padding: .6rem .8rem; }
.article-body img { border: 2px solid var(--steel); margin: 1.25rem 0; }

/* ── Related ── */
.related-list { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px,1fr)); gap: 1rem; margin: 1rem 0 2rem; }
.article-single h2 { font-size: 1.4rem; text-transform: uppercase; margin-top: 2rem; color: var(--steel); }
.related-list li { background: var(--concrete); border-left: 5px solid var(--orange); padding: .9rem 1rem; font-family: var(--head); font-weight: 600; font-size: .95rem; line-height: 1.15; text-transform: uppercase; }
.related-list li:hover { background: var(--concrete-2); }

/* ── Team (redaktsiya) ── */
.team { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px,1fr)); gap: 1.25rem; margin: 1.25rem 0 2rem; }
.team-member { background: var(--concrete); border: 2px solid var(--steel); border-top: 5px solid var(--orange); padding: 1.25rem; }
.team-member .avatar { width: 50px; height: 50px; background: var(--orange); color: #fff; display: grid; place-items: center; font-family: var(--head); font-weight: 700; font-size: 1.15rem; margin-bottom: .75rem; box-shadow: 3px 3px 0 var(--steel); }
.team-member .role { font-family: var(--head); font-size: .74rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--orange-d); }
.team-member .name { font-family: var(--head); font-size: 1.15rem; font-weight: 700; text-transform: uppercase; margin: .15rem 0 .5rem; color: var(--steel); }
.team-member p { font-size: .88rem; color: var(--ink-2); }

/* ── Footer ── */
.site-footer { background: var(--steel); color: #b7bdc4; margin-top: 2rem; border-top: 8px solid var(--orange); }
.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: var(--orange); }
.footer-brand p { font-size: .9rem; color: #9aa1a9; max-width: 32ch; }
.footer-nav-title { font-family: var(--head); font-size: .85rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--amber); margin-bottom: .9rem; }
.footer-nav { list-style: none; display: flex; flex-direction: column; gap: .55rem; }
.footer-nav a { font-size: .9rem; color: #b7bdc4; }
.footer-nav a:hover { color: var(--orange); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .75rem; font-size: .8rem; color: #828a93; padding: 1.1rem 0 2rem; border-top: 1px solid var(--steel-3); text-transform: uppercase; letter-spacing: .02em; }

.search-heading { font-size: 1.7rem; text-transform: uppercase; margin-bottom: 1.5rem; color: var(--steel); }

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