/* Kent Creative: токены и вёрстка по разделу 6 спека. Цвета и шрифты не менять без спека. */
:root {
  --bg: #FFFFFF;
  --text: #1D1D1B;
  --accent: #B0B442;
  --dark: #1B1817;
  --muted: #666666;
  --line: #DEDEDE;
  --line2: #CCCCCC;
  --col: 800px;
  --wide: 1140px;
}
html, body { background: var(--bg); color: var(--text); margin: 0; }
body {
  font-family: "Inter", system-ui, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, .logo, .card-title, .code, .err-title {
  font-family: "Droid Sans", "Open Sans", Arial, sans-serif;
  font-weight: 700;
  color: var(--text);
  line-height: 1.25;
}
h1 { font-size: 36px; margin: 16px 0 16px; }
h2 { font-size: 26px; margin: 40px 0 14px; }
h3 { font-size: 21px; margin: 28px 0 10px; }
p { margin: 0 0 18px; }
a { color: var(--text); text-decoration-color: var(--accent); text-underline-offset: 3px; }
a:hover, a:focus-visible { color: var(--text); text-decoration-thickness: 2px; }
img { max-width: 100%; height: auto; display: block; }
figure { margin: 0; }
figcaption { font-size: 13px; color: var(--muted); margin-top: 8px; }

.wrap { max-width: var(--wide); margin: 0 auto; padding: 0 24px; box-sizing: border-box; }
.prose { max-width: var(--col); margin: 0 auto; }
.center { text-align: center; padding-top: 72px; min-height: 60vh; }

/* шапка: служебная строка 36 px, логотип, меню в один ряд */
.site-head { text-align: center; background: var(--bg); }
.top {
  height: 36px; line-height: 36px; font-size: 12px; color: var(--muted);
  text-align: left; padding: 0 24px; box-sizing: border-box; border-bottom: 1px solid var(--line);
}
.top a { color: var(--muted); text-decoration: none; }
.top a:hover { color: var(--text); }
.logo { display: inline-block; font-size: 24px; text-decoration: none; margin: 22px 0 24px; color: var(--text); }
.menu-wrap { border-bottom: 1px solid var(--line); padding-bottom: 14px; }
.menu { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 30px; }
.menu a {
  font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none;
  color: var(--text); padding-bottom: 3px;
}
.menu a:hover { color: var(--text); border-bottom: 2px solid var(--accent); }
.menu a[aria-current="page"] { border-bottom: 2px solid var(--accent); }
.menu a.cta { border: 1px solid var(--text); padding: 6px 14px; border-radius: 2px; }
.menu a.cta:hover { background: var(--accent); border-color: var(--accent); border-bottom: 1px solid var(--accent); }

/* хлебные крошки 13 px, #666666 */
.crumbs { font-size: 13px; color: var(--muted); margin: 20px 0 12px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--text); }
.crumbs .sep { margin: 0 6px; }

/* фото: 21:9 для главной и разделов, 16:9 для статьи */
.lead { margin: 0 0 32px; }
.lead img { width: 100%; height: auto; object-fit: cover; }
.r219 img { aspect-ratio: 21 / 9; }
.r169 img { aspect-ratio: 16 / 9; }

/* текст статьи */
.body p, .prose > p { font-size: 17px; line-height: 1.65; }
.body blockquote {
  border-left: 3px solid var(--accent); padding: 4px 0 4px 16px; margin: 24px 0; font-style: italic; color: var(--text);
}
.body ul, .body ol { padding-left: 22px; margin: 0 0 18px; }
.body li { margin-bottom: 6px; }
.body ul li::marker { color: var(--accent); }

/* карточки 3 в ряд, 2 на планшете, 1 на телефоне */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 32px 0 0; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: 2px; box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  text-decoration: none; color: var(--text); display: flex; flex-direction: column; overflow: hidden;
}
.card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.card:hover { border-color: var(--accent); }
.card:hover .card-title { text-decoration: underline; text-decoration-color: var(--accent); }
.card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; }
.card-title { font-size: 18px; }
.card-desc { font-size: 15px; color: var(--muted); }
.more { font-size: 22px; margin-top: 48px; }

/* главная */
.home-h1 { text-align: center; margin: 28px 0 10px; }
.sub { text-align: center; font-size: 18px; color: var(--muted); max-width: 720px; margin: 0 auto 36px; }
.sections { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin: 0 0 40px; }
.section-card img { aspect-ratio: 4 / 3; }
.section-card .card-title { font-size: 20px; }
.invite { text-align: center; border-top: 1px solid var(--line); margin-top: 56px; padding-top: 32px; }
.center-btn { text-align: center; margin: 32px 0 0; }

/* контурная кнопка: рамка #1D1D1B, при наведении заливка #B0B442 */
.btn {
  display: inline-block; border: 1px solid var(--text); color: var(--text); padding: 10px 22px; border-radius: 2px;
  text-decoration: none; font-size: 14px; letter-spacing: 0.04em; background: #fff;
}
.btn:hover { background: var(--accent); color: var(--text); }

/* подвал: тёмный блок, верхняя полоса 3 px #B0B442 */
.site-foot {
  background: var(--dark); color: #fff; text-align: center; border-top: 3px solid var(--accent);
  padding: 48px 24px; margin-top: 64px;
}
.site-foot .logo { color: #fff; font-size: 20px; margin: 0 0 16px; }
.site-foot p { margin: 0 0 14px; }
.site-foot .about { font-size: 13px; color: #CCCCCC; max-width: 680px; margin: 0 auto 14px; }
.site-foot .contact, .site-foot .links { font-size: 14px; }
.site-foot a { color: #fff; }
.site-foot .copy { font-size: 12px; color: #999999; margin-top: 18px; }

/* список «Смотрите также» на хабах: маркер #B0B442 */
.see-also { list-style: none; padding: 0; margin: 0 0 24px; }
.see-also li { padding: 6px 0 6px 22px; position: relative; font-size: 16px; }
.see-also li::before { content: ""; position: absolute; left: 0; top: 14px; width: 8px; height: 8px; background: var(--accent); }

/* форма контакта (mailto) */
.contact-form { display: grid; gap: 16px; margin: 24px 0 12px; max-width: 560px; }
.contact-form label { display: grid; gap: 6px; font-size: 14px; color: var(--muted); }
.contact-form input, .contact-form textarea {
  font: inherit; font-size: 16px; color: var(--text); border: 1px solid var(--text); border-radius: 2px;
  padding: 10px 12px; background: #fff;
}
.contact-form button { justify-self: start; cursor: pointer; }
.form-note { font-size: 14px; color: var(--muted); }

/* 404 / 410 */
.err .code { font-size: 88px; color: var(--accent); margin: 24px 0 0; line-height: 1; }
.err .err-title { font-size: 24px; margin: 12px 0 10px; }
.err-links { margin-top: 24px; font-size: 14px; }

/* планшет: 2 колонки карточек */
@media (max-width: 1024px) and (min-width: 721px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
}
/* телефон */
@media (max-width: 720px) {
  body { font-size: 16px; }
  h1 { font-size: 30px; }
  h2 { font-size: 24px; }
  .wrap { padding: 0 16px; }
  .r219 img { aspect-ratio: 4 / 3; }
  .cards, .sections { grid-template-columns: 1fr; }
  .menu { gap: 8px 16px; }
  .menu a { font-size: 12px; }
  .top { font-size: 11px; }
}
