/* Блог urokizdes.ru: статичные страницы без JavaScript. Шрифт и цвета те же, что на сайте (src/index.css).
   Ниже строка-метка для сборки: скрипт подставит на её место описания шрифтов с путями и хэшами из dist/assets. */
@font-face{font-family:"Unbounded Variable";font-style:normal;font-display:swap;font-weight:200 900;src:url("/assets/unbounded-cyrillic-wght-normal-C627f1f8.woff2") format("woff2-variations");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:"Unbounded Variable";font-style:normal;font-display:swap;font-weight:200 900;src:url("/assets/unbounded-latin-wght-normal-D5afBTBx.woff2") format("woff2-variations");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}

:root {
  --ground: #eceff3;
  --paper: #f8f9fb;
  --ink: #0f1319;
  --muted: #566070;
  --accent: #8cff90;
  --accent-deep: #3fd96a;
  --line: rgb(15 19 25 / 0.14);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: "Unbounded Variable", system-ui, sans-serif;
  font-size: 0.9375rem;
  font-weight: 300;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  overflow-wrap: break-word;
}
.wrap { width: min(100% - 2rem, 48rem); margin-inline: auto; }
a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--accent-deep);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.22em;
}
a:hover { text-decoration-color: var(--ink); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 0.4rem; }

/* Шапка */
.bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 0; }
.back { font-size: 0.8125rem; font-weight: 500; text-decoration: none; padding: 0.6rem 0; }
.back:hover { text-decoration: underline; text-decoration-color: var(--accent-deep); text-decoration-thickness: 2px; }

/* Бумажная панель */
.paper {
  background: var(--paper);
  border-radius: 2.25rem;
  padding: clamp(1.25rem, 4vw, 3rem);
  box-shadow: 0 1px 0 rgb(255 255 255 / 0.8) inset, 0 24px 48px -32px rgb(15 19 25 / 0.25);
}
ol.crumbs { margin: 0 0 1rem; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 0.15rem 0.5rem; font-size: 0.75rem; line-height: 1.6; color: var(--muted); counter-reset: none; }
ol.crumbs > li { margin: 0; padding: 0; counter-increment: none; }
ol.crumbs > li::before { content: none; }
ol.crumbs > li + li::before {
  content: "/"; position: static; display: inline; width: auto; height: auto; margin-right: 0.5rem;
  background: none; border-radius: 0; color: var(--muted); font-size: inherit; font-weight: 300;
}
.crumbs a { color: var(--muted); text-decoration-thickness: 1px; }
.meta { margin: 0 0 1.5rem; font-size: 0.75rem; color: var(--muted); }

h1, h2, h3 { font-family: "Unbounded Variable", system-ui, sans-serif; letter-spacing: -0.025em; line-height: 1.15; text-wrap: balance; }
h1 { margin: 0 0 0.75rem; font-size: clamp(1.55rem, 5.2vw, 2.35rem); font-weight: 700; }
h2 { margin: 2.4rem 0 0.8rem; font-size: clamp(1.2rem, 3.6vw, 1.55rem); font-weight: 700; }
h3 { margin: 1.6rem 0 0.5rem; font-size: 1.05rem; font-weight: 600; letter-spacing: -0.015em; }
p { margin: 0 0 1.1rem; text-wrap: pretty; }
.post > p:first-of-type { font-size: 1.0625rem; font-weight: 400; }
strong { font-weight: 600; }

ul, ol { margin: 0 0 1.3rem; padding: 0; list-style: none; }
li { position: relative; margin: 0.5rem 0; padding-left: 1.4rem; }
ul > li::before { content: ""; position: absolute; left: 0; top: 0.8em; width: 0.4rem; height: 0.4rem; border-radius: 50%; background: var(--accent-deep); }
ol { counter-reset: n; }
ol > li { counter-increment: n; padding-left: 2.3rem; }
ol > li::before {
  content: counter(n); position: absolute; left: 0; top: 0.2em;
  display: grid; place-items: center; width: 1.6rem; height: 1.6rem;
  border-radius: 50%; background: var(--accent); font-size: 0.75rem; font-weight: 700; line-height: 1;
}
blockquote {
  margin: 1.6rem 0; padding: 1.1rem 1.25rem;
  background: rgb(140 255 144 / 0.22); border-left: 4px solid var(--accent-deep); border-radius: 0 1.25rem 1.25rem 0;
}
blockquote p:last-child { margin-bottom: 0; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }

/* Выделения в заголовках. Только CSS: фон привязан к самому тексту, поэтому при переносе на несколько строк, смене шрифта
   или размера экрана он остаётся под нужными словами (box-decoration-break: clone рисует отдельную полосу на каждой строке). */
mark.mk {
  color: inherit;
  padding: 0 0.14em;
  margin: 0 -0.14em;
  background: linear-gradient(rgb(140 255 144 / 0.72), rgb(140 255 144 / 0.72)) no-repeat 0 82% / 100% 66%;
  border-radius: 0.3em 0.6em 0.35em 0.55em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.ul {
  padding-bottom: 0.14em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 10' preserveAspectRatio='none'%3E%3Cpath d='M1 6.4 Q30 2.6 55 5.4 T99 4.6' fill='none' stroke='%233fd96a' stroke-width='3.6' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat 0 100% / 100% 0.32em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.cta .ul {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 10' preserveAspectRatio='none'%3E%3Cpath d='M1 6.4 Q30 2.6 55 5.4 T99 4.6' fill='none' stroke='%238cff90' stroke-width='3.6' stroke-linecap='round'/%3E%3C/svg%3E");
}

[hidden] { display: none !important; }

/* Призыв в конце статьи: сначала кнопка к программе, ниже тёмная панель с формой заявки */
.closing { margin-top: 2.75rem; }
.closing h2 { margin-top: 0; }

/* Кнопка как на главном экране сайта (src/components/ui/anti-metal-button.tsx): тёмная таблетка, слева салатовая «заслонка»
   с волной точек, при наведении заслонка растягивается на всю кнопку. Только CSS. */
@property --bd-stop { syntax: "<length-percentage>"; inherits: false; initial-value: 3.25rem; }
@keyframes bd-dot-wave {
  0%, 70%, 100% { opacity: 0.25; transform: scale(0.85); }
  35% { opacity: 1; transform: scale(1); }
}
.bd-dot { transform-box: fill-box; transform-origin: center; animation: bd-dot-wave 1.4s ease-in-out infinite; }
.amb {
  position: relative; display: inline-flex; align-items: center; flex-shrink: 0;
  min-height: 3.5rem; max-width: 100%; padding: 0.375rem 0; overflow: hidden;
  border-radius: 999px; text-decoration: none;
  background: linear-gradient(180deg, #1a1a1a 0%, #0a0a0a 100%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.08), 0 4px 12px rgb(0 0 0 / 0.18);
  transition: transform 0.15s;
}
.amb:active { transform: scale(0.98); }
.amb:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.amb-text {
  position: relative; z-index: 20; --bd-stop: 3.25rem;
  padding: 0 1.5rem 0 4.25rem; text-align: left;
  font-size: 0.8125rem; font-weight: 600; letter-spacing: -0.025em; line-height: 1.375;
  background-image: linear-gradient(90deg, #0f1319 0, #0f1319 var(--bd-stop), #fff var(--bd-stop));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
  transition: --bd-stop 0.2s cubic-bezier(0.65, 0, 0.35, 1);
}
.amb-slab {
  position: absolute; z-index: 10; left: 0.25rem; top: 0.25rem; bottom: 0.25rem; width: 3rem;
  display: flex; align-items: center; justify-content: flex-start; gap: 0.625rem; padding: 0 0.625rem 0 0.75rem;
  overflow: hidden; border-radius: 999px;
  background: linear-gradient(180deg, #8cff90 0%, #6df27f 100%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.4), inset 0 -2px 4px rgb(0 0 0 / 0.12), 0 2px 4px rgb(0 0 0 / 0.08);
  transition: width 0.2s cubic-bezier(0.65, 0, 0.35, 1), gap 0.2s cubic-bezier(0.65, 0, 0.35, 1);
}
.amb-slab svg { flex-shrink: 0; overflow: visible; transition: opacity 0.2s; }
.amb:hover .amb-text, .amb:focus-visible .amb-text { --bd-stop: calc(100% - 0.25rem); }
.amb:hover .amb-slab, .amb:focus-visible .amb-slab { width: calc(100% - 0.5rem); }
.amb:hover .amb-slab svg:nth-child(n + 3), .amb:focus-visible .amb-slab svg:nth-child(n + 3) { opacity: 0; }
@media (min-width: 640px) {
  .amb { height: 3.5rem; padding: 0; }
  .amb-text { font-size: 0.9375rem; white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) {
  .bd-dot { animation: none; opacity: 1; }
  .amb, .amb-text, .amb-slab { transition: none; }
}

/* Тёмная панель с формой (как блок заявки на главной) */
.cta { position: relative; margin-top: 2rem; padding: clamp(1.25rem, 4vw, 2.25rem); background: var(--ink); color: #fff; border-radius: 1.75rem; }
.cta :focus-visible { outline-color: var(--accent); }
.cta h2 { margin: 0 0 0.5rem; color: #fff; font-size: clamp(1.2rem, 3.6vw, 1.55rem); }
.cta p { color: rgb(255 255 255 / 0.82); }
.cta a { color: #fff; text-decoration-color: rgb(255 255 255 / 0.4); }
.cta .err { color: #ffb199; }
.lead-form { display: grid; gap: 1rem; margin-top: 1.25rem; }
.hp { position: absolute; left: -9999px; width: 0; height: 0; overflow: hidden; }
.fld { display: grid; gap: 0.5rem; font-size: 0.9375rem; font-weight: 500; }
.fld > p { margin: 0; }
.opt { font-weight: 400; color: rgb(255 255 255 / 0.62); }
.field {
  width: 100%; height: 3.5rem; padding: 0 1.25rem; border-radius: 1.1rem;
  background: rgb(255 255 255 / 0.08); border: 1px solid rgb(255 255 255 / 0.28); color: #fff;
  font: inherit; font-weight: 300; transition: border-color 0.25s, background 0.25s;
}
.field::placeholder { color: rgb(255 255 255 / 0.62); }
.field:hover { border-color: rgb(255 255 255 / 0.55); }
.field:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; background: rgb(255 255 255 / 0.14); }
.field[aria-invalid="true"] { border-color: #ffb199; }
textarea.field { height: auto; min-height: 6.5rem; padding-block: 0.9rem; resize: vertical; }
select.field {
  -webkit-appearance: none; appearance: none; cursor: pointer; padding-right: 3rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1.1rem center;
}
select.field option { color: var(--ink); }
.err { color: #ffb199; font-size: 0.875rem; font-weight: 400; line-height: 1.5; }
.via { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip {
  height: 2.75rem; padding: 0 1.25rem; border-radius: 999px; cursor: pointer;
  border: 1px solid rgb(255 255 255 / 0.28); background: rgb(255 255 255 / 0.08); color: #fff;
  font: inherit; font-size: 0.9375rem; font-weight: 500; transition: border-color 0.25s, background 0.25s;
}
.chip:hover { border-color: rgb(255 255 255 / 0.55); }
.chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.consent { display: flex; align-items: flex-start; gap: 0.75rem; font-size: 0.875rem; font-weight: 300; line-height: 1.4; color: rgb(255 255 255 / 0.8); cursor: pointer; }
.consent input { flex: none; width: 1.25rem; height: 1.25rem; margin: 0.1rem 0 0; accent-color: #8cff90; cursor: pointer; }
.consent input[data-invalid="true"] { outline: 2px solid #ffb199; outline-offset: 2px; }

/* Кнопка отправки: салатовая таблетка с чёрным кругом и стрелкой, как на главной */
.sbtn {
  display: inline-flex; align-items: center; gap: 0.9rem; min-height: 3.5rem; padding: 0.25rem 0.5rem 0.25rem 1.75rem;
  border: 0; border-radius: 999px; background: var(--accent); color: var(--ink); cursor: pointer;
  font: inherit; font-size: 0.9375rem; font-weight: 600; letter-spacing: -0.01em; text-align: left; line-height: 1.25;
  transition: background 0.35s, transform 0.2s;
}
.sbtn .dot { flex: none; display: grid; place-items: center; width: 2.5rem; height: 2.5rem; margin-left: auto; border-radius: 50%; background: var(--ink); color: #fff; transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), background 0.35s, color 0.35s; }
.sbtn:hover { background: #fff; }
.sbtn:hover .dot { background: var(--accent); color: var(--ink); transform: translateX(2px) rotate(-45deg); }
.sbtn:active { transform: scale(0.98); }
.sbtn:disabled { opacity: 0.7; cursor: progress; }
.done { padding: 1.5rem; border-radius: 1.5rem; background: rgb(255 255 255 / 0.1); margin-top: 1.25rem; outline: none; }
.done p { margin: 0 0 0.75rem; font-weight: 600; font-size: 1.05rem; line-height: 1.4; color: #fff; }
.done a { display: inline-block; font-weight: 500; color: var(--accent); text-decoration-color: rgb(140 255 144 / 0.5); }

/* Списки статей и рубрик */
.cards { display: grid; gap: 1rem; margin: 1.5rem 0 0; padding: 0; list-style: none; }
.cards li { margin: 0; padding: 0; }
.cards li::before { content: none; }
.card { display: block; padding: 1.25rem 1.4rem; background: #fff; border: 1px solid var(--line); border-radius: 1.5rem; color: inherit; text-decoration: none; }
.card:hover { border-color: var(--ink); }
.card b { display: block; font-weight: 700; line-height: 1.3; }
.card span { display: block; margin-top: 0.35rem; font-size: 0.8125rem; color: var(--muted); line-height: 1.6; }
.rel { margin-top: 2.5rem; }

/* Подвал */
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem 2rem; padding: 2.5rem 0 3rem; font-size: 0.875rem; color: var(--muted); }
.foot b { font-weight: 700; color: var(--ink); }
.foot a { color: var(--muted); }
.foot-links { display: flex; flex-wrap: wrap; gap: 0.25rem 2rem; }
.foot-links a { display: inline-block; padding: 0.5rem 0; margin: -0.5rem 0; text-decoration: none; }
.foot-links a:hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent-deep); text-decoration-thickness: 2px; }

@media (max-width: 36rem) {
  .paper { border-radius: 1.5rem; }
}
