/*
Theme Name: Binarity Minimal
Author: Binarity
Description: Строгая минималистичная B2B-тема для инфраструктурной IT-компании: облако, dedicated, colocation, телеком, сервис и поставки оборудования.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: binarity-minimal
*/

:root {
  --bn-navy: #071a2f;
  --bn-navy-2: #0b2745;
  --bn-blue: #0b63ce;
  --bn-blue-2: #0d79d8;
  --bn-cyan: #18a6d8;
  --bn-sky: #eaf5fc;
  --bn-ice: #f5f9fc;
  --bn-white: #ffffff;
  --bn-ink: #102235;
  --bn-muted: #5d6d7e;
  --bn-line: #dce6ef;
  --bn-success: #0c8b73;
  --bn-radius: 14px;
  --bn-radius-lg: 24px;
  --bn-shadow: 0 18px 60px rgba(5, 31, 58, .09);
  --bn-max: 1240px;
  --bn-font: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bn-white);
  color: var(--bn-ink);
  font-family: var(--bn-font);
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}
body.admin-bar .site-header { top: 32px; }
img { max-width: 100%; height: auto; }
a { color: var(--bn-blue); text-decoration: none; }
a:hover { color: var(--bn-blue-2); }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
::selection { background: rgba(11, 99, 206, .16); }

.bn-container { width: min(calc(100% - 40px), var(--bn-max)); margin-inline: auto; }
.bn-section { padding: 104px 0; }
.bn-section--soft { background: var(--bn-ice); }
.bn-section--navy { background: var(--bn-navy); color: var(--bn-white); }
.bn-section__head { display: flex; align-items: end; justify-content: space-between; gap: 36px; margin-bottom: 46px; }
.bn-section__head h2 { max-width: 760px; margin: 0; }
.bn-section__head p { max-width: 430px; margin: 0; color: var(--bn-muted); }
.bn-section--navy .bn-section__head p { color: #b8c9d8; }

h1, h2, h3, h4 { margin-top: 0; color: inherit; font-weight: 650; letter-spacing: -.035em; line-height: 1.08; }
h1 { font-size: clamp(44px, 6vw, 82px); }
h2 { font-size: clamp(34px, 4.2vw, 58px); }
h3 { font-size: clamp(22px, 2.2vw, 30px); }
p { margin: 0 0 1.1em; }

.bn-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  color: var(--bn-blue);
  font-size: 13px;
  font-weight: 750;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.bn-kicker::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.bn-section--navy .bn-kicker { color: #61c6eb; }

.bn-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 23px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--bn-blue);
  color: var(--bn-white);
  font-weight: 700;
  line-height: 1;
  transition: transform .2s ease, background .2s ease, border-color .2s ease, color .2s ease;
}
.bn-btn:hover { transform: translateY(-1px); background: var(--bn-blue-2); color: var(--bn-white); }
.bn-btn--ghost { background: transparent; border-color: #b7c5d1; color: var(--bn-ink); }
.bn-btn--ghost:hover { background: var(--bn-ink); border-color: var(--bn-ink); color: var(--bn-white); }
.bn-btn--light { background: var(--bn-white); color: var(--bn-navy); }
.bn-btn--light:hover { background: #edf7ff; color: var(--bn-navy); }
.bn-btn--outline-light { background: transparent; border-color: rgba(255,255,255,.45); color: var(--bn-white); }
.bn-btn--outline-light:hover { background: var(--bn-white); color: var(--bn-navy); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(210, 224, 236, .85);
}
.bn-header { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.bn-brand { display: inline-flex; align-items: center; gap: 11px; color: var(--bn-navy); font-size: 22px; font-weight: 790; letter-spacing: -.045em; }
.bn-brand:hover { color: var(--bn-navy); }
.bn-brand__mark { position: relative; width: 31px; height: 31px; border-radius: 8px; background: linear-gradient(145deg, var(--bn-blue), var(--bn-cyan)); overflow: hidden; }
.bn-brand__mark::before, .bn-brand__mark::after { content: ""; position: absolute; background: rgba(255,255,255,.96); border-radius: 999px; }
.bn-brand__mark::before { width: 6px; height: 21px; left: 8px; top: 5px; }
.bn-brand__mark::after { width: 6px; height: 14px; right: 8px; top: 8px; }
.bn-nav { display: flex; align-items: center; gap: 30px; margin-left: auto; }
.bn-nav ul { display: flex; align-items: center; gap: 28px; margin: 0; padding: 0; list-style: none; }
.bn-nav a { color: #233b51; font-size: 15px; font-weight: 620; }
.bn-nav a:hover, .bn-nav .current-menu-item > a { color: var(--bn-blue); }
.bn-header__cta { white-space: nowrap; }
.bn-menu-toggle { display: none; width: 44px; height: 44px; border: 0; border-radius: 10px; background: var(--bn-ice); color: var(--bn-navy); cursor: pointer; }
.bn-menu-toggle span, .bn-menu-toggle::before, .bn-menu-toggle::after { display: block; width: 19px; height: 2px; margin: 4px auto; background: currentColor; content: ""; transition: .2s; }
.bn-menu-toggle[aria-expanded="true"] span { opacity: 0; }
.bn-menu-toggle[aria-expanded="true"]::before { transform: translateY(6px) rotate(45deg); }
.bn-menu-toggle[aria-expanded="true"]::after { transform: translateY(-6px) rotate(-45deg); }

.bn-hero { position: relative; overflow: hidden; background: linear-gradient(115deg, #f7fbff 0%, #eef7fd 54%, #e6f5fb 100%); }
.bn-hero::after { content: ""; position: absolute; right: -180px; top: -230px; width: 680px; height: 680px; border-radius: 50%; background: radial-gradient(circle, rgba(24,166,216,.20), rgba(24,166,216,0) 68%); pointer-events: none; }
.bn-hero__inner { min-height: 700px; display: grid; grid-template-columns: 1.06fr .94fr; align-items: center; gap: 74px; padding: 88px 0 76px; }
.bn-hero h1 { max-width: 850px; margin-bottom: 24px; }
.bn-hero__lead { max-width: 720px; margin-bottom: 34px; color: #4c6175; font-size: clamp(18px, 2vw, 22px); line-height: 1.55; }
.bn-actions { display: flex; flex-wrap: wrap; gap: 13px; }
.bn-hero__meta { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 46px; padding-top: 25px; border-top: 1px solid #cfdeea; color: #5c6f82; font-size: 14px; }
.bn-hero__meta strong { color: var(--bn-navy); font-size: 15px; }

.bn-network {
  position: relative;
  min-height: 470px;
  border-radius: 32px;
  background: linear-gradient(145deg, var(--bn-navy) 0%, #0b3152 64%, #0b4965 100%);
  box-shadow: var(--bn-shadow);
  overflow: hidden;
}
.bn-network::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px); background-size: 44px 44px; mask-image: linear-gradient(to bottom, black, transparent 92%); }
.bn-network__orb { position: absolute; border-radius: 50%; border: 1px solid rgba(130, 218, 245, .25); }
.bn-network__orb--1 { width: 290px; height: 290px; right: -50px; top: 38px; }
.bn-network__orb--2 { width: 190px; height: 190px; left: 30px; bottom: -70px; }
.bn-network__line { position: absolute; height: 1px; background: linear-gradient(90deg, rgba(97,198,235,.05), rgba(97,198,235,.8), rgba(97,198,235,.05)); transform-origin: left center; }
.bn-network__line--1 { width: 260px; left: 102px; top: 182px; transform: rotate(-17deg); }
.bn-network__line--2 { width: 230px; left: 165px; top: 308px; transform: rotate(21deg); }
.bn-network__line--3 { width: 165px; left: 86px; top: 246px; transform: rotate(57deg); }
.bn-node { position: absolute; display: grid; place-items: center; width: 88px; height: 88px; border-radius: 22px; background: rgba(255,255,255,.11); border: 1px solid rgba(255,255,255,.18); color: var(--bn-white); font-size: 12px; font-weight: 750; letter-spacing: .04em; text-transform: uppercase; backdrop-filter: blur(12px); box-shadow: 0 18px 30px rgba(0,0,0,.12); }
.bn-node::before { content: ""; position: absolute; width: 8px; height: 8px; border-radius: 50%; background: #55c9ee; box-shadow: 0 0 0 7px rgba(85,201,238,.11); top: 12px; right: 12px; }
.bn-node--cloud { left: 52px; top: 90px; }
.bn-node--dc { right: 46px; top: 135px; }
.bn-node--net { left: 122px; bottom: 60px; }
.bn-node--ops { right: 88px; bottom: 52px; }
.bn-network__caption { position: absolute; left: 36px; right: 36px; bottom: 30px; display: flex; justify-content: space-between; color: rgba(255,255,255,.64); font-size: 12px; }

.bn-trustbar { border-top: 1px solid var(--bn-line); border-bottom: 1px solid var(--bn-line); background: var(--bn-white); }
.bn-trustbar__inner { min-height: 96px; display: grid; grid-template-columns: repeat(4,1fr); }
.bn-trust { display: flex; align-items: center; gap: 14px; padding: 20px 24px; border-right: 1px solid var(--bn-line); }
.bn-trust:first-child { padding-left: 0; }
.bn-trust:last-child { border-right: 0; }
.bn-trust__dot { flex: 0 0 10px; width: 10px; height: 10px; border-radius: 50%; background: var(--bn-cyan); box-shadow: 0 0 0 6px rgba(24,166,216,.10); }
.bn-trust strong { display: block; color: var(--bn-navy); font-size: 15px; }
.bn-trust span { color: var(--bn-muted); font-size: 13px; }

.bn-grid { display: grid; gap: 22px; }
.bn-grid--3 { grid-template-columns: repeat(3, 1fr); }
.bn-card { position: relative; min-height: 290px; padding: 32px; border: 1px solid var(--bn-line); border-radius: var(--bn-radius-lg); background: var(--bn-white); overflow: hidden; transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; }
.bn-card:hover { transform: translateY(-4px); border-color: #c4d9e9; box-shadow: var(--bn-shadow); }
.bn-card__icon { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 42px; border-radius: 13px; background: var(--bn-sky); color: var(--bn-blue); }
.bn-card__icon svg { width: 25px; height: 25px; }
.bn-card h3 { margin-bottom: 15px; font-size: 26px; }
.bn-card p { color: var(--bn-muted); }
.bn-card__link { position: absolute; left: 32px; bottom: 28px; display: inline-flex; align-items: center; gap: 9px; font-weight: 700; }
.bn-card__link::after { content: "→"; transition: transform .2s ease; }
.bn-card:hover .bn-card__link::after { transform: translateX(3px); }
.bn-card__media { margin: -32px -32px 26px; height: 170px; overflow: hidden; background: linear-gradient(135deg, #d9eef9, #eaf5fc); }
.bn-card__media img { width: 100%; height: 100%; object-fit: cover; }

.bn-platform { display: grid; grid-template-columns: .88fr 1.12fr; gap: 78px; align-items: center; }
.bn-platform__copy p { color: #b9c8d6; font-size: 18px; }
.bn-stack { display: grid; gap: 14px; }
.bn-stack__item { display: grid; grid-template-columns: 56px 1fr auto; align-items: center; gap: 20px; padding: 20px 22px; border: 1px solid rgba(255,255,255,.13); border-radius: 16px; background: rgba(255,255,255,.055); }
.bn-stack__num { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 14px; background: rgba(97,198,235,.12); color: #77d4f1; font-weight: 800; }
.bn-stack__item h3 { margin: 0 0 5px; font-size: 20px; letter-spacing: -.02em; }
.bn-stack__item p { margin: 0; color: #9eb1c2; font-size: 14px; }
.bn-stack__item > span:last-child { color: #7fd1ec; font-size: 22px; }

.bn-process { display: grid; grid-template-columns: repeat(4,1fr); counter-reset: steps; }
.bn-step { position: relative; padding: 8px 34px 10px 0; }
.bn-step:not(:last-child)::after { content: ""; position: absolute; right: 18px; top: 26px; width: 1px; height: calc(100% - 20px); background: var(--bn-line); }
.bn-step__n { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-bottom: 24px; border: 1px solid #b9d5e8; border-radius: 50%; color: var(--bn-blue); font-weight: 800; }
.bn-step h3 { margin-bottom: 12px; font-size: 23px; }
.bn-step p { color: var(--bn-muted); font-size: 15px; }

.bn-equipment { display: grid; grid-template-columns: 1.1fr .9fr; gap: 24px; }
.bn-feature { min-height: 420px; padding: 50px; border-radius: 28px; background: linear-gradient(145deg, #e9f5fc, #f7fbfe); border: 1px solid #d4e7f3; }
.bn-feature h2 { max-width: 700px; }
.bn-feature p { max-width: 680px; color: var(--bn-muted); font-size: 18px; }
.bn-feature--dark { background: var(--bn-navy); border-color: var(--bn-navy); color: var(--bn-white); }
.bn-feature--dark p { color: #b8c8d7; }
.bn-badges { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 28px; }
.bn-badge { padding: 8px 12px; border: 1px solid #c6dce9; border-radius: 999px; color: #3d566d; font-size: 13px; font-weight: 650; background: rgba(255,255,255,.66); }
.bn-feature--dark .bn-badge { color: #dceaf4; border-color: rgba(255,255,255,.18); background: rgba(255,255,255,.05); }

.bn-post-card { min-height: 100%; padding: 0; }
.bn-post-card .bn-card__media { margin: 0; height: 210px; }
.bn-post-card__body { padding: 27px 28px 34px; }
.bn-post-card__meta { margin-bottom: 12px; color: var(--bn-blue); font-size: 12px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.bn-post-card h3 { margin-bottom: 13px; font-size: 24px; }
.bn-post-card p { color: var(--bn-muted); font-size: 15px; }

.bn-cta { position: relative; overflow: hidden; padding: 66px; border-radius: 30px; background: linear-gradient(120deg, var(--bn-blue) 0%, #0a5aaf 50%, #0b405f 100%); color: var(--bn-white); }
.bn-cta::after { content: ""; position: absolute; right: -130px; top: -210px; width: 500px; height: 500px; border: 1px solid rgba(255,255,255,.22); border-radius: 50%; box-shadow: 0 0 0 75px rgba(255,255,255,.025), 0 0 0 150px rgba(255,255,255,.018); }
.bn-cta__inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr auto; gap: 56px; align-items: end; }
.bn-cta h2 { max-width: 770px; margin-bottom: 16px; }
.bn-cta p { max-width: 680px; margin: 0; color: #dceeff; font-size: 18px; }
.bn-cta .bn-actions { justify-content: flex-end; }

.site-footer { background: #061526; color: #d5e0e8; }
.bn-footer__top { display: grid; grid-template-columns: 1.3fr repeat(3, .7fr); gap: 56px; padding: 72px 0 54px; }
.bn-footer__brand p { max-width: 360px; color: #91a6b8; }
.site-footer .bn-brand { margin-bottom: 20px; color: var(--bn-white); }
.bn-footer h4 { margin-bottom: 18px; color: var(--bn-white); font-size: 14px; letter-spacing: .08em; text-transform: uppercase; }
.bn-footer ul { margin: 0; padding: 0; list-style: none; }
.bn-footer li { margin: 9px 0; }
.bn-footer a { color: #a8bac9; }
.bn-footer a:hover { color: var(--bn-white); }
.bn-footer__bottom { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 24px 0; border-top: 1px solid rgba(255,255,255,.1); color: #8095a7; font-size: 13px; }

.bn-page-hero { padding: 82px 0 58px; background: linear-gradient(115deg, #f8fbfe, #edf7fc); border-bottom: 1px solid var(--bn-line); }
.bn-page-hero h1 { max-width: 920px; margin-bottom: 18px; font-size: clamp(42px,5vw,68px); }
.bn-page-hero p { max-width: 760px; color: var(--bn-muted); font-size: 19px; }
.bn-content { width: min(calc(100% - 40px), 900px); margin: 0 auto; padding: 72px 0 100px; }
.bn-content > *:first-child { margin-top: 0; }
.bn-content h2 { margin-top: 1.2em; font-size: 38px; }
.bn-content h3 { margin-top: 1.4em; font-size: 28px; }
.bn-content p, .bn-content li { color: #354b60; font-size: 18px; }
.bn-content a { text-decoration: underline; text-underline-offset: 3px; }
.bn-content blockquote { margin: 35px 0; padding: 24px 28px; border-left: 3px solid var(--bn-blue); background: var(--bn-ice); }
.bn-content img { border-radius: 16px; }

.bn-archive { padding: 76px 0 105px; }
.bn-archive__head { margin-bottom: 40px; }
.bn-pagination { margin-top: 42px; }
.bn-pagination .nav-links { display: flex; gap: 8px; flex-wrap: wrap; }
.bn-pagination .page-numbers { display: grid; place-items: center; min-width: 42px; height: 42px; padding: 0 12px; border: 1px solid var(--bn-line); border-radius: 10px; color: var(--bn-ink); }
.bn-pagination .current { background: var(--bn-navy); color: var(--bn-white); border-color: var(--bn-navy); }

.bn-entry-meta { margin-bottom: 26px; color: var(--bn-muted); font-size: 14px; }
.bn-entry-meta a { color: var(--bn-muted); }
.bn-entry-featured { width: min(calc(100% - 40px), 1080px); margin: 46px auto 0; }
.bn-entry-featured img { width: 100%; max-height: 600px; object-fit: cover; border-radius: 24px; }

.bn-empty { padding: 36px; border: 1px dashed #bcd4e5; border-radius: 18px; background: #f9fcfe; color: var(--bn-muted); }

.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.screen-reader-text:focus { clip: auto !important; width: auto; height: auto; top: 10px; left: 10px; z-index: 100000; padding: 14px 18px; background: white; color: black; }

@media (max-width: 1020px) {
  .bn-nav { position: fixed; inset: 77px 0 auto 0; display: none; padding: 24px 20px 30px; background: rgba(255,255,255,.98); border-bottom: 1px solid var(--bn-line); }
  .bn-nav.is-open { display: block; }
  .bn-nav ul { display: grid; gap: 0; }
  .bn-nav li { border-bottom: 1px solid var(--bn-line); }
  .bn-nav a { display: block; padding: 14px 4px; font-size: 17px; }
  .bn-header__cta { margin-left: auto; }
  .bn-menu-toggle { display: block; }
  .bn-hero__inner { grid-template-columns: 1fr; min-height: auto; gap: 50px; }
  .bn-network { min-height: 400px; }
  .bn-grid--3 { grid-template-columns: repeat(2,1fr); }
  .bn-platform { grid-template-columns: 1fr; gap: 50px; }
  .bn-process { grid-template-columns: repeat(2,1fr); gap: 34px; }
  .bn-step:nth-child(2)::after { display: none; }
  .bn-equipment { grid-template-columns: 1fr; }
  .bn-cta__inner { grid-template-columns: 1fr; }
  .bn-cta .bn-actions { justify-content: flex-start; }
  .bn-footer__top { grid-template-columns: 1.2fr 1fr 1fr; }
  .bn-footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 740px) {
  body.admin-bar .site-header { top: 46px; }
  .bn-container { width: min(calc(100% - 28px), var(--bn-max)); }
  .bn-section { padding: 76px 0; }
  .bn-section__head { display: block; margin-bottom: 34px; }
  .bn-section__head p { margin-top: 18px; }
  .bn-header { min-height: 68px; }
  .bn-header__cta { display: none; }
  .bn-nav { top: 69px; }
  .bn-hero__inner { padding: 70px 0 56px; }
  .bn-hero h1 { font-size: clamp(42px, 13vw, 62px); }
  .bn-hero__lead { font-size: 18px; }
  .bn-hero__meta { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  .bn-network { min-height: 330px; border-radius: 24px; }
  .bn-node { width: 72px; height: 72px; border-radius: 18px; font-size: 10px; }
  .bn-node--cloud { left: 28px; top: 65px; }
  .bn-node--dc { right: 26px; top: 90px; }
  .bn-node--net { left: 74px; bottom: 48px; }
  .bn-node--ops { right: 56px; bottom: 42px; }
  .bn-network__caption { display: none; }
  .bn-trustbar__inner { grid-template-columns: 1fr 1fr; }
  .bn-trust { padding: 18px 12px; border-bottom: 1px solid var(--bn-line); }
  .bn-trust:nth-child(2) { border-right: 0; }
  .bn-trust:nth-child(3), .bn-trust:nth-child(4) { border-bottom: 0; }
  .bn-grid--3 { grid-template-columns: 1fr; }
  .bn-card { min-height: 280px; padding: 27px; }
  .bn-card__link { left: 27px; }
  .bn-process { grid-template-columns: 1fr; }
  .bn-step::after { display: none !important; }
  .bn-feature { min-height: auto; padding: 34px 28px; }
  .bn-cta { padding: 42px 28px; border-radius: 24px; }
  .bn-footer__top { grid-template-columns: 1fr 1fr; gap: 38px; }
  .bn-footer__brand { grid-column: 1 / -1; }
  .bn-footer__bottom { align-items: flex-start; flex-direction: column; }
  .bn-stack__item { grid-template-columns: 48px 1fr; }
  .bn-stack__item > span:last-child { display: none; }
}

@media (max-width: 480px) {
  .bn-trustbar__inner, .bn-footer__top { grid-template-columns: 1fr; }
  .bn-trust { border-right: 0; border-bottom: 1px solid var(--bn-line) !important; padding-left: 0; }
  .bn-trust:last-child { border-bottom: 0 !important; }
  .bn-actions .bn-btn { width: 100%; }
  .bn-hero__meta { grid-template-columns: 1fr; }
}
