/* Сайт: светлая тема, без тёмной. Шрифт Golos Text (variable 400–900), свой хостинг. */
@font-face {
  font-family: "Golos"; font-style: normal; font-weight: 400 900; font-display: swap;
  src: url(/static/golos-cyr.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Golos"; font-style: normal; font-weight: 400 900; font-display: swap;
  src: url(/static/golos-lat.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light;
  --bg: #fbfbfd;
  --ink: #14161f;
  --muted: #5d6272;
  --line: #e4e6ee;
  --accent: #2340e0;
  --accent-ink: #ffffff;
  --accent-hover: #1a32bd;
  --soft: #eef0fd;       /* лавандовые плашки */
  --soft-line: #dde1fa;
  --max: 1140px;
  --pad: clamp(18px, 4.5vw, 48px);
  --radius: 14px;
  --sans: "Golos", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 24px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.6 var(--sans); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { margin: 0; letter-spacing: -.025em; line-height: 1.08; }

.page { max-width: calc(var(--max) + 2 * var(--pad)); margin: 0 auto; padding: 0 var(--pad); }

/* ---------- шапка ---------- */
.top { display: flex; align-items: center; gap: 28px; min-height: 80px; border-bottom: 1px solid var(--line); }
.logo { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); white-space: nowrap; }
.logo-mark { width: 26px; height: 26px; color: var(--accent); }
.logo-name { font-weight: 800; font-size: 1.2rem; letter-spacing: -.02em; }
.logo-tag { align-self: flex-start; margin-top: 2px; font-size: .62rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }

#site-nav { margin-left: auto; display: flex; gap: 30px; font-size: .95rem; }
#site-nav a { text-decoration: none; color: var(--ink); padding: 6px 0; }
#site-nav a:hover { color: var(--accent); }
#site-nav a[aria-current="page"] { color: var(--accent); font-weight: 600; }

.langs { display: flex; gap: 2px; font-size: .8rem; font-weight: 600; }
.lang { padding: 4px 8px; border-radius: 8px; text-decoration: none; color: var(--muted); }
a.lang:hover { color: var(--accent); background: var(--soft); }
.lang.is-current { color: var(--accent); background: var(--soft); }

.menu-btn { display: none; }

/* ---------- общее ---------- */
.lead { color: var(--muted); font-size: 1.12rem; line-height: 1.55; margin: 0; }
.btn { display: inline-block; background: var(--accent); color: var(--accent-ink); text-decoration: none; font-weight: 600;
  padding: 11px 22px; border-radius: 999px; transition: background .15s; }
.btn:hover { background: var(--accent-hover); }
.more { color: var(--accent); font-weight: 600; text-decoration: none; font-size: .95rem; }
.more:hover { text-decoration: underline; text-underline-offset: .2em; }
h2 { font-size: clamp(1.45rem, 2.4vw, 1.75rem); font-weight: 800; }
.sec-head { display: grid; grid-template-columns: 1fr 1fr; align-items: end; gap: 12px 64px; margin-bottom: 32px; }
.sec-head p { margin: 0; color: var(--muted); }
.block { padding: clamp(48px, 7vw, 88px) 0 0; }

/* ---------- главная ---------- */
.hero { display: grid; grid-template-columns: 1.25fr 1fr; gap: 40px 64px; align-items: end; padding: clamp(40px, 7vw, 84px) 0 clamp(32px, 4vw, 48px); }
.hero h1 { font-size: clamp(2.6rem, 7vw, 5.2rem); font-weight: 800; letter-spacing: -.03em; line-height: 1; text-wrap: balance; }
.hero-side { padding-bottom: 6px; }
.hero-side .lead { margin-bottom: 20px; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin: 0; }
.hero-photo { margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--soft); aspect-ratio: 1600 / 614; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }

.intro { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px 64px; padding: clamp(40px, 6vw, 72px) 0 0; }
.about p { color: var(--muted); margin: 14px 0 0; max-width: 34em; }
.svc { margin: 14px 0 0; }
.svc-row { display: grid; grid-template-columns: minmax(130px, .8fr) 1.2fr; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.svc-row:last-child { border-bottom: 1px solid var(--line); }
.svc dt { font-weight: 700; }
.svc dd { margin: 0; color: var(--muted); font-size: .95rem; }

/* что автоматизируем */
.dirs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.dirs li { background: var(--bg); padding: 28px 26px 30px; }
.dir-icon { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: var(--soft); color: var(--accent); }
.dirs h3 { font-size: 1.15rem; font-weight: 700; margin: 18px 0 6px; letter-spacing: -.01em; }
.dirs p { margin: 0; color: var(--muted); font-size: .95rem; }

/* сценарии */
.scenes { display: grid; grid-template-columns: 1fr 1.1fr; margin-top: clamp(48px, 7vw, 88px); background: var(--soft); border-radius: var(--radius); overflow: hidden; }
.scenes-photo { margin: 0; min-height: 320px; }
.scenes-photo img { width: 100%; height: 100%; object-fit: cover; }
.scenes-body { padding: clamp(28px, 4.5vw, 52px); }
.scenes-body .lead { margin-top: 12px; font-size: 1rem; }
.scene-list { list-style: none; margin: 24px 0 0; padding: 0; }
.scene-list li { display: grid; grid-template-columns: 76px 1fr; gap: 2px 16px; padding: 14px 0; border-top: 1px solid var(--soft-line); }
.scene-time { grid-row: span 2; font-weight: 700; color: var(--accent); font-variant-numeric: tabular-nums; padding-top: 1px; }
.scene-text { color: var(--muted); font-size: .95rem; }

/* как работаем */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: st; }
.steps li { counter-increment: st; display: flex; flex-direction: column; gap: 6px; padding: 22px; border-radius: 12px; background: var(--soft); }
.steps li::before { content: counter(st, decimal-leading-zero); font-weight: 800; color: var(--accent); font-size: .9rem; letter-spacing: .02em; }
.steps b { font-size: 1.08rem; }
.steps span { color: var(--muted); font-size: .95rem; }

/* почему мы */
.why-list { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.why-list li { display: flex; flex-direction: column; gap: 6px; padding-top: 18px; border-top: 2px solid var(--accent); }
.why-list b { font-size: 1.05rem; }
.why-list span { color: var(--muted); font-size: .95rem; }

/* вопросы */
.faq-list { margin-top: 24px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 24px; padding: 20px 0; font-weight: 700; font-size: 1.08rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 30px; height: 30px; margin-top: -3px; border-radius: 50%;
  background: var(--soft); color: var(--accent); font-weight: 600; font-size: 1.2rem; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--accent); }
.faq details p { margin: 0 0 22px; max-width: 46em; color: var(--muted); }

.contact { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px;
  margin: clamp(48px, 7vw, 80px) 0 0; padding: clamp(26px, 4vw, 40px) clamp(22px, 4vw, 44px);
  background: var(--accent); color: var(--accent-ink); border-radius: var(--radius); }
.contact h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
.contact p { margin: 6px 0 0; opacity: .85; }
.contact-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px 32px; }
.contact-links a { display: flex; flex-direction: column; text-decoration: none; font-weight: 700; font-size: clamp(1.05rem, 2vw, 1.25rem); overflow-wrap: anywhere; }
.contact-links small { font-weight: 400; font-size: .8rem; opacity: .8; }
.contact-links a:hover { text-decoration: underline; text-underline-offset: .2em; }

/* ---------- блог ---------- */
.page-head { padding: clamp(40px, 7vw, 80px) 0 clamp(28px, 4vw, 40px); max-width: 860px; }
.page-head h1 { font-size: clamp(2.4rem, 6.4vw, 4.6rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.02; text-wrap: balance; }
.page-head .lead { margin-top: 18px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.chips a { text-decoration: none; font-size: .9rem; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.chips a:hover { border-color: var(--accent); color: var(--accent); }
.chips a[aria-current="page"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

.featured { display: grid; grid-template-columns: 1.15fr 1fr; border-radius: var(--radius); overflow: hidden; background: var(--soft); }
.featured-img { display: block; min-height: 300px; background: var(--soft-line); }
.featured-img img { width: 100%; height: 100%; object-fit: cover; }
.featured-body { padding: clamp(24px, 4vw, 44px); display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.featured h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.featured h2 a { text-decoration: none; }
.featured h2 a:hover { color: var(--accent); }
.featured-body p { margin: 0; color: var(--muted); }
.card-meta { font-size: .85rem; color: var(--muted); margin: 0; }
.card-meta a { color: var(--accent); text-decoration: none; }

.cards { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px 28px; }
.card { display: flex; flex-direction: column; gap: 8px; text-decoration: none; }
.card-img { display: block; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: var(--soft); margin-bottom: 8px; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card:hover .card-img img { transform: scale(1.03); }
.card-title { font-size: 1.3rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; }
.card:hover .card-title { color: var(--accent); }
.card-text { color: var(--muted); font-size: .95rem; }
.empty { color: var(--muted); padding: 24px 0 48px; }

/* ---------- запись ---------- */
.back { margin: 0 0 18px; }
.back a { color: var(--accent); font-weight: 600; text-decoration: none; font-size: .95rem; }
.back a::before { content: "← "; }
.post .page-head .card-meta { margin-top: 18px; }
.post-photo { margin: 0 0 clamp(32px, 5vw, 56px); border-radius: var(--radius); overflow: hidden; background: var(--soft); }
.post-photo img { width: 100%; max-height: 560px; object-fit: cover; }

/* Текст записи. <aside> — врезка справа (на узком экране — блоком в тексте). */
.post-body { max-width: 1140px; display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 0 56px; align-items: start; }
.post-body > * { grid-column: 1; }
.post-body > aside { grid-column: 2; grid-row: span 6; position: sticky; top: 24px; margin: 6px 0 24px;
  background: var(--soft); border-radius: 12px; padding: 20px 22px; font-size: .95rem; }
.post-body > aside > :first-child { margin-top: 0; }
.post-body > aside > :last-child { margin-bottom: 0; }
.post-body > aside h3, .post-body > aside h4 { color: var(--accent); font-size: 1.05rem; margin-bottom: 10px; }
.post-body h2 { font-size: clamp(1.4rem, 2.4vw, 1.7rem); margin: 1.6em 0 .5em; }
.post-body h3 { font-size: 1.2rem; margin: 1.4em 0 .4em; }
.post-body p, .post-body ul, .post-body ol { margin: 0 0 1em; }
.post-body li { margin: .3em 0; }
.post-body a { color: var(--accent); text-underline-offset: .2em; }
.post-body blockquote { margin: 1.2em 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--accent); color: var(--muted); }
.post-body figure { margin: 1.4em 0; }
.post-body figure img { border-radius: 10px; }
.post-body figcaption { font-size: .85rem; color: var(--muted); margin-top: 8px; }
.post-body code { font: .9em ui-monospace, Menlo, Consolas, monospace; background: var(--soft); padding: 2px 6px; border-radius: 4px; }
.post-body pre { background: var(--soft); padding: 16px; border-radius: 10px; overflow-x: auto; }
.post-body pre code { background: none; padding: 0; }
.post-body hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.post-body table { border-collapse: collapse; width: 100%; margin: 1.2em 0; font-size: .95rem; }
.post-body th, .post-body td { border-bottom: 1px solid var(--line); padding: 8px 10px; text-align: left; }

/* ---------- 404 ---------- */
.nf-code { margin: 0 0 8px; font-weight: 900; font-size: 1rem; color: var(--accent); letter-spacing: .08em; }
.nf-links { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 28px; }

/* ---------- подвал ---------- */
.foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px;
  margin-top: clamp(48px, 7vw, 80px); padding: 26px 0 32px; border-top: 1px solid var(--line); }
.foot .logo-name { font-size: 1.05rem; }
.foot .logo-mark { width: 22px; height: 22px; }
.foot-meta { margin: 0; display: flex; flex-wrap: wrap; gap: 6px 24px; font-size: .9rem; color: var(--muted); }
.foot-meta a { text-decoration: none; }
.foot-meta a:hover { color: var(--accent); }

/* ---------- узкие экраны ---------- */
@media (max-width: 960px) {
  .hero, .intro, .scenes, .sec-head { grid-template-columns: 1fr; }
  .steps, .why-list { grid-template-columns: repeat(2, 1fr); }
  .dirs { grid-template-columns: repeat(2, 1fr); }
  .scenes-photo { min-height: 0; aspect-ratio: 16 / 9; }
  .post-body { grid-template-columns: minmax(0, 1fr); }
  .post-body > aside { grid-column: 1; grid-row: auto; position: static; margin: .4em 0 1.4em; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .top { gap: 12px; min-height: 64px; position: relative; }
  #site-nav { order: 3; flex-basis: 100%; margin: 0 0 10px; gap: 20px; overflow-x: auto; white-space: nowrap; }
  .langs { margin-left: auto; }
  .has-menu .top { flex-wrap: nowrap; }
  .has-menu #site-nav { display: none; }
  .has-menu .menu-btn { display: inline-flex; flex-direction: column; justify-content: center; gap: 6px; width: 40px; height: 40px;
    padding: 0 9px; border: 0; background: none; cursor: pointer; color: var(--ink); }
  .menu-btn span { display: block; height: 2px; background: currentColor; border-radius: 2px; transition: transform .25s; }
  .menu-open .menu-btn span:first-child { transform: translateY(4px) rotate(45deg); }
  .menu-open .menu-btn span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .menu-open #site-nav { display: flex; flex-direction: column; gap: 0; position: absolute; top: 100%; left: calc(-1 * var(--pad)); right: calc(-1 * var(--pad));
    z-index: 20; margin: 0; padding: 8px var(--pad) 20px; background: var(--bg); border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 30px -20px rgb(20 22 31 / .3); }
  .menu-open #site-nav a { padding: 12px 0; font-size: 1.1rem; border-bottom: 1px solid var(--line); }
  .featured { grid-template-columns: 1fr; }
  .featured-img { min-height: 0; aspect-ratio: 16 / 9; }
  .cards { grid-template-columns: 1fr; }
  .steps, .why-list, .dirs { grid-template-columns: 1fr; }
  .svc-row { grid-template-columns: 1fr; gap: 2px; }
  .hero-photo { aspect-ratio: 4 / 3; }
}
