/* JTCC Outreach: вёрстка по листу «дизайн» ТЗ. Шрифт Inter - свой, с этого домена. */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/assets/fonts/inter-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/assets/fonts/inter-400-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-024F, U+1E00-1EFF, U+2020, U+20A0-20AB; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("/assets/fonts/inter-600-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("/assets/fonts/inter-600-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-024F, U+1E00-1EFF, U+2020, U+20A0-20AB; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("/assets/fonts/inter-700-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("/assets/fonts/inter-700-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-024F, U+1E00-1EFF, U+2020, U+20A0-20AB; }

:root {
  --bg: #FFFFFF;
  --text: #222222;
  --accent: #2E6699;
  --accent-dark: #1F4A70;
  --muted: #666666;
  --border: #CCCCCC;
  --block: #F5F5F5;
  --foot: #333333;
  --foot-text: #CCCCCC;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --bg: #FFFFFF; --text: #222222; }
}
:root[data-theme="dark"] { --bg: #FFFFFF; --text: #222222; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: #FFFFFF;
  color: var(--text);
  font-family: "Inter", Arial, sans-serif;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
a:hover { color: var(--accent-dark); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

h1, h2, h3 { font-weight: 700; line-height: 1.25; color: var(--text); margin: 0 0 16px; }
h1 { font-size: 36px; margin-top: 32px; }
h2 { font-size: 26px; margin-top: 40px; }
h3 { font-size: 20px; font-weight: 600; margin-top: 24px; }
p { margin: 0 0 16px; }
ul { margin: 0 0 16px; padding-left: 22px; }
li { margin-bottom: 6px; }

.jt-skip { position: absolute; left: -9999px; top: 0; background: #FFFFFF; padding: 8px 12px; z-index: 100; }
.jt-skip:focus { left: 12px; top: 12px; }

/* Контейнер контента: 1200px по центру (main), внутри - отступ 20px */
body { overflow-x: clip; }
main { max-width: 1200px; margin: 0 auto; }
.jt-wrap { margin: 0; padding: 0 20px; }

/* Шапка: липкая, белая, лёгкая тень, граница #CCCCCC */
.jt-head { position: sticky; top: 0; z-index: 50; background: #FFFFFF; border-bottom: 1px solid #CCCCCC; box-shadow: 0 1px 6px rgba(0, 0, 0, 0.08); }
.jt-bar { max-width: 1200px; margin: 0 auto; padding: 16px 20px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.jt-logo { font-size: 24px; font-weight: 700; color: #222222; text-decoration: none; }
.jt-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 24px; }
.jt-nav li { margin: 0; }
.jt-nav a { color: #222222; text-decoration: none; font-size: 15px; font-weight: 600; }
.jt-nav a:hover, .jt-nav a.is-active { color: var(--accent); }
.jt-burger { display: none; background: none; border: 1px solid var(--border); border-radius: 4px; padding: 6px 12px; font: inherit; color: #222222; cursor: pointer; }

/* Хлебные крошки: 14px, #666666, разделитель «/» */
.jt-crumbs { font-size: 14px; color: var(--muted); margin: 24px 0 8px; }
.jt-crumbs a { color: var(--accent); text-decoration: none; }
.jt-crumbs .sep { margin: 0 6px; }
.jt-crumbs [aria-current="page"] { color: #222222; }

/* Главная: hero 400-500px, одно фото, текст белый с тенью */
.jt-hero { position: relative; width: 100vw; margin-left: calc(50% - 50vw); height: 450px; overflow: hidden; background: #333333; }
.jt-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.jt-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.1)); }
.jt-hero-text { position: relative; z-index: 1; max-width: 1200px; margin: 0 auto; padding: 0 20px; height: 100%; display: flex; flex-direction: column; justify-content: center; color: #FFFFFF; text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6); }
.jt-hero-text h1 { color: #FFFFFF; margin-top: 0; max-width: 760px; }
.jt-hero-text p { font-size: 18px; max-width: 680px; margin: 0; }

/* Текст статьи */
.jt-prose { max-width: 100%; }
.jt-prose section { margin-bottom: 8px; }
.jt-figure { margin: 16px 0 24px; }
.jt-figure img { width: 100%; height: auto; border-radius: 8px; }
.jt-layout { display: block; }
.jt-aside { margin: 32px 0 0; padding: 20px; background: var(--block); border-radius: 8px; }
.jt-aside-title { font-weight: 700; margin-bottom: 12px; }
.jt-aside ul { margin: 0; padding-left: 18px; }
.jt-back { margin: 32px 0 48px; }

/* Сетка карточек: 3 / 2 / 1, зазор 24px */
.jt-cards-wrap { margin: 48px 0 8px; scroll-margin-top: 96px; }
.jt-section-title { margin-top: 0; }
.jt-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.jt-card { display: block; background: #FFFFFF; border-radius: 8px; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08); overflow: hidden; text-decoration: none; color: var(--text); transition: box-shadow 0.2s; }
.jt-card:hover { box-shadow: 0 6px 20px rgba(0, 0, 0, 0.16); }
.jt-card:hover .jt-card-title { color: var(--accent); }
.jt-card-img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.jt-card-body { display: block; padding: 16px 18px 20px; }
.jt-card-title { display: block; font-size: 18px; font-weight: 700; color: #222222; margin-bottom: 8px; }
.jt-card-text { display: block; font-size: 14px; color: #666666; margin-bottom: 12px; }
.jt-card-more { display: block; font-size: 14px; color: var(--accent); font-weight: 600; }
.jt-resource-list { padding-left: 22px; }

/* Кнопки: фон #2E6699, текст белый */
.jt-btn { display: inline-block; background: var(--accent); color: #FFFFFF; padding: 12px 22px; border-radius: 4px; text-decoration: none; font-weight: 600; }
.jt-btn:hover { background: var(--accent-dark); color: #FFFFFF; }
.jt-cta { margin: 48px 0 8px; padding: 32px 24px; background: var(--block); border-radius: 8px; text-align: center; }
.jt-cta p { margin-bottom: 16px; }

/* Подвал: #333333, текст #CCCCCC */
.jt-foot { background: var(--foot); color: var(--foot-text); margin-top: 64px; padding: 32px 0; font-size: 15px; }
.jt-foot-grid { max-width: 1200px; margin: 0 auto; padding: 0 20px; display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between; }
.jt-foot p { margin: 0; }
.jt-foot a { color: var(--foot-text); }

/* Страницы 404 и 410 */
.jt-error { text-align: center; padding: 96px 20px; }
.jt-error h1 { font-size: 32px; }
.jt-error p { font-size: 16px; margin-bottom: 24px; }

/* Планшет и телефон */
@media (min-width: 1024px) {
  .jt-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; align-items: start; }
  .jt-aside { margin-top: 8px; }
}
@media (max-width: 1023px) {
  .jt-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767px) {
  body { font-size: 16px; }
  h1 { font-size: 30px; }
  h2 { font-size: 24px; }
  .jt-bar { flex-wrap: wrap; }
  .jt-burger { display: inline-block; }
  .jt-nav { display: none; width: 100%; }
  .jt-nav.is-open { display: block; }
  .jt-nav ul { flex-direction: column; gap: 0; padding: 8px 0; }
  .jt-nav a { display: block; padding: 10px 0; font-size: 16px; }
  .jt-hero { height: 400px; }
  .jt-hero-text p { font-size: 16px; }
  .jt-cards { grid-template-columns: 1fr; }
}
