/* bitcraft.ru */
@font-face { font-family: "Onest"; src: url(/fonts/onest-cyr.woff2) format("woff2"); font-weight: 400 700; font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Onest"; src: url(/fonts/onest-lat.woff2) format("woff2"); font-weight: 400 700; font-display: swap;
  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 {
  /* Цвета сайта bitcraft.ru 2012 года */
  --bg: #f4f4f4;          /* светло-серый фон */
  --paper: #ffffff;
  --ink: #262626;
  --muted: #666666;       /* серый текст старого сайта */
  --line: #e4e4e4;
  --rule: #c7c7c7;        /* серый меню старого сайта: линии блоков, рамки меток */
  --dots: #cccccc;
  --gray: #8c8c8c;        /* квадраты этапов */
  --accent: #3399cc;      /* голубой: квадраты, сигналы на схемах */
  --accent-mid: #0080bb;  /* синий логотипа: крупные цифры, узлы схем */
  --accent-ink: #006594;  /* тёмно-синий меню старого сайта: ссылки, мелкий текст */
  --btn: #0078b0;         /* синий кнопок (как в логотипе, контраст с белым текстом не ниже 4,5) */
  --tint: #e6f2f8;        /* голубая подложка */
  --scheme: #666666;      /* линии схем */
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.6 "Onest", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -0.02em; font-weight: 700; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 20; background: var(--accent-ink); color: #fff; padding: 10px 16px; text-decoration: none; }
.skip:focus { top: 12px; }

.ico { width: 36px; height: 36px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ico .a { fill: var(--accent); stroke: none; }
.ico--sm { width: 18px; height: 18px; display: inline-block; vertical-align: -3px; }

/* Логотип */
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.logo img { height: 56px; width: auto; }
.foot .logo img { height: 52px; }

/* Шапка */
.top { position: sticky; top: 0; z-index: 10; background: rgba(244, 244, 244, .94); border-bottom: 1px solid var(--line); }
@supports (backdrop-filter: blur(8px)) { .top { background: rgba(244, 244, 244, .82); backdrop-filter: blur(8px); } }
.top__in { display: flex; align-items: center; gap: 32px; min-height: 78px; }
.menu { margin-left: auto; }
.menu ul { display: flex; gap: 28px; }
.menu a { text-decoration: none; font-weight: 500; padding: 6px 0; border-bottom: 2px solid transparent; }
.menu a:hover, .menu a[aria-current] { border-color: var(--accent); }
.top__tel { font-weight: 700; text-decoration: none; white-space: nowrap; }
.top__tel:hover { color: var(--accent-ink); }
.menu-btn { display: none; }

/* Кнопки */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 22px; border: 2px solid var(--accent-ink); color: var(--accent-ink);
  font-weight: 600; text-decoration: none; border-radius: 2px; transition: background-color .15s, color .15s, border-color .15s; }
.btn--main { background: var(--btn); border-color: var(--btn); color: #fff; }
.btn--main:hover { background: var(--accent-ink); border-color: var(--accent-ink); }
.btn--line:hover { background: var(--tint); }

/* Первый экран */
.intro { padding: 72px 0 80px; }
.intro__in { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.kicker { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 20px; }
.kicker::before { content: ""; width: 10px; height: 10px; background: var(--accent); }
.intro h1 { font-size: clamp(38px, 5.4vw, 64px); }
.lead { font-size: 20px; color: var(--muted); margin-top: 22px; max-width: 34em; }
.intro__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

.scheme { width: 100%; height: auto; }
.scheme .grid circle { fill: var(--dots); }
.scheme .w path, .scheme path.w { fill: none; stroke: var(--scheme); stroke-width: 1.5; }
.scheme .vpn { stroke-dasharray: 5 6; }
.scheme .flow path { fill: none; stroke: var(--accent-mid); stroke-width: 3; stroke-dasharray: 8 120; animation: flow 3.2s linear infinite; }
.scheme .flow path:nth-child(2) { animation-delay: -.8s; }
.scheme .flow path:nth-child(3) { animation-delay: -1.6s; }
.scheme .flow path:nth-child(4) { animation-delay: -2.4s; }
.scheme .flow path:nth-child(5) { animation-delay: -1.2s; animation-duration: 4s; }
.scheme .flow path:nth-child(6) { animation-delay: -2s; animation-duration: 3.6s; }
.scheme .n rect, .scheme .n circle, .scheme path.n, .scheme .nb { fill: var(--paper); stroke: var(--scheme); stroke-width: 1.5; }
.scheme .n path { fill: none; stroke: var(--scheme); stroke-width: 1.5; }
.scheme .n .led { stroke: var(--accent); stroke-width: 3; }
.scheme .back { fill: none; stroke: var(--accent-mid); stroke-width: 2; stroke-dasharray: 6 6; }
.scheme .hub { fill: var(--accent-mid); }
.scheme .dot rect, .scheme .dotf { fill: var(--accent); }
.scheme .badge rect { fill: var(--accent-ink); }
.scheme .badge text { fill: #fff; font-weight: 700; font-size: 14px; }
.scheme text { font-size: 14px; fill: var(--muted); font-weight: 500; paint-order: stroke; stroke: var(--bg); stroke-width: 6px; stroke-linejoin: round; }
.scheme--art text, .scheme .in { stroke: var(--paper); }
.scheme .hub-t, .scheme .badge text { stroke: none; }
.scheme .in { fill: var(--ink); font-weight: 600; font-size: 15px; }
.scheme .acc { fill: var(--accent-ink); font-weight: 600; }
.scheme .hub-t { fill: #fff; font-weight: 700; font-size: 15px; }
@keyframes flow { from { stroke-dashoffset: 128; } to { stroke-dashoffset: 0; } }

/* Блоки */
.blk { padding: 88px 0; }
.blk--paper { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.blk--tight { padding-top: 24px; }
.bh { margin-bottom: 40px; max-width: 760px; }
.bh__n { display: block; font-weight: 700; color: var(--accent-ink); font-size: 15px; letter-spacing: .08em; margin-bottom: 12px; }
.bh__n::after { content: ""; display: inline-block; width: 40px; height: 2px; background: var(--accent); margin-left: 12px; vertical-align: middle; }
.bh h2 { font-size: clamp(30px, 3.6vw, 44px); }
.bh p { color: var(--muted); margin-top: 14px; font-size: 18px; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 56px; align-items: start; }
.split .bh { margin-bottom: 0; position: sticky; top: 110px; }

/* Список услуг */
.srv { border-top: 1px solid var(--rule); }
.srv__a { display: grid; grid-template-columns: 48px minmax(0, 1fr) minmax(0, 1.5fr) 36px; gap: 28px; align-items: center;
  padding: 26px 16px; border-bottom: 1px solid var(--line); text-decoration: none; transition: background-color .15s; }
.srv__i { width: 44px; height: 44px; }
.srv__t { font-size: 22px; font-weight: 700; letter-spacing: -0.01em; }
.srv__d { color: var(--muted); }
.srv__go { width: 28px; height: 28px; transition: transform .2s, color .15s; }
.srv__a:hover { background: var(--tint); }
.srv__a:hover .srv__t, .srv__a:hover .srv__go { color: var(--accent-ink); }
.srv__a:hover .srv__go { transform: translateX(6px); }

/* Форматы */
.fmt { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-left: 1px solid var(--line); }
.fmt__i { padding: 8px 28px 12px; border-right: 1px solid var(--line); }
.fmt__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 26px; }
.fmt__top .ico { width: 40px; height: 40px; }
.fmt__n { display: block; font-size: 44px; font-weight: 700; color: var(--accent-mid); letter-spacing: -0.04em; line-height: 1; }
.fmt h3 { font-size: 20px; margin-bottom: 10px; }
.fmt p { color: var(--muted); font-size: 16px; }

/* Этапы */
.path { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; position: relative; }
.path::before { content: ""; position: absolute; left: 22px; right: 0; top: 22px; height: 2px;
  background: repeating-linear-gradient(90deg, var(--rule) 0 6px, transparent 6px 12px); }
.path li { position: relative; }
.path__n { display: grid; place-items: center; width: 46px; height: 46px; background: var(--gray); color: #fff; font-weight: 700; font-size: 18px; margin-bottom: 22px; position: relative; }
.path li:first-child .path__n { background: var(--accent-ink); }
.path h3 { font-size: 20px; margin-bottom: 8px; }
.path p { color: var(--muted); font-size: 16px; }

/* Технологии */
.tags { display: flex; flex-wrap: wrap; gap: 10px; }
.tags li { border: 1px solid var(--rule); padding: 7px 13px; font-size: 15px; font-weight: 500; border-radius: 2px; background: var(--paper); }
.stack { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.stack__g { display: flex; flex-direction: column; padding: 22px 22px 24px; background: var(--bg); border: 1px solid var(--line); border-top: 3px solid var(--accent); border-radius: 2px; }
.stack__h { display: flex; align-items: center; gap: 12px; min-height: 48px; margin-bottom: 16px; }
.stack__i { width: 30px; height: 30px; color: var(--accent-ink); }
.stack__h h3 { font-size: 17px; line-height: 1.25; }
.stack .tags { gap: 6px; }
.stack .tags li { font-size: 14px; padding: 5px 10px; }

/* Вопросы */
.qas { border-top: 1px solid var(--rule); }
.qa { border-bottom: 1px solid var(--line); }
.qa summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 24px; padding: 22px 0; font-size: 19px; font-weight: 600; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; font-size: 28px; line-height: .8; font-weight: 400; color: var(--accent-ink); transition: transform .2s; }
.qa[open] summary::after { transform: rotate(45deg); }
.qa summary:hover { color: var(--accent-ink); }
.qa p { padding: 0 48px 24px 0; color: var(--muted); }

/* Призыв */
.call { background: var(--tint); color: var(--ink); border-top: 1px solid #cde3ef; padding: 80px 0; position: relative; overflow: hidden; }
.call::after { content: ""; position: absolute; right: -60px; top: -60px; width: 260px; height: 260px;
  background-image: radial-gradient(rgba(0, 128, 187, .22) 1.5px, transparent 1.6px); background-size: 20px 20px; }
.call__in { display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px; align-items: center; position: relative; z-index: 1; }
.call h2 { font-size: clamp(28px, 3.4vw, 40px); }
.call p { color: var(--muted); margin-top: 16px; font-size: 18px; }
.call__c li { display: grid; grid-template-columns: 36px 1fr; column-gap: 16px; padding: 16px 0; border-bottom: 1px solid #cde3ef; }
.call__c li:last-child { border-bottom: 0; }
.call__c .ico { grid-row: span 2; color: var(--accent-ink); }
.call__c span { font-size: 14px; color: var(--muted); }
.call__c a { font-size: 20px; font-weight: 700; text-decoration: none; }
.call__c a:hover { color: var(--accent-ink); }
.call__c .call__big { font-size: 26px; }

/* Шапки внутренних страниц */
.head { padding: 56px 0 64px; }
.head h1 { font-size: clamp(34px, 4.6vw, 54px); max-width: 18em; }
.head--404 { padding: 96px 0 120px; }
.head__in { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.head__art { max-width: 440px; width: 100%; justify-self: end; border: 1px solid var(--line); background: var(--paper); }
.head__art--wide { max-width: 520px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 15px; color: var(--muted); margin-bottom: 24px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--accent-ink); }
.crumbs > * + *::before { content: "/"; margin-right: 8px; color: var(--line); }

/* Что входит */
.inc { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--rule); border-left: 1px solid var(--line); }
.inc li { padding: 28px 28px 32px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper); }
.inc__n { display: block; color: var(--accent-ink); font-weight: 700; font-size: 15px; margin-bottom: 18px; }
.inc h3 { font-size: 20px; margin-bottom: 10px; }
.inc p { color: var(--muted); font-size: 16px; }

.when li { position: relative; padding: 20px 0 20px 34px; border-bottom: 1px solid var(--line); font-size: 19px; }
.when li:first-child { border-top: 1px solid var(--rule); }
.when li::before { content: ""; position: absolute; left: 0; top: 30px; width: 12px; height: 12px; background: var(--accent); }

/* Контакты */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--rule); border-left: 1px solid var(--line); }
.card { padding: 32px; background: var(--paper); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.card > .ico { margin-bottom: 18px; }
.card h2 { font-size: 16px; font-weight: 600; color: var(--muted); letter-spacing: 0; margin-bottom: 6px; }
.card__big { display: inline-block; font-size: 26px; font-weight: 700; text-decoration: none; letter-spacing: -0.01em; margin-bottom: 8px; }
a.card__big:hover { color: var(--accent-ink); }
.card p { color: var(--muted); }
.card .card__big { color: var(--ink); }
.card p + p { margin-top: 8px; }
.more { color: var(--ink); font-weight: 600; text-decoration: none; border-bottom: 2px solid var(--accent); }
.more:hover { color: var(--accent-ink); }

/* Подвал */
.foot { background: var(--paper); border-top: 1px solid var(--line); padding: 56px 0 28px; font-size: 16px; }
.foot__grid { display: grid; grid-template-columns: 1.2fr 1fr 1.3fr; gap: 48px; }
.foot__note { color: var(--muted); margin-top: 14px; }
.foot__h { font-weight: 700; margin-bottom: 14px; }
.foot li + li { margin-top: 8px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--accent-ink); }
.foot__c li { display: grid; grid-template-columns: 120px 1fr; gap: 12px; }
.foot__c span { color: var(--muted); }
.foot__end { display: flex; justify-content: space-between; gap: 8px 24px; flex-wrap: wrap; margin-top: 48px; padding-top: 20px; color: var(--muted); font-size: 14px; position: relative; }
.foot__end::before { content: ""; position: absolute; top: 0; left: 24px; right: 24px; border-top: 1px solid var(--line); }

/* Фото */
.pic { display: block; overflow: hidden; border-radius: 2px; background: var(--line); }
.pic img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pics { padding: 0 0 88px; margin-top: -24px; }
.pics__grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 16px; height: 520px; }
.pics__f { position: relative; margin: 0; min-height: 0; }
.pics__f:first-child { grid-row: span 2; }
.pics__f .pic { height: 100%; }
.pics__f figcaption { position: absolute; left: 16px; bottom: 16px; display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px;
  background: rgba(255, 255, 255, .94); font-size: 15px; font-weight: 600; border-radius: 2px; }
.pics__f figcaption::before { content: ""; width: 10px; height: 10px; background: var(--accent); }
.side { position: sticky; top: 110px; }
.side .bh { position: static; margin-bottom: 28px; }
.pic--side { aspect-ratio: 4 / 3; }
.steps { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 56px; align-items: start; }
.path--grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 44px; padding-top: 8px; }
.path--grid::before { display: none; }

/* Планшет */
@media (max-width: 1080px) {
  .fmt, .path { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fmt { row-gap: 40px; }
  .path { row-gap: 40px; }
  .path::before { display: none; }
  .srv__a { grid-template-columns: 44px minmax(0, 1fr) 28px; gap: 6px 22px; }
  .srv__i { grid-row: span 2; align-self: start; }
  .srv__d { grid-column: 2; }
  .srv__go { grid-row: 1 / span 2; grid-column: 3; }
  .inc { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stack { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Телефон */
@media (max-width: 860px) {
  body { font-size: 16px; }
  .top__in { gap: 16px; min-height: 64px; }
  .logo img { height: 48px; }
  .top__tel { display: none; }
  .menu-btn { display: grid; place-items: center; margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--rule); background: transparent; border-radius: 2px; cursor: pointer; }
  .menu-btn span:first-child, .menu-btn span:first-child::before, .menu-btn span:first-child::after { content: ""; display: block; width: 20px; height: 2px; background: var(--ink); position: relative; transition: transform .2s; }
  .menu-btn span:first-child::before { position: absolute; top: -6px; }
  .menu-btn span:first-child::after { position: absolute; top: 6px; }
  .menu-btn[aria-expanded="true"] span:first-child { background: transparent; }
  .menu-btn[aria-expanded="true"] span:first-child::before { transform: translateY(6px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] span:first-child::after { transform: translateY(-6px) rotate(-45deg); }
  .menu { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--bg); border-bottom: 1px solid var(--line); margin: 0; }
  .menu.open { display: block; }
  .menu ul { flex-direction: column; gap: 0; padding: 8px 24px 16px; }
  .menu a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .menu li:last-child a { border-bottom: 0; }
  .intro { padding: 40px 0 56px; }
  .intro__in, .split, .call__in, .head__in, .steps { grid-template-columns: 1fr; gap: 36px; }
  .side { position: static; }
  .pics { padding-bottom: 64px; margin-top: -16px; }
  .pics__grid { grid-template-columns: 1fr 1fr; grid-template-rows: auto; height: auto; gap: 10px; }
  .pics__f:first-child { grid-row: auto; grid-column: span 2; }
  .pics__f:first-child .pic { aspect-ratio: 3 / 2; }
  .pics__f .pic { aspect-ratio: 4 / 3; height: auto; }
  .pics__f figcaption { left: 8px; bottom: 8px; font-size: 13px; padding: 6px 10px; }
  .split .bh { position: static; }
  .lead { font-size: 18px; }
  .blk { padding: 64px 0; }
  .blk--tight { padding-top: 8px; }
  .head__art { justify-self: start; max-width: 480px; }
  .foot__grid { grid-template-columns: 1fr; gap: 32px; }
  .cards { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .foot__end::before { left: 16px; right: 16px; }
  .fmt, .path, .inc, .stack { grid-template-columns: 1fr; }
  .pics__f:not(:first-child) figcaption { display: none; }
  .fmt { border-left: 0; }
  .fmt__i { border-right: 0; border-top: 1px solid var(--line); padding: 24px 0 0; }
  .fmt__n { font-size: 36px; }
  .fmt__top { margin-bottom: 14px; }
  .srv__a { padding: 22px 0; }
  .srv__t { font-size: 20px; }
  .btn { width: 100%; }
  .card { padding: 24px 20px; }
  .card__big { font-size: 22px; }
  .foot__c li { grid-template-columns: 1fr; gap: 0; }
  .qa p { padding-right: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .scheme .flow { display: none; }
}
