/* Внутренние страницы Штатно: тот же стиль, что на главной — белый лист, чёрные рамки, красный акцент и красная тень. */
:root {
  --paper: #ffffff;
  --ink: #000000;
  --text: #1c1c1c;
  --muted: #5a5a5a;
  --line: #d6d6d6;
  --fill: #f2f2f0;
  --red: #e63312;
  --good: #1b7a49;
  --display: "Unbounded", "Arial Black", sans-serif;
  --body: "Golos Text", "Segoe UI", system-ui, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body { margin: 0; background: var(--paper); color: var(--text); font: 17px/1.6 var(--body); overflow-x: clip; }
h1, h2, h3, h4 { font-family: var(--display); color: var(--ink); margin: 0; text-wrap: balance; }
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
.wrap { max-width: 1200px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.note { font-size: 14px; color: var(--muted); }

/* Кнопки */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font: 600 16px/1 var(--body); padding: 17px 24px; text-decoration: none; border: 2px solid var(--ink); background: var(--paper); color: var(--ink); cursor: pointer; box-shadow: 5px 5px 0 var(--ink); transition: transform .15s var(--ease), box-shadow .15s var(--ease); }
.btn:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--ink); }
.btn:active { transform: translate(5px, 5px); box-shadow: 0 0 0 var(--ink); }
.btn-red { background: var(--red); color: #ffffff; }
.btn-ink { background: var(--ink); color: #ffffff; box-shadow: 5px 5px 0 var(--red); }
.btn-ink:hover { box-shadow: 7px 7px 0 var(--red); }
.row { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }

/* Шапка (как на главной) */
.top { border-bottom: 2px solid var(--ink); background: var(--paper); position: sticky; top: 0; z-index: 20; }
.nav { display: flex; align-items: center; gap: 12px 32px; padding-block: 16px; flex-wrap: wrap; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo i { width: 24px; height: 24px; background: var(--red); display: block; transition: transform .4s var(--ease); }
.logo:hover i { transform: rotate(90deg); }
.logo b { font: 900 21px/1 var(--display); letter-spacing: .02em; color: var(--ink); }
.nav-links { display: flex; gap: 26px; margin-left: auto; align-items: center; }
.nav-links a { text-decoration: none; font-size: 15px; white-space: nowrap; background: linear-gradient(var(--red), var(--red)) 0 100% / 0 2px no-repeat; transition: background-size .25s var(--ease); padding-bottom: 2px; }
.nav-links a:hover, .nav-links a[aria-current="page"] { background-size: 100% 2px; }
.nav .btn { padding: 12px 18px; font-size: 15px; box-shadow: none; }
.nav .btn:hover { transform: none; background: var(--red); border-color: var(--red); }
@media (min-width: 901px) {
  .dd { position: relative; padding-block: 14px; margin-block: -14px; }
  .dd > a::after { content: ""; display: inline-block; width: 6px; height: 6px; border-right: 2px solid; border-bottom: 2px solid; transform: translateY(-3px) rotate(45deg); margin-left: 8px; }
  .dd-m { display: none; position: absolute; left: -18px; top: 100%; flex-direction: column; min-width: 210px; padding: 8px 0; background: var(--paper); border: 2px solid var(--ink); box-shadow: 6px 6px 0 var(--red); }
  .dd:hover .dd-m, .dd:focus-within .dd-m { display: flex; }
  .dd-m a { padding: 10px 18px; background: none; }
  .dd-m a:hover { background: #fff1ec; color: var(--red); }
}
@media (max-width: 900px) {
  .nav .btn { margin-left: auto; }
  .nav-links { order: 3; width: 100%; margin: 0; gap: 20px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
  .nav-links::-webkit-scrollbar { display: none; }
  .dd, .dd-m { display: contents; }
}

/* Заголовок страницы и крошки */
.crumbs { margin: 0; padding: 22px 0 0; list-style: none; display: flex; flex-wrap: wrap; gap: 4px 0; font-size: 14px; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin: 0 10px; color: var(--line); }
.crumbs a { text-decoration: none; border-bottom: 1px solid var(--line); }
.crumbs a:hover { color: var(--red); border-color: var(--red); }
.page-head { padding-block: 40px 8px; display: grid; gap: 22px; max-width: 900px; }
.page-head h1 { font-weight: 900; font-size: clamp(32px, 5.4vw, 64px); line-height: 1.04; letter-spacing: -.02em; }
.page-head .lead { font-size: 20px; line-height: 1.55; max-width: 720px; }
.price-line { font: 700 clamp(20px, 2.4vw, 26px)/1.3 var(--display); color: var(--red); }

/* Секции */
.section { padding-block: 80px 0; }
.section > .wrap > h2, .section h2.h { font-weight: 900; font-size: clamp(26px, 3.6vw, 42px); line-height: 1.08; letter-spacing: -.02em; margin-bottom: 18px; }
.section .sub { font-size: 18px; color: var(--muted); max-width: 760px; margin-bottom: 32px; }
.prose { max-width: 760px; display: grid; gap: 14px; font-size: 17.5px; }
.prose ul { margin: 0; padding-left: 22px; display: grid; gap: 8px; }

/* Карточки в рамке */
/* рамку сверху и слева рисует сетка, справа и снизу — каждая карточка: ровно при любом числе карточек */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 2px solid var(--ink); border-left: 2px solid var(--ink); }
.cards.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card { padding: 28px; display: flex; flex-direction: column; gap: 12px; min-width: 0; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transition: background .25s var(--ease); }
.card:hover { background: #fff6f3; }
.card h3 { font-weight: 700; font-size: 21px; line-height: 1.25; }
.card p, .card li { font-size: 15.5px; }
.card ul { margin: 0; padding-left: 18px; display: grid; gap: 6px; }
.card .price { margin-top: auto; padding-top: 14px; border-top: 2px solid var(--ink); font: 700 17px/1.3 var(--display); color: var(--ink); }
.card a.more, .more { font-weight: 600; font-size: 15.5px; text-decoration: none; border-bottom: 3px solid var(--red); align-self: flex-start; }
.card a.more:hover, .more:hover { color: var(--red); }
@media (max-width: 980px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .cards, .cards.two { grid-template-columns: minmax(0, 1fr); } }

/* Три колонки «делает / не делает / зовёт человека» */
.duty { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 2px solid var(--ink); }
.duty > div { padding: 28px; border-right: 2px solid var(--ink); display: grid; gap: 14px; align-content: start; }
.duty > div:last-child { border-right: 0; }
@media (max-width: 900px) { .duty { grid-template-columns: minmax(0, 1fr); } .duty > div { border-right: 0; border-bottom: 2px solid var(--ink); } .duty > div:last-child { border-bottom: 0; } }
.duty h3 { font-size: 20px; font-weight: 700; display: flex; align-items: center; gap: 12px; }
.duty h3 i { width: 28px; height: 28px; display: grid; place-items: center; font: 900 16px/1 var(--display); font-style: normal; color: #ffffff; flex: none; }
.duty .yes i { background: var(--good); }
.duty .no i { background: var(--red); }
.duty .hand i { background: var(--ink); }
.duty ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; font-size: 16px; }
.duty li { padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.duty li:last-child { border-bottom: 0; padding-bottom: 0; }

/* Таблица цен */
.table-wrap { overflow-x: auto; border: 2px solid var(--ink); box-shadow: 10px 10px 0 var(--ink); }
.prices { width: 100%; border-collapse: collapse; min-width: 640px; font-size: 16px; }
.prices th, .prices td { text-align: left; padding: 16px 20px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prices thead th { font: 700 15px/1.3 var(--display); color: #ffffff; background: var(--ink); }
.prices tbody th { font-weight: 600; color: var(--ink); width: 24%; }
.prices tbody th a { text-decoration: none; border-bottom: 2px solid var(--red); }
.prices td:last-child { font-weight: 600; color: var(--ink); white-space: nowrap; }
.prices td.soft { white-space: normal; color: var(--muted); font-weight: 500; }
.prices tr:last-child th, .prices tr:last-child td { border-bottom: 0; }

/* Условия */
.terms { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.terms.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .terms, .terms.four { grid-template-columns: minmax(0, 1fr); } }
.term { font-size: 15.5px; padding-left: 18px; border-left: 5px solid var(--red); }
.term b { display: block; font: 700 17px/1.3 var(--display); color: var(--ink); margin-bottom: 6px; }

/* Шаги: цифры рисует CSS, в тексте страницы их нет */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; padding-top: 30px; border-top: 6px solid var(--red); counter-reset: step; }
.steps.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .steps, .steps.three { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .steps, .steps.three { grid-template-columns: minmax(0, 1fr); } }
.step { display: grid; gap: 8px; align-content: start; }
.step .n { font: 900 48px/1 var(--display); color: var(--ink); }
.step .n::before { counter-increment: step; content: counter(step); }
.step .when { font-size: 14px; font-weight: 600; color: var(--red); }
.step h3 { font-weight: 700; font-size: 20px; }
.step p { font-size: 15.5px; color: var(--muted); }

/* Вопросы */
.faq { border-top: 2px solid var(--ink); max-width: 960px; }
.faq details { border-bottom: 2px solid var(--ink); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 20px; align-items: center; padding: 20px 0; font: 700 clamp(16px, 1.9vw, 20px)/1.35 var(--display); color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; width: 20px; height: 20px; flex: none; background: linear-gradient(var(--red), var(--red)) center / 100% 4px no-repeat, linear-gradient(var(--red), var(--red)) center / 4px 100% no-repeat; transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(135deg); }
.faq summary:hover { color: var(--red); }
.faq .ans { padding: 0 0 22px; max-width: 760px; font-size: 16.5px; }

/* Призыв */
.cta { margin-top: 80px; display: flex; align-items: center; justify-content: space-between; gap: 20px 32px; flex-wrap: wrap; padding: 30px; background: var(--fill); border: 2px solid var(--ink); }
.cta p { font-size: 17px; max-width: 680px; }
.cta b { font: 700 22px/1.3 var(--display); color: var(--ink); display: block; margin-bottom: 4px; }

/* Метки проектов */
.tag { align-self: flex-start; font-size: 13px; font-weight: 600; line-height: 1.35; padding: 4px 9px; background: var(--ink); color: #ffffff; }
.tag.red { background: var(--red); }
.notice { margin-top: 32px; padding: 18px 22px; border-left: 5px solid var(--red); background: var(--fill); font-size: 16px; max-width: 760px; }

/* Кейс Маяка */
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 2px solid var(--ink); box-shadow: 10px 10px 0 var(--red); }
.facts.five { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 900px) { .facts, .facts.five { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.fact { padding: 22px 24px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: grid; gap: 4px; align-content: start; }
.fact b { font: 900 clamp(28px, 3.4vw, 42px)/1 var(--display); color: var(--red); font-variant-numeric: tabular-nums; }
.fact span { font-size: 14.5px; color: var(--ink); }
.shots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
@media (max-width: 760px) { .shots { grid-template-columns: minmax(0, 1fr); } }
.shots figure { margin: 0; display: grid; gap: 10px; }
.shots img { width: 100%; height: auto; display: block; border: 2px solid var(--ink); box-shadow: 8px 8px 0 var(--ink); background: #f3eee4; }
.shots figcaption { font-size: 15px; color: var(--muted); }
.meta { font-size: 14.5px; color: var(--muted); }

/* Люди */
.people { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
@media (max-width: 900px) { .people { grid-template-columns: minmax(0, 1fr); } }
.person { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 6px 18px; align-content: start; }
.ava { grid-row: span 3; width: 72px; height: 72px; display: grid; place-items: center; font: 900 22px/1 var(--display); background: var(--ink); color: #ffffff; }
.ava.ai { background: var(--red); font-size: 19px; }
.person h3 { font-weight: 700; font-size: 20px; }
.person .role { font-size: 14px; font-weight: 600; color: var(--red); }
.person p { font-size: 15.5px; color: var(--muted); }

/* Контакты */
.contacts { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: 0; border: 2px solid var(--ink); box-shadow: 10px 10px 0 var(--red); max-width: 860px; margin: 0; }
.contacts dt, .contacts dd { padding: 16px 22px; border-bottom: 1px solid var(--line); margin: 0; }
.contacts dt { color: var(--muted); font-size: 15px; }
.contacts dd { color: var(--ink); font-weight: 600; overflow-wrap: anywhere; }
.contacts dd a { text-decoration: none; border-bottom: 3px solid var(--red); }
.contacts dt:last-of-type, .contacts dd:last-of-type { border-bottom: 0; }
@media (max-width: 560px) { .contacts { grid-template-columns: minmax(0, 1fr); } .contacts dt { padding-bottom: 0; border-bottom: 0; } }

/* 404 */
.lost { padding-block: 72px 0; display: grid; gap: 22px; max-width: 760px; }
.lost .code { font: 900 clamp(90px, 20vw, 220px)/.9 var(--display); color: var(--red); letter-spacing: -.04em; }

/* Подвал (как на главной) */
footer { margin-top: 112px; background: var(--ink); color: #ffffff; padding-block: 56px 40px; overflow: hidden; }
.sign { display: flex; justify-content: space-between; font: 900 clamp(56px, 15.5vw, 200px)/.9 var(--display); letter-spacing: -.02em; user-select: none; }
.sign span { display: inline-block; transition: transform .35s var(--ease), color .2s; }
.sign span:hover { transform: translateY(-12px) rotate(-4deg); color: var(--red); }
.foot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 36px; font-size: 14.5px; color: #bcbcbc; border-top: 1px solid #333333; padding-top: 22px; }
.foot b { font: 700 16px/1.3 var(--display); color: #ffffff; }
.foot span { max-width: 820px; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 22px; font-size: 14.5px; }
.foot-nav a, .legal-row a { color: #d4d4d4; text-decoration: none; border-bottom: 1px solid #555555; }
.foot-nav a:hover, .legal-row a:hover { color: #ffffff; border-color: var(--red); }
.legal-row { display: flex; justify-content: space-between; gap: 10px 24px; flex-wrap: wrap; margin-top: 16px; font-size: 13.5px; color: #a3a3a3; }
.legal-row nav { display: flex; gap: 8px 20px; flex-wrap: wrap; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } html { scroll-behavior: auto; } }
