@font-face{font-family:"Literata";font-style:normal;font-weight:400 700;font-display:swap;
  src:url(/static/fonts/literata-cyrillic-opsz-normal.woff2) format("woff2");
  unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:"Literata";font-style:normal;font-weight:400 700;font-display:swap;
  src:url(/static/fonts/literata-latin-opsz-normal.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:"Golos Text";font-style:normal;font-weight:400 900;font-display:swap;
  src:url(/static/fonts/golos-text-cyrillic-wght-normal.woff2) format("woff2");
  unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:"Golos Text";font-style:normal;font-weight:400 900;font-display:swap;
  src:url(/static/fonts/golos-text-latin-wght-normal.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:"JetBrains Mono";font-style:normal;font-weight:400;font-display:swap;
  src:url(/static/fonts/jetbrains-mono-cyrillic-400-normal.woff2) format("woff2");
  unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:"JetBrains Mono";font-style:normal;font-weight:400;font-display:swap;
  src:url(/static/fonts/jetbrains-mono-latin-400-normal.woff2) format("woff2");
  unicode-range:U+0000-00FF,U+2000-206F,U+20AC,U+2122,U+2212}

:root{
  --bg:#FFFFFF; --soft:#F3F4F6; --line:#E5E6E9; --ink:#15171C; --ink-2:#3A3E46; --muted:#666A72;
  --link:#C2410C; --btn:#15171C; --btn-ink:#FFFFFF; --btn-hover:#2B2E36;
  --display:"Literata",Georgia,serif; --body:"Golos Text",system-ui,-apple-system,sans-serif;
  --mono:"JetBrains Mono",ui-monospace,Menlo,monospace;
  color-scheme:light;
}
@media (prefers-color-scheme:dark){
  :root{
    --bg:#121316; --soft:#1B1D22; --line:#2A2D33; --ink:#ECEAE4; --ink-2:#C9C6BF; --muted:#8E9198;
    --link:#FF8A3D; --btn:#ECEAE4; --btn-ink:#121316; --btn-hover:#FFFFFF;
    color-scheme:dark;
  }
}

*{box-sizing:border-box;margin:0;padding:0}
html{-webkit-text-size-adjust:100%;scroll-padding-top:24px}
body{background:var(--bg);color:var(--ink);font:400 17px/1.7 var(--body);-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
img{max-width:100%;height:auto;display:block}
a{color:var(--link);text-decoration:none}
a:hover{text-decoration:underline;text-underline-offset:3px}
:focus-visible{outline:2px solid var(--link);outline-offset:3px;border-radius:4px}
.muted{color:var(--muted)}
.wrap{max-width:1120px;margin:0 auto;padding:0 20px}
.narrow{max-width:700px;margin:0 auto;padding:0 20px}
.skip{position:absolute;left:-9999px}
.skip:focus{left:16px;top:12px;background:var(--bg);padding:8px 12px;z-index:10}
h1,h2,h3{font-family:var(--display);font-weight:600;letter-spacing:-.015em;color:var(--ink)}
.kick{display:block;font-size:13.5px;color:var(--muted);margin-bottom:6px;line-height:1.4}

.btn{display:inline-block;background:var(--btn);color:var(--btn-ink);font:500 16px/1 var(--body);padding:16px 24px;border-radius:12px;text-align:center}
.btn:hover{background:var(--btn-hover);text-decoration:none}

/* шапка */
.site-header .wrap{display:flex;align-items:center;gap:32px;height:68px;border-bottom:1px solid var(--line)}
.logo{font:600 19px var(--display);color:var(--ink);letter-spacing:-.01em;white-space:nowrap}
a.logo:hover{text-decoration:none}
.nav{display:flex;gap:24px;font-size:15px;margin-left:auto}
.nav a,.nav-tg{color:var(--muted)}
.nav a:hover,.nav-tg:hover,.nav a[aria-current]{color:var(--ink);text-decoration:none}
.nav-tg{font-size:15px}

/* главная: первый экран */
.hero{display:grid;grid-template-columns:1.25fr 1fr;gap:56px;align-items:end;padding-top:64px;padding-bottom:56px}
.hero-text{padding-bottom:4px}
.proof{font-size:14.5px;color:var(--muted);margin-top:18px}
.hero .word{margin-top:32px;max-width:560px}
.hero-photo{display:block;border-radius:22px;overflow:hidden;background:#fff;aspect-ratio:941/1180;max-height:620px;justify-self:end;width:100%;max-width:440px}
.hero-photo img{width:100%;height:100%;object-fit:cover;object-position:50% 12%}
.hero h1{font-size:clamp(52px,8.4vw,104px);line-height:1;font-weight:500;letter-spacing:-.035em}
.hero-lead{color:var(--muted);font-size:19px;margin-top:28px;max-width:540px}
.byline{display:inline-flex;align-items:center;gap:12px;margin-top:28px;color:var(--ink)}
.byline:hover{text-decoration:none}
.byline img{width:44px;height:44px;border-radius:50%;object-fit:cover}
.byline b{display:block;font-weight:500;font-size:15.5px;line-height:1.3}
.byline .muted{font-size:14px;line-height:1.3}

/* поле кодового слова */
.word{background:var(--soft);border-radius:18px;padding:26px}
.word label{font-weight:600;font-size:16px;display:block}
.word-hint{color:var(--muted);font-size:14.5px;line-height:1.5;margin:4px 0 16px}
.word-form{display:flex;gap:8px}
.word-form input{flex:1;min-width:0;font:400 18px var(--mono);letter-spacing:.04em;text-transform:uppercase;padding:13px 14px;border:1px solid var(--line);border-radius:11px;background:var(--bg);color:var(--ink)}
.word-form input::placeholder{color:var(--muted);opacity:.8}
.word-form button{font:500 16px var(--body);background:var(--btn);color:var(--btn-ink);border:0;border-radius:11px;padding:0 18px;cursor:pointer}
.word-form button:hover{background:var(--btn-hover)}
.word-msg{font-size:14.5px;line-height:1.5;margin-top:12px;min-height:1px}
.word-msg:empty{margin-top:0}

/* главное предложение */
.featured{display:grid;grid-template-columns:1.5fr 1fr;gap:32px;align-items:center;border-top:2px solid var(--ink);border-bottom:1px solid var(--line);padding:32px 0}
.featured h2{font-size:34px;line-height:1.1;margin-bottom:10px}
.featured p{color:var(--ink-2);max-width:600px}
.featured-side{display:flex;flex-direction:column;align-items:flex-end;gap:10px;font-size:14px}

/* секции */
.sec{padding-top:72px}
.sec-h{display:flex;justify-content:space-between;align-items:baseline;margin-bottom:12px}
.sec-h h2{font-size:28px}

.feed{display:grid;grid-template-columns:1.25fr 1fr;gap:48px}
.lead-card{display:flex;flex-direction:column;justify-content:flex-end;min-height:320px;color:var(--ink);background:var(--soft);border-radius:18px;padding:32px;margin-top:16px}
.lead-card:hover{text-decoration:none}
.lead-card h3{font-size:clamp(26px,3vw,34px);line-height:1.15;font-weight:500;letter-spacing:-.02em}
.lead-card p{color:var(--ink-2);margin-top:12px;max-width:520px}
.lead-card:hover h3,.stack a:hover b,.list-item:hover b{text-decoration:underline;text-underline-offset:4px;text-decoration-thickness:1px}
.stack a{display:block;padding:18px 0;border-bottom:1px solid var(--line);color:var(--ink)}
.stack a:hover{text-decoration:none}
.stack b{font:500 19px/1.35 var(--display);display:block}

.rubrics{display:grid;grid-template-columns:repeat(3,1fr);border-top:1px solid var(--line)}
.rubric{padding:24px 28px 8px 0}
.rubric+.rubric{padding-left:28px;border-left:1px solid var(--line)}
.rubric h3{font-size:24px}
.rubric h3 a{color:var(--ink)}
.rubric p{font-size:15px;line-height:1.55;margin-top:6px}
.rubric ul{list-style:none;margin-top:14px}
.rubric li{font-size:15.5px;line-height:1.45;padding:9px 0;border-top:1px solid var(--line)}
.rubric li a{color:var(--ink-2)}
.rubric li a:hover{color:var(--ink)}

.products{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.product{background:var(--soft);border-radius:16px;padding:24px;display:flex;flex-direction:column}
.product h3{font-size:23px;margin-bottom:8px}
.product p{color:var(--ink-2);font-size:15.5px;line-height:1.55;flex:1}
.product a{margin-top:16px;font-weight:500}

.about-short{display:grid;grid-template-columns:240px 1fr;gap:40px;align-items:start;border-top:1px solid var(--line);padding-top:32px}
.about-short img{border-radius:16px;aspect-ratio:4/5;object-fit:cover;object-position:50% 15%;background:#fff}
.about-short h2{font-size:28px;margin-bottom:12px}
.about-short p{color:var(--ink-2);margin-bottom:12px;max-width:620px}

.tg{display:flex;justify-content:space-between;align-items:center;gap:24px;background:var(--soft);border-radius:18px;padding:32px;margin-bottom:24px}
.tg h2{font-size:26px;line-height:1.2;margin-bottom:6px}

/* статья */
.art-head{padding-top:56px;padding-bottom:28px}
.crumbs{font-size:14px;color:var(--muted)}
.art-head h1{font-size:clamp(30px,4.4vw,44px);line-height:1.13;margin:14px 0 16px}
.lead{font:400 20px/1.55 var(--display);color:var(--ink-2)}
.meta{display:flex;align-items:center;gap:12px;margin-top:22px;font-size:14.5px;line-height:1.35}
.meta img{width:36px;height:36px;border-radius:50%;object-fit:cover;object-position:50% 20%;background:#fff}
.meta a{color:var(--ink);font-weight:500;display:block}
.meta .muted{display:block}

.toc{border:1px solid var(--line);border-radius:14px;padding:18px 22px;margin:4px 0 36px}
.toc b{font-size:14px;color:var(--muted);font-weight:500;display:block;margin-bottom:6px}
.toc ol{padding-left:20px;font-size:15.5px;line-height:1.5}
.toc li{margin:5px 0}

.body{font-size:18px;line-height:1.72}
.body p,.body ul,.body ol,.body blockquote{margin:0 0 22px}
.body ul,.body ol{padding-left:24px}
.body li{margin:8px 0}
.body li::marker{color:var(--muted)}
.body h2{font-size:27px;line-height:1.25;margin:48px 0 14px}
.body h3{font-size:21px;line-height:1.3;margin:32px 0 10px}
.body strong,.body b{font-weight:600}
.body blockquote{border-left:3px solid var(--line);padding:2px 0 2px 20px;color:var(--ink-2)}
.body pre{background:var(--soft);border-radius:14px;padding:14px 18px;margin:0 0 22px;font:400 15px/1.6 var(--mono);white-space:pre-wrap;word-break:break-word;overflow-wrap:anywhere}
.body pre code{font:inherit;white-space:inherit}
.body p a,.body li a{text-decoration:underline;text-underline-offset:3px;text-decoration-thickness:1px}
.body .toc a{text-decoration:none}
.body .toc a:hover{text-decoration:underline}

.prompt{background:var(--soft);border-radius:14px;margin:22px 0 26px;overflow:hidden}
.prompt-bar{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:10px 12px 0 18px;font-size:13.5px;color:var(--muted)}
.prompt pre{font:400 15px/1.65 var(--mono);white-space:pre-wrap;word-break:break-word;padding:10px 18px 18px;color:var(--ink)}
.copy{font:500 13px var(--body);background:var(--bg);color:var(--ink);border:1px solid var(--line);border-radius:8px;padding:6px 11px;cursor:pointer}
.copy:hover{border-color:var(--muted)}

.cta{border-top:2px solid var(--ink);margin:56px 0 0;padding-top:28px}
.cta h2{font-size:28px;line-height:1.2;margin:0 0 10px}
.cta p{color:var(--ink-2);font-size:17px;margin-bottom:20px}
.body .share{margin:28px 0 0;font-size:15px}
.related{padding-top:56px}
.related h2{font-size:22px;margin-bottom:4px}

/* списки статей */
.list-head{padding-top:56px;padding-bottom:20px}
.list-head>*{max-width:820px}
.list-head h1{font-size:clamp(32px,4.6vw,48px);line-height:1.1;margin:12px 0 14px}
.list{border-top:1px solid var(--line);max-width:820px}
.list-item{display:block;padding:22px 0;border-bottom:1px solid var(--line);color:var(--ink)}
.list-item:hover{text-decoration:none}
.list-item b{font:500 22px/1.3 var(--display);display:block}
.list-item .muted{display:block;font-size:15.5px;line-height:1.55;margin-top:6px}

.about-page{display:grid;grid-template-columns:320px 1fr;gap:48px;align-items:start;padding-top:56px}
.about-page img{border-radius:18px;aspect-ratio:4/5;object-fit:cover}
.about-page h1{font-size:44px;margin:12px 0 18px}
.about-page p{color:var(--ink-2);margin-bottom:16px;max-width:640px;font-size:18px}
.about-links{margin-top:24px}

/* подвал */
.site-footer{margin-top:96px}
.site-footer .wrap{border-top:1px solid var(--line);padding-top:36px;padding-bottom:48px}
.foot-cols{display:grid;grid-template-columns:1.4fr 1fr 1fr;gap:32px}
.foot-cols p{font-size:14.5px;margin-top:6px;max-width:300px;line-height:1.55}
.foot-cols nav{display:flex;flex-direction:column;gap:8px;font-size:15px}
.foot-cols nav a{color:var(--ink-2)}
.fine{font-size:12.5px;color:var(--muted);margin-top:32px;line-height:1.5}

@media (max-width:900px){
  .nav{display:none}
  .nav-tg{margin-left:auto}
  .hero{grid-template-columns:1fr;gap:32px;padding-top:36px;padding-bottom:40px}
  .hero-photo{order:-1;justify-self:start;max-width:none;aspect-ratio:4/3;border-radius:18px}
  .hero-photo img{object-position:50% 18%}
  .featured{grid-template-columns:1fr;gap:20px}
  .featured-side{align-items:flex-start}
  .feed{grid-template-columns:1fr;gap:8px}
  .rubrics{grid-template-columns:1fr}
  .rubric,.rubric+.rubric{padding:22px 0 8px;border-left:0}
  .rubric+.rubric{border-top:1px solid var(--line)}
  .products{grid-template-columns:1fr}
  .about-short{grid-template-columns:96px 1fr;gap:20px}
  .about-short img{border-radius:12px}
  .tg{flex-direction:column;align-items:flex-start;padding:24px}
  .about-page{grid-template-columns:1fr;gap:24px;padding-top:32px}
  .about-page img{max-width:240px}
  .foot-cols{grid-template-columns:1fr 1fr}
  .foot-cols>div{grid-column:1/-1}
  .sec{padding-top:56px}
  .body{font-size:17.5px}
}
@media (max-width:420px){
  .word-form{flex-direction:column}
  .word-form button{padding:14px}
  .featured h2{font-size:30px}
}
@media (prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
.proof a{color:var(--muted);text-decoration:underline;text-decoration-color:var(--line);text-underline-offset:3px}
.proof a:hover{color:var(--link);text-decoration-color:currentColor}
