:root {
  --pcb-green: #006747;
  --copper: #E87722;
  --ink: #101820;
  --led-yellow: #FFC72C;
  --surface: #F5F3EE;
  --ink-muted: #5B6168;
  --line: #D9D5CC;
  --bg: var(--surface);
  --text: var(--ink);
  --accent: var(--pcb-green);
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #101820; --text: #F5F3EE; --accent: #2FA57A; --ink-muted: #A3A9AF; --line: #2A333C; }
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.5 Onest, system-ui, sans-serif; }
img { max-width: 100%; height: auto; }
a { color: var(--accent); }
.container { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

h1, h2, h3 { font-family: Montserrat, sans-serif; font-weight: 800; line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(32px, 6vw, 56px); max-width: 18ch; }
h2 { font-size: clamp(24px, 4vw, 36px); }
.label { font: 600 13px/1.4 "JetBrains Mono", monospace; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); }

.btn { display: inline-block; padding: 12px 20px; border-radius: 8px; font-weight: 600; text-decoration: none; border: 2px solid transparent; }
.btn-primary { background: var(--copper); color: var(--ink); } /* на copper — всегда ink */
.btn-outline { border-color: var(--accent); color: var(--accent); }
.btn:hover { filter: brightness(.95); }


.site-header { border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; gap: 24px; padding-top: 12px; padding-bottom: 12px; flex-wrap: wrap; }
.logo { display: flex; margin-right: auto; }
.nav { display: flex; gap: 20px; flex-wrap: wrap; }
.nav a { color: var(--text); text-decoration: none; font-weight: 500; }
.nav a:hover { color: var(--accent); }
.lang { font-size: 14px; color: var(--ink-muted); }
.lang b { color: var(--text); }

.hero { padding-top: 64px; padding-bottom: 64px; }
.site-footer { border-top: 1px solid var(--line); padding: 24px 0; color: var(--ink-muted); font-size: 14px; }
.site-footer .container { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

@media (max-width: 720px) {
  .bar { gap: 12px; }
  .nav { order: 3; width: 100%; gap: 16px; }
  .bar > .btn { padding: 8px 14px; font-size: 14px; }
}

/* главная */
.hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.lead { font-size: 18px; max-width: 52ch; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 24px 0 12px; }
.note { color: var(--ink-muted); font-size: 14px; }
.guarantees { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 8px; font-weight: 500; }
.guarantees li::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--led-yellow); margin-right: 10px; }
.hero-art { position: relative; }
.hero-art svg { width: 100%; height: auto; display: block; }
.case-chip { position: absolute; left: 12px; bottom: 12px; right: 12px; display: grid; gap: 2px; padding: 12px 16px; border-radius: 10px; background: var(--bg); border: 1px solid var(--line); max-width: 300px; }
.section { padding-top: 48px; padding-bottom: 48px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 24px 0 12px; }
.card { display: grid; gap: 8px; align-content: start; padding: 24px; border: 1px solid var(--line); border-radius: 12px; color: var(--text); text-decoration: none; }
.card:hover { border-color: var(--accent); }
.card-featured { border: 2px solid var(--copper); }
.price { font: 800 28px/1.1 Montserrat, sans-serif; }
.steps { list-style: none; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; counter-reset: s; }
.steps li { counter-increment: s; padding-top: 12px; border-top: 2px solid var(--accent); color: var(--ink-muted); font-size: 15px; }
.steps li::before { content: "0" counter(s); display: block; font: 600 13px "JetBrains Mono", monospace; color: var(--accent); }
.steps b { display: block; color: var(--text); font-size: 17px; margin-bottom: 4px; }
.lead-block { border-top: 1px solid var(--line); }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 32px; }
  .case-chip { position: static; margin-top: 12px; max-width: none; }
  .cards { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
}

/* форма заявки */
.lead-form { display: grid; gap: 16px; max-width: 560px; margin: 24px 0; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 500; }
.field input[type=text], .field select, .field textarea {
  font: inherit; color: var(--text); background: var(--bg); padding: 10px 12px;
  border: 1px solid var(--line); border-radius: 8px; width: 100%;
}
.field.check label { display: flex; gap: 8px; align-items: flex-start; font-weight: 400; }
.err { color: #B3261E; font-size: 14px; }
@media (prefers-color-scheme: dark) { .err { color: #FF8A80; } }
.hp { position: absolute; left: -9999px; }

.section h2 { margin-top: 1.6em; }
.section > h2:first-child { margin-top: 0; }

/* кейсы */
.card img, .case-photo { width: 100%; height: auto; border-radius: 8px; display: block; }
.case-photo { max-width: 720px; margin: 16px 0; }
.pre { white-space: pre-line; max-width: 70ch; }

/* служебные страницы */
.steps-long { grid-template-columns: 1fr; max-width: 70ch; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 8px 24px; margin: 24px 0; }
.facts dd { margin: 0; }
.legal { max-width: 75ch; }
.legal ul { padding-left: 20px; }

/* блог: подсветка кода (Pygments) */
.post pre, .hl { overflow-x: auto; border-radius: 8px; padding: 0; }
.post pre { padding: 14px 16px; background: #fff; border: 1px solid var(--line); font: 14px/1.5 'JetBrains Mono', monospace; }
.post code { font-family: 'JetBrains Mono', monospace; font-size: .92em; }
.post img { max-width: 100%; }
.post table { border-collapse: collapse; } .post th, .post td { border: 1px solid var(--line); padding: 6px 10px; }
pre { line-height: 125%; }
td.linenos .normal { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
span.linenos { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
td.linenos .special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
span.linenos.special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
.hl .hll { background-color: #ffffcc }
.hl { background: #f8f8f8; }
.hl .c { color: #3D7B7B; font-style: italic } /* Comment */
.hl .err { border: 1px solid #F00 } /* Error */
.hl .k { color: #008000; font-weight: bold } /* Keyword */
.hl .o { color: #666 } /* Operator */
.hl .ch { color: #3D7B7B; font-style: italic } /* Comment.Hashbang */
.hl .cm { color: #3D7B7B; font-style: italic } /* Comment.Multiline */
.hl .cp { color: #9C6500 } /* Comment.Preproc */
.hl .cpf { color: #3D7B7B; font-style: italic } /* Comment.PreprocFile */
.hl .c1 { color: #3D7B7B; font-style: italic } /* Comment.Single */
.hl .cs { color: #3D7B7B; font-style: italic } /* Comment.Special */
.hl .gd { color: #A00000 } /* Generic.Deleted */
.hl .ge { font-style: italic } /* Generic.Emph */
.hl .ges { font-weight: bold; font-style: italic } /* Generic.EmphStrong */
.hl .gr { color: #E40000 } /* Generic.Error */
.hl .gh { color: #000080; font-weight: bold } /* Generic.Heading */
.hl .gi { color: #008400 } /* Generic.Inserted */
.hl .go { color: #717171 } /* Generic.Output */
.hl .gp { color: #000080; font-weight: bold } /* Generic.Prompt */
.hl .gs { font-weight: bold } /* Generic.Strong */
.hl .gu { color: #800080; font-weight: bold } /* Generic.Subheading */
.hl .gt { color: #04D } /* Generic.Traceback */
.hl .kc { color: #008000; font-weight: bold } /* Keyword.Constant */
.hl .kd { color: #008000; font-weight: bold } /* Keyword.Declaration */
.hl .kn { color: #008000; font-weight: bold } /* Keyword.Namespace */
.hl .kp { color: #008000 } /* Keyword.Pseudo */
.hl .kr { color: #008000; font-weight: bold } /* Keyword.Reserved */
.hl .kt { color: #B00040 } /* Keyword.Type */
.hl .m { color: #666 } /* Literal.Number */
.hl .s { color: #BA2121 } /* Literal.String */
.hl .na { color: #687822 } /* Name.Attribute */
.hl .nb { color: #008000 } /* Name.Builtin */
.hl .nc { color: #00F; font-weight: bold } /* Name.Class */
.hl .no { color: #800 } /* Name.Constant */
.hl .nd { color: #A2F } /* Name.Decorator */
.hl .ni { color: #717171; font-weight: bold } /* Name.Entity */
.hl .ne { color: #CB3F38; font-weight: bold } /* Name.Exception */
.hl .nf { color: #00F } /* Name.Function */
.hl .nl { color: #767600 } /* Name.Label */
.hl .nn { color: #00F; font-weight: bold } /* Name.Namespace */
.hl .nt { color: #008000; font-weight: bold } /* Name.Tag */
.hl .nv { color: #19177C } /* Name.Variable */
.hl .ow { color: #A2F; font-weight: bold } /* Operator.Word */
.hl .w { color: #BBB } /* Text.Whitespace */
.hl .mb { color: #666 } /* Literal.Number.Bin */
.hl .mf { color: #666 } /* Literal.Number.Float */
.hl .mh { color: #666 } /* Literal.Number.Hex */
.hl .mi { color: #666 } /* Literal.Number.Integer */
.hl .mo { color: #666 } /* Literal.Number.Oct */
.hl .sa { color: #BA2121 } /* Literal.String.Affix */
.hl .sb { color: #BA2121 } /* Literal.String.Backtick */
.hl .sc { color: #BA2121 } /* Literal.String.Char */
.hl .dl { color: #BA2121 } /* Literal.String.Delimiter */
.hl .sd { color: #BA2121; font-style: italic } /* Literal.String.Doc */
.hl .s2 { color: #BA2121 } /* Literal.String.Double */
.hl .se { color: #AA5D1F; font-weight: bold } /* Literal.String.Escape */
.hl .sh { color: #BA2121 } /* Literal.String.Heredoc */
.hl .si { color: #A45A77; font-weight: bold } /* Literal.String.Interpol */
.hl .sx { color: #008000 } /* Literal.String.Other */
.hl .sr { color: #A45A77 } /* Literal.String.Regex */
.hl .s1 { color: #BA2121 } /* Literal.String.Single */
.hl .ss { color: #19177C } /* Literal.String.Symbol */
.hl .bp { color: #008000 } /* Name.Builtin.Pseudo */
.hl .fm { color: #00F } /* Name.Function.Magic */
.hl .vc { color: #19177C } /* Name.Variable.Class */
.hl .vg { color: #19177C } /* Name.Variable.Global */
.hl .vi { color: #19177C } /* Name.Variable.Instance */
.hl .vm { color: #19177C } /* Name.Variable.Magic */
.hl .il { color: #666 } /* Literal.Number.Integer.Long */
@media (prefers-color-scheme: dark) {
.post pre { background: #1b242d; }
pre { line-height: 125%; }
td.linenos .normal { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
span.linenos { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
td.linenos .special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
span.linenos.special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
.hl .hll { background-color: #49483e }
.hl { background: #272822; color: #F8F8F2 }
.hl .c { color: #959077 } /* Comment */
.hl .err { color: #ED007E; background-color: #1E0010 } /* Error */
.hl .esc { color: #F8F8F2 } /* Escape */
.hl .g { color: #F8F8F2 } /* Generic */
.hl .k { color: #66D9EF } /* Keyword */
.hl .l { color: #AE81FF } /* Literal */
.hl .n { color: #F8F8F2 } /* Name */
.hl .o { color: #FF4689 } /* Operator */
.hl .x { color: #F8F8F2 } /* Other */
.hl .p { color: #F8F8F2 } /* Punctuation */
.hl .ch { color: #959077 } /* Comment.Hashbang */
.hl .cm { color: #959077 } /* Comment.Multiline */
.hl .cp { color: #959077 } /* Comment.Preproc */
.hl .cpf { color: #959077 } /* Comment.PreprocFile */
.hl .c1 { color: #959077 } /* Comment.Single */
.hl .cs { color: #959077 } /* Comment.Special */
.hl .gd { color: #FF4689 } /* Generic.Deleted */
.hl .ge { color: #F8F8F2; font-style: italic } /* Generic.Emph */
.hl .ges { color: #F8F8F2; font-weight: bold; font-style: italic } /* Generic.EmphStrong */
.hl .gr { color: #FF4689 } /* Generic.Error */
.hl .gh { color: #F8F8F2 } /* Generic.Heading */
.hl .gi { color: #A6E22E } /* Generic.Inserted */
.hl .go { color: #66D9EF } /* Generic.Output */
.hl .gp { color: #FF4689; font-weight: bold } /* Generic.Prompt */
.hl .gs { color: #F8F8F2; font-weight: bold } /* Generic.Strong */
.hl .gu { color: #959077 } /* Generic.Subheading */
.hl .gt { color: #66D9EF } /* Generic.Traceback */
.hl .kc { color: #66D9EF } /* Keyword.Constant */
.hl .kd { color: #66D9EF } /* Keyword.Declaration */
.hl .kn { color: #FF4689 } /* Keyword.Namespace */
.hl .kp { color: #66D9EF } /* Keyword.Pseudo */
.hl .kr { color: #66D9EF } /* Keyword.Reserved */
.hl .kt { color: #66D9EF } /* Keyword.Type */
.hl .ld { color: #E6DB74 } /* Literal.Date */
.hl .m { color: #AE81FF } /* Literal.Number */
.hl .s { color: #E6DB74 } /* Literal.String */
.hl .na { color: #A6E22E } /* Name.Attribute */
.hl .nb { color: #A6E22E } /* Name.Builtin */
.hl .nc { color: #A6E22E } /* Name.Class */
.hl .no { color: #66D9EF } /* Name.Constant */
.hl .nd { color: #A6E22E } /* Name.Decorator */
.hl .ni { color: #F8F8F2 } /* Name.Entity */
.hl .ne { color: #A6E22E } /* Name.Exception */
.hl .nf { color: #A6E22E } /* Name.Function */
.hl .nl { color: #F8F8F2 } /* Name.Label */
.hl .nn { color: #F8F8F2 } /* Name.Namespace */
.hl .nx { color: #A6E22E } /* Name.Other */
.hl .py { color: #F8F8F2 } /* Name.Property */
.hl .nt { color: #FF4689 } /* Name.Tag */
.hl .nv { color: #F8F8F2 } /* Name.Variable */
.hl .ow { color: #FF4689 } /* Operator.Word */
.hl .pm { color: #F8F8F2 } /* Punctuation.Marker */
.hl .w { color: #F8F8F2 } /* Text.Whitespace */
.hl .mb { color: #AE81FF } /* Literal.Number.Bin */
.hl .mf { color: #AE81FF } /* Literal.Number.Float */
.hl .mh { color: #AE81FF } /* Literal.Number.Hex */
.hl .mi { color: #AE81FF } /* Literal.Number.Integer */
.hl .mo { color: #AE81FF } /* Literal.Number.Oct */
.hl .sa { color: #E6DB74 } /* Literal.String.Affix */
.hl .sb { color: #E6DB74 } /* Literal.String.Backtick */
.hl .sc { color: #E6DB74 } /* Literal.String.Char */
.hl .dl { color: #E6DB74 } /* Literal.String.Delimiter */
.hl .sd { color: #E6DB74 } /* Literal.String.Doc */
.hl .s2 { color: #E6DB74 } /* Literal.String.Double */
.hl .se { color: #AE81FF } /* Literal.String.Escape */
.hl .sh { color: #E6DB74 } /* Literal.String.Heredoc */
.hl .si { color: #E6DB74 } /* Literal.String.Interpol */
.hl .sx { color: #E6DB74 } /* Literal.String.Other */
.hl .sr { color: #E6DB74 } /* Literal.String.Regex */
.hl .s1 { color: #E6DB74 } /* Literal.String.Single */
.hl .ss { color: #E6DB74 } /* Literal.String.Symbol */
.hl .bp { color: #A6E22E } /* Name.Builtin.Pseudo */
.hl .fm { color: #A6E22E } /* Name.Function.Magic */
.hl .vc { color: #F8F8F2 } /* Name.Variable.Class */
.hl .vg { color: #F8F8F2 } /* Name.Variable.Global */
.hl .vi { color: #F8F8F2 } /* Name.Variable.Instance */
.hl .vm { color: #F8F8F2 } /* Name.Variable.Magic */
.hl .il { color: #AE81FF } /* Literal.Number.Integer.Long */
}

/* SEO, доступность, cookies */
.skip { position: absolute; left: 8px; top: -60px; background: var(--bg); color: var(--text); padding: 8px 14px; border-radius: 8px; z-index: 10; }
.skip:focus { top: 8px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.faq details { border-top: 1px solid var(--line); padding: 14px 0; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq p { margin: 8px 0 0; max-width: 70ch; color: var(--ink-muted); }
.consent { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 20; max-width: 640px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); box-shadow: 0 4px 24px rgb(16 24 32 / .15); }
.consent[hidden] { display: none; }
.consent p { margin: 0 0 12px; font-size: 14px; }
.consent .cta { margin: 0; }

.mb { margin-bottom: 12px; }

.case-figure { margin: 16px 0; }
.case-figure figcaption { margin-top: 6px; }
