/* Шрифты хранятся на сайте (src/fonts/), а не грузятся с Google: так IP посетителей не уходят за рубеж.
   Playfair Display и Source Sans 3 — лицензия SIL Open Font License, тексты лицензий в /fonts/. */
@font-face{font-family:'Playfair Display';font-style:normal;font-weight:400 700;font-display:swap;src:url(/fonts/playfair-display-normal-cyrillic.woff2) format('woff2');unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116}
@font-face{font-family:'Playfair Display';font-style:normal;font-weight:400 700;font-display:swap;src:url(/fonts/playfair-display-normal-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'Playfair Display';font-style:normal;font-weight:400 700;font-display:swap;src:url(/fonts/playfair-display-normal-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'Playfair Display';font-style:italic;font-weight:400;font-display:swap;src:url(/fonts/playfair-display-italic-cyrillic.woff2) format('woff2');unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116}
@font-face{font-family:'Playfair Display';font-style:italic;font-weight:400;font-display:swap;src:url(/fonts/playfair-display-italic-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'Playfair Display';font-style:italic;font-weight:400;font-display:swap;src:url(/fonts/playfair-display-italic-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'Source Sans 3';font-style:normal;font-weight:300 700;font-display:swap;src:url(/fonts/source-sans-3-normal-cyrillic-ext.woff2) format('woff2');unicode-range:U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F}
@font-face{font-family:'Source Sans 3';font-style:normal;font-weight:300 700;font-display:swap;src:url(/fonts/source-sans-3-normal-cyrillic.woff2) format('woff2');unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116}
@font-face{font-family:'Source Sans 3';font-style:normal;font-weight:300 700;font-display:swap;src:url(/fonts/source-sans-3-normal-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'Source Sans 3';font-style:normal;font-weight:300 700;font-display:swap;src:url(/fonts/source-sans-3-normal-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}

/* Общие стили всех страниц: переменные, сброс, верхняя полоса, шапка, подвал.
   Стили конкретной страницы лежат в её <style> в src/pages/. */

:root{
  --navy:#003A70;--blue:#1A5FB4;--iris:#2E86C1;--sky:#5DADE2;
  --light:#F0F5FB;--white:#FFFFFF;--dark:#111827;--muted:#6B7A8D;
  --border:#DDE6F0;--red:#C0392B;--orange:#E67E22;--green:#27AE60;
}
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{font-family:"Source Sans 3",sans-serif;color:var(--dark);background:var(--white);line-height:1.6;font-size:16px}

/* TOPBAR */
.topbar{background:var(--navy);color:rgba(255,255,255,.7);font-size:13px;padding:7px 0}
.topbar-inner{max-width:1200px;margin:0 auto;padding:0 24px;display:flex;justify-content:space-between;align-items:center}
.topbar a{color:rgba(255,255,255,.7);text-decoration:none}
.topbar a:hover{color:#fff}
.topbar-social{display:flex;gap:10px}
.topbar-social a{width:24px;height:24px;border-radius:50%;background:rgba(255,255,255,.15);display:flex;align-items:center;justify-content:center;font-size:11px;transition:background .2s}
.topbar-social a:hover{background:var(--iris)}

/* HEADER */
header{background:var(--white);border-bottom:1px solid var(--border);position:sticky;top:0;z-index:100;box-shadow:0 2px 12px rgba(0,58,112,.08)}
.header-inner{max-width:1200px;margin:0 auto;padding:0 24px;display:flex;align-items:center;gap:24px;height:72px}
.logo-wrap{display:flex;align-items:center;gap:12px;text-decoration:none;flex-shrink:0}
.logo-wrap img{height:50px;width:auto}
.logo-text{display:flex;flex-direction:column;line-height:1.2}
.logo-title{font-family:"Playfair Display",serif;font-size:17px;font-weight:700;color:var(--navy)}
.logo-sub{font-size:11px;color:var(--muted);letter-spacing:.04em;text-transform:uppercase}
nav{display:flex;gap:2px;flex:1}
nav a{font-size:14px;color:var(--dark);text-decoration:none;padding:6px 11px;border-radius:6px;white-space:nowrap;transition:color .2s,background .2s}
nav a:hover{color:var(--navy);background:var(--light)}
nav a[aria-current="page"]{color:var(--navy);font-weight:700;background:var(--light)}
.header-cta{background:var(--red);color:#fff;padding:9px 22px;border-radius:6px;font-size:14px;font-weight:600;text-decoration:none;white-space:nowrap;flex-shrink:0;transition:background .2s}
.header-cta:hover{background:#a93226}
.header-cta[aria-current="page"]{background:var(--blue)}
.nav-toggle{display:none;flex-shrink:0;width:40px;height:40px;align-items:center;justify-content:center;background:none;border:1px solid var(--border);border-radius:6px;color:var(--navy);font-size:20px;line-height:1;cursor:pointer}

/* FOOTER */
footer{background:#0a1929;color:rgba(255,255,255,.7);padding:56px 24px 28px}
.footer-inner{max-width:1200px;margin:0 auto}
.footer-grid{display:grid;grid-template-columns:2fr 1fr 1fr 1fr;gap:48px;margin-bottom:44px}
.footer-brand .logo-wrap img{height:44px;filter:brightness(0) invert(1);opacity:.8}
.footer-brand .logo-title{color:#fff}
.footer-brand .logo-sub{color:rgba(255,255,255,.5)}
.footer-brand p{font-size:14px;line-height:1.7;max-width:280px;margin-top:14px}
.footer-col h4{font-size:13px;text-transform:uppercase;letter-spacing:.09em;color:rgba(255,255,255,.5);font-weight:700;margin-bottom:18px}
.footer-col a{display:block;font-size:14px;color:rgba(255,255,255,.7);text-decoration:none;margin-bottom:10px;transition:color .2s}
.footer-col a:hover{color:var(--sky)}
.footer-address{display:block;font-size:13px;line-height:1.5;color:rgba(255,255,255,.55);margin-bottom:10px}
.footer-docs{display:flex;flex-wrap:wrap;gap:6px 24px;margin-bottom:8px}
.footer-docs a{color:rgba(255,255,255,.6);text-decoration:underline;text-decoration-color:rgba(255,255,255,.25);text-underline-offset:3px;transition:color .2s}
.footer-docs a:hover{color:var(--sky)}
.footer-bottom{border-top:1px solid rgba(255,255,255,.1);padding-top:24px;display:flex;justify-content:space-between;align-items:center;font-size:13px;flex-wrap:wrap;gap:12px}
.footer-legal{color:rgba(255,255,255,.4)}
.footer-regs{display:flex;gap:16px}
.footer-regs span{font-size:12px;color:rgba(255,255,255,.4);background:rgba(255,255,255,.07);padding:5px 12px;border-radius:4px}

/* Меню из 8 пунктов помещается от 1140px; уже — кнопка ☰ и выпадающий список */
/* BREADCRUMB (общий для внутренних страниц) */
.breadcrumb{background:var(--navy);padding:10px 0}
.breadcrumb-inner{max-width:1200px;margin:0 auto;padding:0 24px;font-size:13px;color:rgba(255,255,255,.6)}
.breadcrumb a{color:rgba(255,255,255,.6);text-decoration:none}
.breadcrumb a:hover{color:#fff}
.breadcrumb span{margin:0 8px}

/* NEWS: карточки (главная и news.html) */
.news-grid{display:grid;grid-template-columns:1fr 1fr 1fr;gap:24px}
.news-card{background:var(--white);border-radius:12px;overflow:hidden;border:1px solid var(--border);text-decoration:none;display:flex;flex-direction:column;transition:transform .2s,box-shadow .2s}
.news-card:hover{transform:translateY(-4px);box-shadow:0 12px 32px rgba(0,58,112,.12)}
.news-card-img{aspect-ratio:3/2;background:linear-gradient(135deg,#1a4b8c,#2e86c1);position:relative;display:flex;align-items:center;justify-content:center;font-size:48px;overflow:hidden}
.news-card-img img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.news-card-tag{position:absolute;top:12px;left:12px;z-index:1;background:var(--navy);color:#fff;font-size:11px;padding:4px 10px;border-radius:4px;text-transform:uppercase;letter-spacing:.06em;font-weight:600}
.news-card-img img~.news-card-tag{left:auto;right:12px}
.news-card-body{padding:22px;flex:1;display:flex;flex-direction:column}
.news-date{font-size:12px;color:var(--muted);margin-bottom:8px}
.news-title{font-family:"Playfair Display",serif;font-size:17px;font-weight:600;color:var(--dark);line-height:1.4;flex:1}
.news-excerpt{font-size:14px;color:var(--muted);margin-top:10px;line-height:1.6}
.news-link{margin-top:16px;font-size:13px;font-weight:600;color:var(--iris)}

/* ARTICLE: страница новости */
.article{max-width:780px;margin:0 auto;padding:48px 24px 72px}
.article-date{font-size:13px;color:var(--muted);margin-bottom:10px}
.article h1{font-family:"Playfair Display",serif;font-size:36px;font-weight:700;color:var(--navy);line-height:1.25;margin-bottom:26px}
.article-cover{display:block;width:100%;height:auto;border-radius:14px;border:1px solid var(--border);margin-bottom:30px}
.article-body p{font-size:17px;line-height:1.8;color:#333;margin-bottom:18px}
.article-body ul{margin:0 0 18px 22px}
.article-body li{font-size:17px;line-height:1.75;color:#333;margin-bottom:8px}
.article-body a{color:var(--iris)}
.article-source{margin-top:32px;padding-top:20px;border-top:1px solid var(--border);font-size:14px;color:var(--muted)}
.article-source a{color:var(--iris)}
.article-back{display:inline-block;margin-top:28px;color:var(--navy);font-weight:600;text-decoration:none}
.article-back:hover{color:var(--iris)}

@media(max-width:1140px){
  .header-inner{position:relative}
  .header-cta{margin-left:auto}
  .nav-toggle{display:flex}
  nav{display:none;position:absolute;top:100%;left:0;right:0;flex-direction:column;gap:0;padding:8px 16px 14px;background:var(--white);border-bottom:1px solid var(--border);box-shadow:0 12px 24px rgba(0,58,112,.10)}
  .nav-open nav{display:flex}
  nav a{padding:11px 12px;font-size:15px}
}
@media(max-width:900px){
  .footer-grid{grid-template-columns:1fr 1fr}
  .news-grid{grid-template-columns:1fr 1fr}
}
@media(max-width:600px){
  .news-grid{grid-template-columns:1fr}
  .article{padding:32px 16px 56px}
  .article h1{font-size:28px}
  .topbar-inner,.header-inner{padding:0 16px}
  .header-inner{gap:10px}
  header .logo-wrap{flex-shrink:1;min-width:0;gap:8px}
  header .logo-wrap img{height:40px}
  header .logo-title{font-size:15px}
  header .logo-sub{display:none}
  .header-cta{padding:8px 14px}
  .footer-grid{grid-template-columns:1fr}
  .footer-regs{flex-wrap:wrap}
}
